Package eu.clarin.sru.client.fcs
Class ClarinFCSEndpointDescription.DataView
- java.lang.Object
-
- eu.clarin.sru.client.fcs.ClarinFCSEndpointDescription.DataView
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ClarinFCSEndpointDescription
public static final class ClarinFCSEndpointDescription.DataView extends Object implements Serializable
This class implements a description of a data view supported by the endpoint.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClarinFCSEndpointDescription.DataView.DeliveryPolicyEnumeration to indicate the delivery policy of a data view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClarinFCSEndpointDescription.DataView.DeliveryPolicygetDeliveryPolicy()Get the delivery policy for this data view.StringgetIdentifier()Get the identifier of this data view.StringgetMimeType()Get the MIME type of this data view.booleanisMimeType(String type)Convenience method to check if this DataView is of a certain MIME type.StringtoString()
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Get the identifier of this data view.- Returns:
- the identifier of the data view
-
getMimeType
public String getMimeType()
Get the MIME type of this data view.- Returns:
- the MIME type of this data view
-
isMimeType
public boolean isMimeType(String type)
Convenience method to check if this DataView is of a certain MIME type.- Parameters:
type- the MIME type to test against- Returns:
trueif the DataView is in the supplied MIME type,falseotherwise- Throws:
NullPointerException- if any required arguments are not supplied
-
getDeliveryPolicy
public ClarinFCSEndpointDescription.DataView.DeliveryPolicy getDeliveryPolicy()
Get the delivery policy for this data view.- Returns:
- the delivery policy of this data view
- See Also:
ClarinFCSEndpointDescription.DataView.DeliveryPolicy
-
-