Package eu.clarin.sru.server.fcs
Enum DataView.DeliveryPolicy
- java.lang.Object
-
- java.lang.Enum<DataView.DeliveryPolicy>
-
- eu.clarin.sru.server.fcs.DataView.DeliveryPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<DataView.DeliveryPolicy>
- Enclosing class:
- DataView
public static enum DataView.DeliveryPolicy extends Enum<DataView.DeliveryPolicy>
Enumeration to indicate the delivery policy of a data view.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEED_TO_REQUEST
A client must explicitly request the endpoint.SEND_BY_DEFAULT
The data view is sent automatically by the endpoint.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataView.DeliveryPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataView.DeliveryPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEND_BY_DEFAULT
public static final DataView.DeliveryPolicy SEND_BY_DEFAULT
The data view is sent automatically by the endpoint.
-
NEED_TO_REQUEST
public static final DataView.DeliveryPolicy NEED_TO_REQUEST
A client must explicitly request the endpoint.
-
-
Method Detail
-
values
public static DataView.DeliveryPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataView.DeliveryPolicy c : DataView.DeliveryPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataView.DeliveryPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-