org.ota.air
Enum StayUnit

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

public enum StayUnit
extends java.lang.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

MINUTES

public static final StayUnit MINUTES
Stay restriction in minutes.


HOURS

public static final StayUnit HOURS
Stay restriction in hours.


DAYS

public static final StayUnit DAYS
Stay restriction in days.


MONTHS

public static final StayUnit MONTHS
Stay restriction in months.


MON

public static final StayUnit MON
Monday


TUES

public static final StayUnit TUES
Tuesday


WED

public static final StayUnit WED
Wednesday


THU

public static final StayUnit THU
Thursday


FRI

public static final StayUnit FRI
Friday


SAT

public static final StayUnit SAT
Saturday


SUN

public static final StayUnit SUN
Sunday

Method Detail

values

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

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

valueOf

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

convert

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