org.ota.vehicle
Enum VehiclePeriodUnitName

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

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

RENTAL_PERIOD

public static final VehiclePeriodUnitName RENTAL_PERIOD

YEAR

public static final VehiclePeriodUnitName YEAR

MONTH

public static final VehiclePeriodUnitName MONTH

WEEK

public static final VehiclePeriodUnitName WEEK

DAY

public static final VehiclePeriodUnitName DAY

HOUR

public static final VehiclePeriodUnitName HOUR

WEEKEND

public static final VehiclePeriodUnitName WEEKEND
The calculation is for each weekend.


EXTRA_MONTH

public static final VehiclePeriodUnitName EXTRA_MONTH
The charge is based on an extra month.


BUNDLE

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


PACKAGE

public static final VehiclePeriodUnitName PACKAGE
The charge is based on the package.


EXTRA_DAY

public static final VehiclePeriodUnitName EXTRA_DAY
The charge is based on an extra day.


EXTRA_HOUR

public static final VehiclePeriodUnitName EXTRA_HOUR
The charge is based on an extra hour.


EXTRA_WEEK

public static final VehiclePeriodUnitName EXTRA_WEEK
The charge is based on an extra week.

Method Detail

values

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

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

valueOf

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

convert

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