org.ota.shared
Enum InventoryStatus
java.lang.Object
java.lang.Enum<InventoryStatus>
org.ota.shared.InventoryStatus
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<InventoryStatus>
public enum InventoryStatus
- extends java.lang.Enum<InventoryStatus>
This defines a set of valid status values, allowing the selection of a specific group based on availability, or allowing the reservation status to be made known. Examples of such values include Available, OnRequest, Confirmed, etc.
Schema fragment(s) for this class:
<xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="InventoryStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="Available"/>
<xs:enumeration value="Unavailable"/>
<xs:enumeration value="OnRequest"/>
<xs:enumeration value="Confirmed"/>
<xs:enumeration value="All"/>
<xs:enumeration value="Waitlist"/>
<xs:enumeration value="SupplierBooked"/>
</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 |
AVAILABLE
public static final InventoryStatus AVAILABLE
UNAVAILABLE
public static final InventoryStatus UNAVAILABLE
ON_REQUEST
public static final InventoryStatus ON_REQUEST
CONFIRMED
public static final InventoryStatus CONFIRMED
ALL
public static final InventoryStatus ALL
WAITLIST
public static final InventoryStatus WAITLIST
SUPPLIER_BOOKED
public static final InventoryStatus SUPPLIER_BOOKED
- The booking has already been made directly through the supplier.
values
public static InventoryStatus[] 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 (InventoryStatus c : InventoryStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static InventoryStatus 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<InventoryStatus>
convert
public static InventoryStatus convert(java.lang.String value)