|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<VehiclePeriodUnitName>
org.ota.vehicle.VehiclePeriodUnitName
public enum VehiclePeriodUnitName
The VehiclePeriodUnitNameSimpleType simple type defines a set of valid values for a period of time that may be used as part of the reservation of a vehicle. Examples of these valid values include day, hour, rental period for expressing the entire duration of the rental, etc. 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="VehiclePeriodUnitNameType"> <xs:restriction base="xs:string"> <xs:enumeration value="RentalPeriod"/> <xs:enumeration value="Year"/> <xs:enumeration value="Month"/> <xs:enumeration value="Week"/> <xs:enumeration value="Day"/> <xs:enumeration value="Hour"/> <xs:enumeration value="Weekend"/> <xs:enumeration value="ExtraMonth"/> <xs:enumeration value="Bundle"/> <xs:enumeration value="Package"/> <xs:enumeration value="ExtraDay"/> <xs:enumeration value="ExtraHour"/> <xs:enumeration value="ExtraWeek"/> </xs:restriction> </xs:simpleType>
Enum Constant Summary | |
---|---|
BUNDLE
The rate is the same regardless of the number of days the vehicle is rented. |
|
DAY
|
|
EXTRA_DAY
The charge is based on an extra day. |
|
EXTRA_HOUR
The charge is based on an extra hour. |
|
EXTRA_MONTH
The charge is based on an extra month. |
|
EXTRA_WEEK
The charge is based on an extra week. |
|
HOUR
|
|
MONTH
|
|
PACKAGE
The charge is based on the package. |
|
RENTAL_PERIOD
|
|
WEEK
|
|
WEEKEND
The calculation is for each weekend. |
|
YEAR
|
Method Summary | |
---|---|
static VehiclePeriodUnitName |
convert(java.lang.String value)
|
java.lang.String |
toString()
|
static VehiclePeriodUnitName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static VehiclePeriodUnitName[] |
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 VehiclePeriodUnitName RENTAL_PERIOD
public static final VehiclePeriodUnitName YEAR
public static final VehiclePeriodUnitName MONTH
public static final VehiclePeriodUnitName WEEK
public static final VehiclePeriodUnitName DAY
public static final VehiclePeriodUnitName HOUR
public static final VehiclePeriodUnitName WEEKEND
public static final VehiclePeriodUnitName EXTRA_MONTH
public static final VehiclePeriodUnitName BUNDLE
public static final VehiclePeriodUnitName PACKAGE
public static final VehiclePeriodUnitName EXTRA_DAY
public static final VehiclePeriodUnitName EXTRA_HOUR
public static final VehiclePeriodUnitName EXTRA_WEEK
Method Detail |
---|
public static VehiclePeriodUnitName[] values()
for (VehiclePeriodUnitName c : VehiclePeriodUnitName.values()) System.out.println(c);
public static VehiclePeriodUnitName 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<VehiclePeriodUnitName>
public static VehiclePeriodUnitName convert(java.lang.String value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |