|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RatePeriodSimple>
org.ota.shared.RatePeriodSimple
public 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 |
---|
public static final RatePeriodSimple HOURLY
public static final RatePeriodSimple DAILY
public static final RatePeriodSimple WEEKLY
public static final RatePeriodSimple MONTHLY
public static final RatePeriodSimple WEEKEND_DAY
public static final RatePeriodSimple OTHER
public static final RatePeriodSimple PACKAGE
public static final RatePeriodSimple BUNDLE
public static final RatePeriodSimple TOTAL
Method Detail |
---|
public static RatePeriodSimple[] values()
for (RatePeriodSimple c : RatePeriodSimple.values()) System.out.println(c);
public static RatePeriodSimple 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<RatePeriodSimple>
public static RatePeriodSimple convert(java.lang.String value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |