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 class
ClarinFCSEndpointDescription.DataView.DeliveryPolicy
Enumeration to indicate the delivery policy of a data view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClarinFCSEndpointDescription.DataView.DeliveryPolicy
getDeliveryPolicy()
Get the delivery policy for this data view.String
getIdentifier()
Get the identifier of this data view.String
getMimeType()
Get the MIME type of this data view.boolean
isMimeType(String type)
Convenience method to check if this DataView is of a certain MIME type.String
toString()
-
-
-
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:
true
if the DataView is in the supplied MIME type,false
otherwise- 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
-
-