|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<StayUnit>
org.ota.air.StayUnit
public enum StayUnit
Defines the 'Units' that can be applied to Stay restrictions. 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="StayUnitType"> <xs:restriction base="xs:string"> <xs:enumeration value="Minutes"/> <xs:enumeration value="Hours"/> <xs:enumeration value="Days"/> <xs:enumeration value="Months"/> <xs:enumeration value="MON"/> <xs:enumeration value="TUES"/> <xs:enumeration value="WED"/> <xs:enumeration value="THU"/> <xs:enumeration value="FRI"/> <xs:enumeration value="SAT"/> <xs:enumeration value="SUN"/> </xs:restriction> </xs:simpleType>
Enum Constant Summary | |
---|---|
DAYS
Stay restriction in days. |
|
FRI
Friday |
|
HOURS
Stay restriction in hours. |
|
MINUTES
Stay restriction in minutes. |
|
MON
Monday |
|
MONTHS
Stay restriction in months. |
|
SAT
Saturday |
|
SUN
Sunday |
|
THU
Thursday |
|
TUES
Tuesday |
|
WED
Wednesday |
Method Summary | |
---|---|
static StayUnit |
convert(java.lang.String value)
|
java.lang.String |
toString()
|
static StayUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static StayUnit[] |
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 StayUnit MINUTES
public static final StayUnit HOURS
public static final StayUnit DAYS
public static final StayUnit MONTHS
public static final StayUnit MON
public static final StayUnit TUES
public static final StayUnit WED
public static final StayUnit THU
public static final StayUnit FRI
public static final StayUnit SAT
public static final StayUnit SUN
Method Detail |
---|
public static StayUnit[] values()
for (StayUnit c : StayUnit.values()) System.out.println(c);
public static StayUnit 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<StayUnit>
public static StayUnit convert(java.lang.String value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |