org.ota.air
Enum FareApplication

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

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

Indicates how the fare may be applied, such as one way or roundtrip. 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="FareApplicationType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="OneWay"/>
     <xs:enumeration value="Return"/>
     <xs:enumeration value="HalfReturn"/>
     <xs:enumeration value="Roundtrip"/>
     <xs:enumeration value="OneWayOnly"/>
   </xs:restriction>
 </xs:simpleType>
 


Enum Constant Summary
HALF_RETURN
           
ONE_WAY
           
ONE_WAY_ONLY
          The fare can only be treated as one way - can not be doubled to create a roundtrip fare.
RETURN
           
ROUNDTRIP
          Specifies that the fare is for a roundtrip.
 
Method Summary
static FareApplication convert(java.lang.String value)
           
 java.lang.String toString()
           
static FareApplication valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FareApplication[] 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

ONE_WAY

public static final FareApplication ONE_WAY

RETURN

public static final FareApplication RETURN

HALF_RETURN

public static final FareApplication HALF_RETURN

ROUNDTRIP

public static final FareApplication ROUNDTRIP
Specifies that the fare is for a roundtrip.


ONE_WAY_ONLY

public static final FareApplication ONE_WAY_ONLY
The fare can only be treated as one way - can not be doubled to create a roundtrip fare.

Method Detail

values

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

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

valueOf

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

convert

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