org.ota.pkg
Enum ExtrasSelectionGroup.Selection
java.lang.Object
java.lang.Enum<ExtrasSelectionGroup.Selection>
org.ota.pkg.ExtrasSelectionGroup.Selection
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ExtrasSelectionGroup.Selection>
- Enclosing class:
- ExtrasSelectionGroup
public static enum ExtrasSelectionGroup.Selection
- extends java.lang.Enum<ExtrasSelectionGroup.Selection>
Used to indicate whether an Extra must be booked (Mandatory), may be requested (Optional) or included automatically but may be removed (Removeable).
Schema fragment(s) for this class:
<xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:restriction base="xs:string">
<xs:enumeration value="Mandatory"/>
<xs:enumeration value="Optional"/>
<xs:enumeration value="Removeable"/>
</xs:restriction>
</xs:simpleType>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MANDATORY
public static final ExtrasSelectionGroup.Selection MANDATORY
OPTIONAL
public static final ExtrasSelectionGroup.Selection OPTIONAL
REMOVEABLE
public static final ExtrasSelectionGroup.Selection REMOVEABLE
values
public static ExtrasSelectionGroup.Selection[] 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 (ExtrasSelectionGroup.Selection c : ExtrasSelectionGroup.Selection.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ExtrasSelectionGroup.Selection valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<ExtrasSelectionGroup.Selection>
convert
public static ExtrasSelectionGroup.Selection convert(java.lang.String value)