org.ota.air
Enum AirTrip

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

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

Identifies the trip type - one way, return, circle trip, open jaw 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="AirTripType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="OneWay"/>
     <xs:enumeration value="OneWayOnly"/>
     <xs:enumeration value="Return"/>
     <xs:enumeration value="Circle"/>
     <xs:enumeration value="OpenJaw"/>
     <xs:enumeration value="Other"/>
     <xs:enumeration value="Outbound"/>
     <xs:enumeration value="OutboundSeasonRoundtrip"/>
     <xs:enumeration value="Non-directional"/>
     <xs:enumeration value="Inbound"/>
     <xs:enumeration value="Roundtrip"/>
   </xs:restriction>
 </xs:simpleType>
 


Enum Constant Summary
CIRCLE
          Identifies a circle trip type.
INBOUND
          The direction for the fare is inbound.
NONDIRECTIONAL
          There is no direction specified for the fare.
ONE_WAY
          Identifies a one way trip type.
ONE_WAY_ONLY
          Cannot be doubled to create a roundtrip.
OPEN_JAW
          Identifies an open jaw trip type.
OTHER
          Identifies an other trip type.
OUTBOUND
          The direction for the fare is outbound.
OUTBOUND_SEASON_ROUNDTRIP
          The direction for the fare is outbound seasonal roundtrip.
RETURN
          Identifies a return trip type.
ROUNDTRIP
          Identifies travel from one point to another point and return to the original point.
 
Method Summary
static AirTrip convert(java.lang.String value)
           
 java.lang.String toString()
           
static AirTrip valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AirTrip[] 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 AirTrip ONE_WAY
Identifies a one way trip type.


ONE_WAY_ONLY

public static final AirTrip ONE_WAY_ONLY
Cannot be doubled to create a roundtrip.


RETURN

public static final AirTrip RETURN
Identifies a return trip type.


CIRCLE

public static final AirTrip CIRCLE
Identifies a circle trip type.


OPEN_JAW

public static final AirTrip OPEN_JAW
Identifies an open jaw trip type.


OTHER

public static final AirTrip OTHER
Identifies an other trip type.


OUTBOUND

public static final AirTrip OUTBOUND
The direction for the fare is outbound.


OUTBOUND_SEASON_ROUNDTRIP

public static final AirTrip OUTBOUND_SEASON_ROUNDTRIP
The direction for the fare is outbound seasonal roundtrip.


NONDIRECTIONAL

public static final AirTrip NONDIRECTIONAL
There is no direction specified for the fare.


INBOUND

public static final AirTrip INBOUND
The direction for the fare is inbound.


ROUNDTRIP

public static final AirTrip ROUNDTRIP
Identifies travel from one point to another point and return to the original point. (The outbound fare shall be used also for the inbound fare component for the purpose of determing if the pricing unit is a round trip).

Method Detail

values

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

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

valueOf

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

convert

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