org.ota.profile
Class Profile.PrefCollections.PrefCollection

java.lang.Object
  extended by org.ota.profile.Profile.PrefCollections.PrefCollection
Enclosing class:
Profile.PrefCollections

public static class Profile.PrefCollections.PrefCollection
extends java.lang.Object

Aggregation of customer travel needs. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PrefCollection" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:CommonPrefType" name="CommonPref" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class CommonPref -->
       </xs:element>
       <xs:element type="ns:VehicleProfileRentalPrefType" name="VehicleRentalPref" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element type="ns:AirlinePrefType" name="AirlinePref" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class AirlinePref -->
       </xs:element>
       <xs:element type="ns:HotelPrefType" name="HotelPref" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class HotelPref -->
       </xs:element>
       <xs:element type="ns:OtherSrvcPrefType" name="OtherSrvcPref" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class OtherSrvcPref -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:PrivacyGroup"/>
     <xs:attribute type="xs:string" use="optional" name="TravelPurpose"/>
   </xs:complexType>
 </xs:element>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class Profile.PrefCollections.PrefCollection.AirlinePref
          A set of preferences for air travel.
static class Profile.PrefCollections.PrefCollection.CommonPref
          Supplier-independent preferences.
static class Profile.PrefCollections.PrefCollection.HotelPref
          A set of preferences for hotel stay.
static class Profile.PrefCollections.PrefCollection.OtherSrvcPref
          A set of preferences for other services.
 
Constructor Summary
Profile.PrefCollections.PrefCollection()
           
 
Method Summary
 void addAirlinePref(Profile.PrefCollections.PrefCollection.AirlinePref item)
          Add a 'AirlinePref' element item.
 void addCommonPref(Profile.PrefCollections.PrefCollection.CommonPref item)
          Add a 'CommonPref' element item.
 void addHotelPref(Profile.PrefCollections.PrefCollection.HotelPref item)
          Add a 'HotelPref' element item.
 void addOtherSrvcPref(Profile.PrefCollections.PrefCollection.OtherSrvcPref item)
          Add a 'OtherSrvcPref' element item.
 void addVehicleRentalPref(VehicleProfileRentalPref item)
          Add a 'VehicleRentalPref' element item.
 void clearAirlinePrefs()
          Remove all 'AirlinePref' element items.
 void clearCommonPrefs()
          Remove all 'CommonPref' element items.
 void clearHotelPrefs()
          Remove all 'HotelPref' element items.
 void clearOtherSrvcPrefs()
          Remove all 'OtherSrvcPref' element items.
 void clearVehicleRentalPrefs()
          Remove all 'VehicleRentalPref' element items.
 Profile.PrefCollections.PrefCollection.AirlinePref getAirlinePref(int index)
          Get 'AirlinePref' element item by position.
 java.util.List<Profile.PrefCollections.PrefCollection.AirlinePref> getAirlinePrefs()
          Get the list of 'AirlinePref' element items.
 Profile.PrefCollections.PrefCollection.CommonPref getCommonPref(int index)
          Get 'CommonPref' element item by position.
 java.util.List<Profile.PrefCollections.PrefCollection.CommonPref> getCommonPrefs()
          Get the list of 'CommonPref' element items.
 Profile.PrefCollections.PrefCollection.HotelPref getHotelPref(int index)
          Get 'HotelPref' element item by position.
 java.util.List<Profile.PrefCollections.PrefCollection.HotelPref> getHotelPrefs()
          Get the list of 'HotelPref' element items.
 Profile.PrefCollections.PrefCollection.OtherSrvcPref getOtherSrvcPref(int index)
          Get 'OtherSrvcPref' element item by position.
 java.util.List<Profile.PrefCollections.PrefCollection.OtherSrvcPref> getOtherSrvcPrefs()
          Get the list of 'OtherSrvcPref' element items.
 PrivacyGroup getPrivacyGroup()
          Get the 'PrivacyGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 java.lang.String getTravelPurpose()
          Get the 'TravelPurpose' attribute value.
 VehicleProfileRentalPref getVehicleRentalPref(int index)
          Get 'VehicleRentalPref' element item by position.
 java.util.List<VehicleProfileRentalPref> getVehicleRentalPrefs()
          Get the list of 'VehicleRentalPref' element items.
 void setAirlinePrefs(java.util.List<Profile.PrefCollections.PrefCollection.AirlinePref> list)
          Set the list of 'AirlinePref' element items.
 void setCommonPrefs(java.util.List<Profile.PrefCollections.PrefCollection.CommonPref> list)
          Set the list of 'CommonPref' element items.
 void setHotelPrefs(java.util.List<Profile.PrefCollections.PrefCollection.HotelPref> list)
          Set the list of 'HotelPref' element items.
 void setOtherSrvcPrefs(java.util.List<Profile.PrefCollections.PrefCollection.OtherSrvcPref> list)
          Set the list of 'OtherSrvcPref' element items.
 void setPrivacyGroup(PrivacyGroup privacyGroup)
          Set the 'PrivacyGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelPurpose(java.lang.String travelPurpose)
          Set the 'TravelPurpose' attribute value.
 void setVehicleRentalPrefs(java.util.List<VehicleProfileRentalPref> list)
          Set the list of 'VehicleRentalPref' element items.
 int sizeAirlinePrefs()
          Get the number of 'AirlinePref' element items.
 int sizeCommonPrefs()
          Get the number of 'CommonPref' element items.
 int sizeHotelPrefs()
          Get the number of 'HotelPref' element items.
 int sizeOtherSrvcPrefs()
          Get the number of 'OtherSrvcPref' element items.
 int sizeVehicleRentalPrefs()
          Get the number of 'VehicleRentalPref' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile.PrefCollections.PrefCollection

