Package eu.clarin.sru.client.fcs
Class Resource
- java.lang.Object
-
- eu.clarin.sru.client.fcs.Resource
-
public class Resource extends Object
A CLARIN-FCS resource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Resource.ResourceFragment
A CLARIN-FCS resource fragment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataView>
getDataViews()
Get the list of dataview objects for this this resource.String
getPid()
Get the persistent identifier for this resource.String
getRef()
Get the reference URI for this resource.List<Resource.ResourceFragment>
getResourceFragments()
Get the list of resource fragment objects for this this resource.boolean
hasDataViews()
Convenience method to check if this resource has any dataviews.boolean
hasResourceFragments()
Convenience method to check if this resource has any resource fragments.
-
-
-
Method Detail
-
getPid
public String getPid()
Get the persistent identifier for this resource.- Returns:
- a persistent identifier or
null
of this resource has none
-
getRef
public String getRef()
Get the reference URI for this resource.- Returns:
- a reference URI or
null
of this resource has none
-
hasDataViews
public boolean hasDataViews()
Convenience method to check if this resource has any dataviews.- Returns:
true
if this resource has dataviews,false
otherwise
-
getDataViews
public List<DataView> getDataViews()
Get the list of dataview objects for this this resource.- Returns:
- a list of
DataView
objects ornull
, ornull
if this resource has none
-
hasResourceFragments
public boolean hasResourceFragments()
Convenience method to check if this resource has any resource fragments.- Returns:
true
if this resource has resource fragments,false
otherwise
-
getResourceFragments
public List<Resource.ResourceFragment> getResourceFragments()
Get the list of resource fragment objects for this this resource.- Returns:
- a list of
Resource.ResourceFragment
objects ornull
, ornull
if this resource has none
-
-