org.ota.shared
Enum RatePeriodSimple

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

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

The RatePeriodSimpleType simple type defines a set of valid values for the type of rate that may be applied. Typically rates differ based upon the duration, and the actual rate is then expressed in terms of the period of the rental. 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="RatePeriodSimpleType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Hourly"/>
     <xs:enumeration value="Daily"/>
     <xs:enumeration value="Weekly"/>
     <xs:enumeration value="Monthly"/>
     <xs:enumeration value="WeekendDay"/>
     <xs:enumeration value="Other"/>
     <xs:enumeration value="Package"/>
     <xs:enumeration value="Bundle"/>
     <xs:enumeration value="Total"/>
   </xs:restriction>
 </xs:simpleType>
 


Enum Constant Summary
BUNDLE
          The rate is the same regardless of the number of days the vehicle is rented
DAILY
           
HOURLY
           
MONTHLY
           
OTHER
           
PACKAGE
          The rate period is based on the package.
TOTAL
          The rate is the total, no specific rate period.
WEEKEND_DAY
           
WEEKLY
           
 
Method Summary
static RatePeriodSimple convert(java.lang.String value)
           
 java.lang.String toString()
           
static RatePeriodSimple valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RatePeriodSimple[] 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

HOURLY

public static final RatePeriodSimple HOURLY

DAILY

public static final RatePeriodSimple DAILY

WEEKLY

public static final RatePeriodSimple WEEKLY

MONTHLY

public static final RatePeriodSimple MONTHLY

WEEKEND_DAY

public static final RatePeriodSimple WEEKEND_DAY

OTHER

public static final RatePeriodSimple OTHER

PACKAGE

public static final RatePeriodSimple PACKAGE
The rate period is based on the package.


BUNDLE

public static final RatePeriodSimple BUNDLE
The rate is the same regardless of the number of days the vehicle is rented


TOTAL

public static final RatePeriodSimple TOTAL
The rate is the total, no specific rate period.

Method Detail

values

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

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

valueOf

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

convert

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