public Profile.PrefCollections.PrefCollection()
Method Detail

getCommonPrefs

public java.util.List<Profile.PrefCollections.PrefCollection.CommonPref> getCommonPrefs()
Get the list of 'CommonPref' element items.

Returns:
list

setCommonPrefs

public void setCommonPrefs(java.util.List<Profile.PrefCollections.PrefCollection.CommonPref> list)
Set the list of 'CommonPref' element items.

Parameters:
list -

sizeCommonPrefs

public int sizeCommonPrefs()
Get the number of 'CommonPref' element items.

Returns:
count

addCommonPref

public void addCommonPref(Profile.PrefCollections.PrefCollection.CommonPref item)
Add a 'CommonPref' element item.

Parameters:
item -

getCommonPref

public Profile.PrefCollections.PrefCollection.CommonPref getCommonPref(int index)
Get 'CommonPref' element item by position.

Parameters:
index -
Returns:
item

clearCommonPrefs

public void clearCommonPrefs()
Remove all 'CommonPref' element items.


getVehicleRentalPrefs

public java.util.List<VehicleProfileRentalPref> getVehicleRentalPrefs()
Get the list of 'VehicleRentalPref' element items. A set of preferences for vehicle rental.

Returns:
list

setVehicleRentalPrefs

public void setVehicleRentalPrefs(java.util.List<VehicleProfileRentalPref> list)
Set the list of 'VehicleRentalPref' element items. A set of preferences for vehicle rental.

Parameters:
list -

sizeVehicleRentalPrefs

public int sizeVehicleRentalPrefs()
Get the number of 'VehicleRentalPref' element items.

Returns:
count

addVehicleRentalPref

public void addVehicleRentalPref(VehicleProfileRentalPref item)
Add a 'VehicleRentalPref' element item.

Parameters:
item -

getVehicleRentalPref

public VehicleProfileRentalPref getVehicleRentalPref(int index)
Get 'VehicleRentalPref' element item by position.

Parameters:
index -
Returns:
item

clearVehicleRentalPrefs

public void clearVehicleRentalPrefs()
Remove all 'VehicleRentalPref' element items.


getAirlinePrefs

