Package eu.clarin.sru.client.fcs
Class ClarinFCSEndpointDescription.ResourceInfo
- java.lang.Object
-
- eu.clarin.sru.client.fcs.ClarinFCSEndpointDescription.ResourceInfo
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ClarinFCSEndpointDescription
public static final class ClarinFCSEndpointDescription.ResourceInfo extends Object implements Serializable
This class implements a description of a resource available at an endpoint.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClarinFCSEndpointDescription.ResourceInfo.AvailabilityRestrictionEnumeration to indicate the content encoding of a layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClarinFCSEndpointDescription.ResourceInfo.AvailabilityRestrictiongetAvailabilityRestriction()Get the availabiliy restriction for this resource.List<ClarinFCSEndpointDescription.DataView>getAvailableDataViews()Get the list of data views that are available for this resource.List<ClarinFCSEndpointDescription.Layer>getAvailableLayers()(ADV-FCS) Get the list of layers that are available for this resource.List<ClarinFCSEndpointDescription.LexField>getAvailableLexFields()(Lex-FCS) Get the list of lex fields that are available for this resource.Map<String,String>getDescription()Get the description of this resource.StringgetDescription(String language)Get the description of the resource for a specific language code.List<ClarinFCSEndpointDescription.ExampleQuery>getExampleQueries()Get a list of example queries that are available for this resource.Map<String,String>getInstitution()Get the institution of this resource.StringgetInstitution(String language)Get the institution of this resource for a specific language code.StringgetLandingPageURI()Get the landing page of this resource.List<String>getLanguages()Get the list of languages in this resource represented as ISO-632-3 three letter language code.StringgetPid()Get the persistent identifier of this resource.List<ClarinFCSEndpointDescription.ResourceInfo>getSubResources()Get the direct sub-ordinate resources of this resource.Map<String,String>getTitle()Get the title of this resource.StringgetTitle(String language)Get the title of the resource for a specific language code.booleanhasAvailabilityRestriction()Check, if this resource has any kind of availability restriction.booleanhasSubResources()Determine, if this resource has sub-resources.booleansupportsLanguage(String language)Check, if this resource supports a certain language.
-
-
-
Method Detail
-
getPid
public String getPid()
Get the persistent identifier of this resource.- Returns:
- a string representing the persistent identifier of this resource
-
hasSubResources
public boolean hasSubResources()
Determine, if this resource has sub-resources.- Returns:
trueif the resource has sub-resources,falseotherwise
-
getTitle
public Map<String,String> getTitle()
Get the title of this resource.- Returns:
- a Map of titles keyed by language code
-
getTitle
public String getTitle(String language)
Get the title of the resource for a specific language code.- Parameters:
language- the language code- Returns:
- the title for the language code or
nullif no title for this language code exists
-
getDescription
public Map<String,String> getDescription()
Get the description of this resource.- Returns:
- a Map of descriptions keyed by language code
-
getDescription
public String getDescription(String language)
Get the description of the resource for a specific language code.- Parameters:
language- the language code- Returns:
- the description for the language code or
nullif no title for this language code exists
-
getInstitution
public Map<String,String> getInstitution()
Get the institution of this resource. This is an optional attribute for endpoints that host resources from different institution but still want to bundle them in one endpoint. If not specified then it is the default institution that hosts the FCS endpoint.- Returns:
- the institution of this resource or
nullif not applicable or specified
-
getInstitution
public String getInstitution(String language)
Get the institution of this resource for a specific language code.- Parameters:
language- the language code- Returns:
- the institution of this resource or
nullif not applicable or specified
-
getLandingPageURI
public String getLandingPageURI()
Get the landing page of this resource.- Returns:
- the landing page of this resource or
nullif not applicable
-
getLanguages
public List<String> getLanguages()
Get the list of languages in this resource represented as ISO-632-3 three letter language code.- Returns:
- the list of languages in this resource as a list of ISO-632-3 three letter language codes.
-
supportsLanguage
public boolean supportsLanguage(String language)
Check, if this resource supports a certain language.- Parameters:
language- a language encoded as a ISO-632-3 three letter language code- Returns:
trueif the language is supported by this resource,falseotherwise
-
hasAvailabilityRestriction
public boolean hasAvailabilityRestriction()
Check, if this resource has any kind of availability restriction.- Returns:
trueif resource declares an availability restriction of any kind.
-
getAvailabilityRestriction
public ClarinFCSEndpointDescription.ResourceInfo.AvailabilityRestriction getAvailabilityRestriction()
Get the availabiliy restriction for this resource.- Returns:
- the availability restriction, or
nullif none.
-
getSubResources
public List<ClarinFCSEndpointDescription.ResourceInfo> getSubResources()
Get the direct sub-ordinate resources of this resource.- Returns:
- a list of resources or
nullif this resource has no sub-ordinate resources
-
getAvailableDataViews
public List<ClarinFCSEndpointDescription.DataView> getAvailableDataViews()
Get the list of data views that are available for this resource.- Returns:
- the list of data views available for this resource
-
getAvailableLayers
public List<ClarinFCSEndpointDescription.Layer> getAvailableLayers()
(ADV-FCS) Get the list of layers that are available for this resource.- Returns:
- the list of layers available for this resource
-
getAvailableLexFields
public List<ClarinFCSEndpointDescription.LexField> getAvailableLexFields()
(Lex-FCS) Get the list of lex fields that are available for this resource.- Returns:
- the list of lex fields available for this resource
-
getExampleQueries
public List<ClarinFCSEndpointDescription.ExampleQuery> getExampleQueries()
Get a list of example queries that are available for this resource.- Returns:
- the list of example queries available for this resource
-
-