org.ota.shared
Enum TransactionStatus

java.lang.Object
  extended by java.lang.Enum<TransactionStatus>
      extended by org.ota.shared.TransactionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TransactionStatus>

public enum TransactionStatus
extends java.lang.Enum<TransactionStatus>

To specify a status to the transaction, usually in the response message, of the action specifed in the request message. 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="TransactionStatusType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Pending"/>
     <xs:enumeration value="Cancelled"/>
     <xs:enumeration value="Modified"/>
     <xs:enumeration value="Committed"/>
     <xs:enumeration value="Ignored"/>
     <xs:enumeration value="On Hold"/>
     <xs:enumeration value="Unsuccessful"/>
     <xs:enumeration value="PendingCancellation"/>
     <xs:enumeration value="PendingPurchase"/>
     <xs:enumeration value="Requested"/>
     <xs:enumeration value="Reserved"/>
     <xs:enumeration value="Unchanged"/>
     <xs:enumeration value="RequestDenied"/>
   </xs:restriction>
 </xs:simpleType>
 


Enum Constant Summary
CANCELLED
           
COMMITTED
           
IGNORED
           
MODIFIED
           
ON_HOLD
           
PENDING
           
PENDING_CANCELLATION
          The item that is pending cancellation.
PENDING_PURCHASE
          Purchase of the item is pending.
REQUEST_DENIED
          Request denied.
REQUESTED
          The item has been requested.
RESERVED
          The item is reserved.
UNCHANGED
          The item is not changed due to the most recent action.
UNSUCCESSFUL
           
 
Method Summary
static TransactionStatus convert(java.lang.String value)
           
 java.lang.String toString()
           
static TransactionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TransactionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

PENDING

public static final TransactionStatus PENDING

CANCELLED

public static final TransactionStatus CANCELLED

MODIFIED

public static final TransactionStatus MODIFIED

COMMITTED

public static final TransactionStatus COMMITTED

IGNORED

public static final TransactionStatus IGNORED

ON_HOLD

public static final TransactionStatus ON_HOLD

UNSUCCESSFUL

public static final TransactionStatus UNSUCCESSFUL

PENDING_CANCELLATION

public static final TransactionStatus PENDING_CANCELLATION
The item that is pending cancellation.


PENDING_PURCHASE

public static final TransactionStatus PENDING_PURCHASE
Purchase of the item is pending.


REQUESTED

public static final TransactionStatus REQUESTED
The item has been requested.


RESERVED

public static final TransactionStatus RESERVED
The item is reserved.


UNCHANGED

public static final TransactionStatus UNCHANGED
The item is not changed due to the most recent action.


REQUEST_DENIED

public static final TransactionStatus REQUEST_DENIED
Request denied.

Method Detail

values

public static TransactionStatus[] 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 (TransactionStatus c : TransactionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TransactionStatus 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<TransactionStatus>

convert

public static TransactionStatus convert(java.lang.String value)