public java.util.List<Profile.PrefCollections.PrefCollection.AirlinePref> getAirlinePrefs()
Get the list of 'AirlinePref' element items.

Returns:
list

setAirlinePrefs

public void setAirlinePrefs(java.util.List<Profile.PrefCollections.PrefCollection.AirlinePref> list)
Set the list of 'AirlinePref' element items.

Parameters:
list -

sizeAirlinePrefs

public int sizeAirlinePrefs()
Get the number of 'AirlinePref' element items.

Returns:
count

addAirlinePref

public void addAirlinePref(Profile.PrefCollections.PrefCollection.AirlinePref item)
Add a 'AirlinePref' element item.

Parameters:
item -

getAirlinePref

public Profile.PrefCollections.PrefCollection.AirlinePref getAirlinePref(int index)
Get 'AirlinePref' element item by position.

Parameters:
index -
Returns:
item

clearAirlinePrefs

public void clearAirlinePrefs()
Remove all 'AirlinePref' element items.


getHotelPrefs

public java.util.List<Profile.PrefCollections.PrefCollection.HotelPref> getHotelPrefs()
Get the list of 'HotelPref' element items.

Returns:
list

setHotelPrefs

public void setHotelPrefs(java.util.List<Profile.PrefCollections.PrefCollection.HotelPref> list)
Set the list of 'HotelPref' element items.

Parameters:
list -

sizeHotelPrefs

public int sizeHotelPrefs()
Get the number of 'HotelPref' element items.

Returns:
count

addHotelPref

public void addHotelPref(Profile.PrefCollections.PrefCollection.HotelPref item)
Add a 'HotelPref' element item.

Parameters:
item -

getHotelPref

public Profile.PrefCollections.PrefCollection.HotelPref getHotelPref(int index)
Get 'HotelPref' element item by position.

Parameters:
index -
Returns:
item

clearHotelPrefs

public void clearHotelPrefs()
Remove all 'HotelPref' element items.


getOtherSrvcPrefs

public java.util.List<Profile.PrefCollections.PrefCollection.OtherSrvcPref> getOtherSrvcPrefs()
Get the list of 'OtherSrvcPref' element items.

Returns:
list

setOtherSrvcPrefs

public void setOtherSrvcPrefs(java.util.List<Profile.PrefCollections.PrefCollection.OtherSrvcPref> list)
Set the list of 'OtherSrvcPref' element items.

Parameters:
list -

sizeOtherSrvcPrefs

public int sizeOtherSrvcPrefs()
Get the number of 'OtherSrvcPref' element items.

Returns:
count

addOtherSrvcPref

public void addOtherSrvcPref(Profile.PrefCollections.PrefCollection.OtherSrvcPref item)
Add a 'OtherSrvcPref' element item.

Parameters:
item -

getOtherSrvcPref

public Profile.PrefCollections.PrefCollection.OtherSrvcPref getOtherSrvcPref(int index)
Get 'OtherSrvcPref' element item by position.

Parameters:
index -
Returns:
item

clearOtherSrvcPrefs

public void clearOtherSrvcPrefs()
Remove all 'OtherSrvcPref' element items.


getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getPrivacyGroup

public PrivacyGroup getPrivacyGroup()
Get the 'PrivacyGroup' attributeGroup value. Allows for control of the sharing of data between parties.

Returns:
value

setPrivacyGroup

public void setPrivacyGroup(PrivacyGroup privacyGroup)
Set the 'PrivacyGroup' attributeGroup value. Allows for control of the sharing of data between parties.

Parameters:
privacyGroup -

getTravelPurpose

public java.lang.String getTravelPurpose()
Get the 'TravelPurpose' attribute value. Refer to OpenTravel Code List Travel Purpose (TVP).

Returns:
value

setTravelPurpose

public void setTravelPurpose(java.lang.String travelPurpose)
Set the 'TravelPurpose' attribute value. Refer to OpenTravel Code List Travel Purpose (TVP).

Parameters:
travelPurpose -