|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ota.vehicle.VehicleProfileRentalPref
public class VehicleProfileRentalPref
Vehicle rental preferences can be specified for customers or companies to indicate their preferences for types of vehicles to be rented in specific travel situations. Companies may wish to specify certain class or types of cars that their employees are allowed to rent, or indicate special business needs for trucks for hauling goods, etc. Personal travelers may wish to indicate preferences for types of vehicles such as vans or SUVs for family vacations, or smaller, more sporty models when travelling alone. A customer may prefer to have a convertible or sun roof in a warm destination, but request a ski rack when vacationing in the wintertime. The VehicleProfileRentalPrefType complex type has elements for specific features on rental cars including vehicle type (major category such as car, truck, SUV) and vehicle class (more precise kind of vehicle), air conditioning, transmission, and special equipment. In addition, the specification captures preferences for vendors and loyalty programs, insurance coverage, forms of payment for rental cars, and other special requirements. Schema fragment(s) for this class:
<xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="VehicleProfileRentalPrefType"> <xs:sequence> <xs:element name="LoyaltyPref" minOccurs="0" maxOccurs="20"> <xs:complexType> <xs:attributeGroup ref="ns:RPH_PrefGroup"/> </xs:complexType> </xs:element> <xs:element type="ns:CompanyNamePrefType" name="VendorPref" minOccurs="0" maxOccurs="20"/> <xs:element name="PaymentFormPref" minOccurs="0" maxOccurs="10"> <xs:complexType> <xs:attributeGroup ref="ns:RPH_PrefGroup"/> </xs:complexType> </xs:element> <xs:element name="CoveragePref" minOccurs="0" maxOccurs="30"> <xs:complexType> <xs:attributeGroup ref="ns:VehicleCoveragePrefGroup"/> </xs:complexType> </xs:element> <xs:element type="ns:VehicleSpecialReqPrefType" name="SpecialReqPref" minOccurs="0" maxOccurs="5"/> <xs:element type="ns:VehiclePrefType" name="VehTypePref" minOccurs="0" maxOccurs="10"/> <xs:element name="SpecialEquipPref" minOccurs="0" maxOccurs="15"> <xs:complexType> <xs:attributeGroup ref="ns:VehicleEquipmentPrefGroup"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attributeGroup ref="ns:PreferLevelGroup"/> <xs:attributeGroup ref="ns:PrivacyGroup"/> <xs:attributeGroup ref="ns:SmokingIndicatorGroup"/> <xs:attribute type="xs:boolean" use="optional" name="GasPrePay"/> </xs:complexType> <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PreferLevelGroup"> <xs:attribute type="ns:PreferLevelType" use="optional" name="PreferLevel"/> </xs:attributeGroup> <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SmokingIndicatorGroup"> <xs:attribute type="xs:boolean" use="optional" name="SmokingAllowed"/> </xs:attributeGroup>
Constructor Summary | |
---|---|
VehicleProfileRentalPref()
|
Method Summary | |
---|---|
void |
addCoveragePref(VehicleCoveragePrefGroup item)
Add a 'CoveragePref' element item. |
void |
addLoyaltyPref(RPHPrefGroup item)
Add a 'LoyaltyPref' element item. |
void |
addPaymentFormPref(RPHPrefGroup item)
Add a 'PaymentFormPref' element item. |
void |
addSpecialEquipPref(VehicleEquipmentPrefGroup item)
Add a 'SpecialEquipPref' element item. |
void |
addSpecialReqPref(VehicleSpecialReqPref item)
Add a 'SpecialReqPref' element item. |
void |
addVehTypePref(VehiclePref item)
Add a 'VehTypePref' element item. |
void |
addVendorPref(CompanyNamePref item)
Add a 'VendorPref' element item. |
void |
clearCoveragePrefs()
Remove all 'CoveragePref' element items. |
void |
clearLoyaltyPrefs()
Remove all 'LoyaltyPref' element items. |
void |
clearPaymentFormPrefs()
Remove all 'PaymentFormPref' element items. |
void |
clearSpecialEquipPrefs()
Remove all 'SpecialEquipPref' element items. |
void |
clearSpecialReqPrefs()
Remove all 'SpecialReqPref' element items. |
void |
clearVehTypePrefs()
Remove all 'VehTypePref' element items. |
void |
clearVendorPrefs()
Remove all 'VendorPref' element items. |
VehicleCoveragePrefGroup |
getCoveragePref(int index)
Get 'CoveragePref' element item by position. |
java.util.List<VehicleCoveragePrefGroup> |
getCoveragePrefs()
Get the list of 'CoveragePref' element items. |
java.lang.Boolean |
getGasPrePay()
Get the 'GasPrePay' attribute value. |
RPHPrefGroup |
getLoyaltyPref(int index)
Get 'LoyaltyPref' element item by position. |
java.util.List<RPHPrefGroup> |
getLoyaltyPrefs()
Get the list of 'LoyaltyPref' element items. |
RPHPrefGroup |
getPaymentFormPref(int index)
Get 'PaymentFormPref' element item by position. |
java.util.List<RPHPrefGroup> |
getPaymentFormPrefs()
Get the list of 'PaymentFormPref' element items. |
PreferLevel |
getPreferLevel()
Get the 'PreferLevel' attribute value. |
PrivacyGroup |
getPrivacyGroup()
Get the 'PrivacyGroup' attributeGroup value. |
java.lang.Boolean |
getSmokingAllowed()
Get the 'SmokingAllowed' attribute value. |
VehicleEquipmentPrefGroup |
getSpecialEquipPref(int index)
Get 'SpecialEquipPref' element item by position. |
java.util.List<VehicleEquipmentPrefGroup> |
getSpecialEquipPrefs()
Get the list of 'SpecialEquipPref' element items. |
VehicleSpecialReqPref |
getSpecialReqPref(int index)
Get 'SpecialReqPref' element item by position. |
java.util.List<VehicleSpecialReqPref> |
getSpecialReqPrefs()
Get the list of 'SpecialReqPref' element items. |
VehiclePref |
getVehTypePref(int index)
Get 'VehTypePref' element item by position. |
java.util.List<VehiclePref> |
getVehTypePrefs()
Get the list of 'VehTypePref' element items. |
CompanyNamePref |
getVendorPref(int index)
Get 'VendorPref' element item by position. |
java.util.List<CompanyNamePref> |
getVendorPrefs()
Get the list of 'VendorPref' element items. |
void |
setCoveragePrefs(java.util.List<VehicleCoveragePrefGroup> list)
Set the list of 'CoveragePref' element items. |
void |
setGasPrePay(java.lang.Boolean gasPrePay)
Set the 'GasPrePay' attribute value. |
void |
setLoyaltyPrefs(java.util.List<RPHPrefGroup> list)
Set the list of 'LoyaltyPref' element items. |
void |
setPaymentFormPrefs(java.util.List<RPHPrefGroup> list)
Set the list of 'PaymentFormPref' element items. |
void |
setPreferLevel(PreferLevel preferLevel)
Set the 'PreferLevel' attribute value. |
void |
setPrivacyGroup(PrivacyGroup privacyGroup)
Set the 'PrivacyGroup' attributeGroup value. |
void |
setSmokingAllowed(java.lang.Boolean smokingAllowed)
Set the 'SmokingAllowed' attribute value. |
void |
setSpecialEquipPrefs(java.util.List<VehicleEquipmentPrefGroup> list)
Set the list of 'SpecialEquipPref' element items. |
void |
setSpecialReqPrefs(java.util.List<VehicleSpecialReqPref> list)
Set the list of 'SpecialReqPref' element items. |
void |
setVehTypePrefs(java.util.List<VehiclePref> list)
Set the list of 'VehTypePref' element items. |
void |
setVendorPrefs(java.util.List<CompanyNamePref> list)
Set the list of 'VendorPref' element items. |
int |
sizeCoveragePrefs()
Get the number of 'CoveragePref' element items. |
int |
sizeLoyaltyPrefs()
Get the number of 'LoyaltyPref' element items. |
int |
sizePaymentFormPrefs()
Get the number of 'PaymentFormPref' element items. |
int |
sizeSpecialEquipPrefs()
Get the number of 'SpecialEquipPref' element items. |
int |
sizeSpecialReqPrefs()
Get the number of 'SpecialReqPref' element items. |
int |
sizeVehTypePrefs()
Get the number of 'VehTypePref' element items. |
int |
sizeVendorPrefs()
Get the number of 'VendorPref' element items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VehicleProfileRentalPref()
Method Detail |
---|
public java.util.List<RPHPrefGroup> getLoyaltyPrefs()
public void setLoyaltyPrefs(java.util.List<RPHPrefGroup> list)
list
- public int sizeLoyaltyPrefs()
public void addLoyaltyPref(RPHPrefGroup item)
item
- public RPHPrefGroup getLoyaltyPref(int index)
index
-
public void clearLoyaltyPrefs()
public java.util.List<CompanyNamePref> getVendorPrefs()
public void setVendorPrefs(java.util.List<CompanyNamePref> list)
list
- public int sizeVendorPrefs()
public void addVendorPref(CompanyNamePref item)
item
- public CompanyNamePref getVendorPref(int index)
index
-
public void clearVendorPrefs()
public java.util.List<RPHPrefGroup> getPaymentFormPrefs()
public void setPaymentFormPrefs(java.util.List<RPHPrefGroup> list)
list
- public int sizePaymentFormPrefs()
public void addPaymentFormPref(RPHPrefGroup item)
item
- public RPHPrefGroup getPaymentFormPref(int index)
index
-
public void clearPaymentFormPrefs()
public java.util.List<VehicleCoveragePrefGroup> getCoveragePrefs()
public void setCoveragePrefs(java.util.List<VehicleCoveragePrefGroup> list)
list
- public int sizeCoveragePrefs()
public void addCoveragePref(VehicleCoveragePrefGroup item)
item
- public VehicleCoveragePrefGroup getCoveragePref(int index)
index
-
public void clearCoveragePrefs()
public java.util.List<VehicleSpecialReqPref> getSpecialReqPrefs()
public void setSpecialReqPrefs(java.util.List<VehicleSpecialReqPref> list)
list
- public int sizeSpecialReqPrefs()
public void addSpecialReqPref(VehicleSpecialReqPref item)
item
- public VehicleSpecialReqPref getSpecialReqPref(int index)
index
-
public void clearSpecialReqPrefs()
public java.util.List<VehiclePref> getVehTypePrefs()
public void setVehTypePrefs(java.util.List<VehiclePref> list)
list
- public int sizeVehTypePrefs()
public void addVehTypePref(VehiclePref item)
item
- public VehiclePref getVehTypePref(int index)
index
-
public void clearVehTypePrefs()
public java.util.List<VehicleEquipmentPrefGroup> getSpecialEquipPrefs()
public void setSpecialEquipPrefs(java.util.List<VehicleEquipmentPrefGroup> list)
list
- public int sizeSpecialEquipPrefs()
public void addSpecialEquipPref(VehicleEquipmentPrefGroup item)
item
- public VehicleEquipmentPrefGroup getSpecialEquipPref(int index)
index
-
public void clearSpecialEquipPrefs()
public PreferLevel getPreferLevel()
public void setPreferLevel(PreferLevel preferLevel)
preferLevel
- public PrivacyGroup getPrivacyGroup()
public void setPrivacyGroup(PrivacyGroup privacyGroup)
privacyGroup
- public java.lang.Boolean getSmokingAllowed()
public void setSmokingAllowed(java.lang.Boolean smokingAllowed)
smokingAllowed
- public java.lang.Boolean getGasPrePay()
public void setGasPrePay(java.lang.Boolean gasPrePay)
gasPrePay
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |