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 classResource.ResourceFragmentA 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.StringgetPid()Get the persistent identifier for this resource.StringgetRef()Get the reference URI for this resource.List<Resource.ResourceFragment>getResourceFragments()Get the list of resource fragment objects for this this resource.booleanhasDataViews()Convenience method to check if this resource has any dataviews.booleanhasResourceFragments()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
nullof this resource has none
-
getRef
public String getRef()
Get the reference URI for this resource.- Returns:
- a reference URI or
nullof this resource has none
-
hasDataViews
public boolean hasDataViews()
Convenience method to check if this resource has any dataviews.- Returns:
trueif this resource has dataviews,falseotherwise
-
getDataViews
public List<DataView> getDataViews()
Get the list of dataview objects for this this resource.- Returns:
- a list of
DataViewobjects ornull, ornullif this resource has none
-
hasResourceFragments
public boolean hasResourceFragments()
Convenience method to check if this resource has any resource fragments.- Returns:
trueif this resource has resource fragments,falseotherwise
-
getResourceFragments
public List<Resource.ResourceFragment> getResourceFragments()
Get the list of resource fragment objects for this this resource.- Returns:
- a list of
Resource.ResourceFragmentobjects ornull, ornullif this resource has none
-
-