|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FareApplication>
org.ota.air.FareApplication
public 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 |
---|
public static final FareApplication ONE_WAY
public static final FareApplication RETURN
public static final FareApplication HALF_RETURN
public static final FareApplication ROUNDTRIP
public static final FareApplication ONE_WAY_ONLY
Method Detail |
---|
public static FareApplication[] values()
for (FareApplication c : FareApplication.values()) System.out.println(c);
public static FareApplication valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<FareApplication>
public static FareApplication convert(java.lang.String value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |