org.ota.profile
Class Profile.PrefCollections.PrefCollection.OtherSrvcPref

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

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

A set of preferences for other services. 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" type="ns:OtherSrvcPrefType" name="OtherSrvcPref" minOccurs="0" maxOccurs="unbounded"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OtherSrvcPrefType">
   <xs:sequence>
     <xs:element type="xs:string" name="OtherSrvcName"/>
     <xs:element type="ns:CompanyNamePrefType" name="VendorPref" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:LoyaltyPrefType" name="LoyaltyPref" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:PaymentFormPrefType" name="PaymentFormPref" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:SpecRequestPrefType" name="SpecRequestPref" minOccurs="0" maxOccurs="5"/>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:PreferLevelGroup"/>
   <xs:attributeGroup ref="ns:PrivacyGroup"/>
   <xs:attribute type="xs:string" use="optional" name="TravelPurpose"/>
 </xs:complexType>
 
 <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"/>
 
 <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>
 


Constructor Summary
Profile.PrefCollections.PrefCollection.OtherSrvcPref()
           
 
Method Summary
 void addLoyaltyPref(LoyaltyPref item)
          Add a 'LoyaltyPref' element item.
 void addPaymentFormPref(PaymentFormPref item)
          Add a 'PaymentFormPref' element item.
 void addSpecRequestPref(SpecRequestPref item)
          Add a 'SpecRequestPref' element item.
 void addVendorPref(CompanyNamePref item)
          Add a 'VendorPref' element item.
 void clearLoyaltyPrefs()
          Remove all 'LoyaltyPref' element items.
 void clearPaymentFormPrefs()
          Remove all 'PaymentFormPref' element items.
 void clearSpecRequestPrefs()
          Remove all 'SpecRequestPref' element items.
 void clearVendorPrefs()
          Remove all 'VendorPref' element items.
 LoyaltyPref getLoyaltyPref(int index)
          Get 'LoyaltyPref' element item by position.
 java.util.List<LoyaltyPref> getLoyaltyPrefs()
          Get the list of 'LoyaltyPref' element items.
 java.lang.String getOtherSrvcName()
          Get the 'OtherSrvcName' element value.
 PaymentFormPref getPaymentFormPref(int index)
          Get 'PaymentFormPref' element item by position.
 java.util.List<PaymentFormPref> getPaymentFormPrefs()
          Get the list of 'PaymentFormPref' element items.
 PreferLevel getPreferLevel()
          Get the 'PreferLevel' attribute value.
 PrivacyGroup getPrivacyGroup()
          Get the 'PrivacyGroup' attributeGroup value.
 SpecRequestPref getSpecRequestPref(int index)
          Get 'SpecRequestPref' element item by position.
 java.util.List<SpecRequestPref> getSpecRequestPrefs()
          Get the list of 'SpecRequestPref' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 java.lang.String getTravelPurpose()
          Get the 'TravelPurpose' attribute value.
 CompanyNamePref getVendorPref(int index)
          Get 'VendorPref' element item by position.
 java.util.List<CompanyNamePref> getVendorPrefs()
          Get the list of 'VendorPref' element items.
 void setLoyaltyPrefs(java.util.List<LoyaltyPref> list)
          Set the list of 'LoyaltyPref' element items.
 void setOtherSrvcName(java.lang.String otherSrvcName)
          Set the 'OtherSrvcName' element value.
 void setPaymentFormPrefs(java.util.List<PaymentFormPref> 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 setSpecRequestPrefs(java.util.List<SpecRequestPref> list)
          Set the list of 'SpecRequestPref' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelPurpose(java.lang.String travelPurpose)
          Set the 'TravelPurpose' attribute value.
 void setVendorPrefs(java.util.List<CompanyNamePref> list)
          Set the list of 'VendorPref' element items.
 int sizeLoyaltyPrefs()
          Get the number of 'LoyaltyPref' element items.
 int sizePaymentFormPrefs()
          Get the number of 'PaymentFormPref' element items.
 int sizeSpecRequestPrefs()
          Get the number of 'SpecRequestPref' 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

Profile.PrefCollections.PrefCollection.OtherSrvcPref

public Profile.PrefCollections.PrefCollection.OtherSrvcPref()
Method Detail

getOtherSrvcName

public java.lang.String getOtherSrvcName()
Get the 'OtherSrvcName' element value. The name identfiying the service.

Returns:
value

setOtherSrvcName

public void setOtherSrvcName(java.lang.String otherSrvcName)
Set the 'OtherSrvcName' element value. The name identfiying the service.

Parameters:
otherSrvcName -

getVendorPrefs

public java.util.List<CompanyNamePref> getVendorPrefs()
Get the list of 'VendorPref' element items. Enables a preference to be indicated for a vendor.

Returns:
list

setVendorPrefs

public void setVendorPrefs(java.util.List<CompanyNamePref> list)
Set the list of 'VendorPref' element items. Enables a preference to be indicated for a vendor.

Parameters:
list -

sizeVendorPrefs

public int sizeVendorPrefs()
Get the number of 'VendorPref' element items.

Returns:
count

addVendorPref

public void addVendorPref(CompanyNamePref item)
Add a 'VendorPref' element item.

Parameters:
item -

getVendorPref

public CompanyNamePref getVendorPref(int index)
Get 'VendorPref' element item by position.

Parameters:
index -
Returns:
item

clearVendorPrefs

public void clearVendorPrefs()
Remove all 'VendorPref' element items.


getLoyaltyPrefs

public java.util.List<LoyaltyPref> getLoyaltyPrefs()
Get the list of 'LoyaltyPref' element items. Enables a preference to be indicated for a loyalty program.

Returns:
list

setLoyaltyPrefs

public void setLoyaltyPrefs(java.util.List<LoyaltyPref> list)
Set the list of 'LoyaltyPref' element items. Enables a preference to be indicated for a loyalty program.

Parameters:
list -

sizeLoyaltyPrefs

public int sizeLoyaltyPrefs()
Get the number of 'LoyaltyPref' element items.

Returns:
count

addLoyaltyPref

public void addLoyaltyPref(LoyaltyPref item)
Add a 'LoyaltyPref' element item.

Parameters:
item -

getLoyaltyPref

public LoyaltyPref getLoyaltyPref(int index)
Get 'LoyaltyPref' element item by position.

Parameters:
index -
Returns:
item

clearLoyaltyPrefs

public void clearLoyaltyPrefs()
Remove all 'LoyaltyPref' element items.


getPaymentFormPrefs

public java.util.List<PaymentFormPref> getPaymentFormPrefs()
Get the list of 'PaymentFormPref' element items. Enables a preference to be indicated for a form of payment.

Returns:
list

setPaymentFormPrefs

public void setPaymentFormPrefs(java.util.List<PaymentFormPref> list)
Set the list of 'PaymentFormPref' element items. Enables a preference to be indicated for a form of payment.

Parameters:
list -

sizePaymentFormPrefs

public int sizePaymentFormPrefs()
Get the number of 'PaymentFormPref' element items.

Returns:
count

addPaymentFormPref

public void addPaymentFormPref(PaymentFormPref item)
Add a 'PaymentFormPref' element item.

Parameters:
item -

getPaymentFormPref

public PaymentFormPref getPaymentFormPref(int index)
Get 'PaymentFormPref' element item by position.

Parameters:
index -
Returns:
item

clearPaymentFormPrefs

public void clearPaymentFormPrefs()
Remove all 'PaymentFormPref' element items.


getSpecRequestPrefs

public java.util.List<SpecRequestPref> getSpecRequestPrefs()
Get the list of 'SpecRequestPref' element items. Enables a preference to be indicated for a special request.

Returns:
list

setSpecRequestPrefs

public void setSpecRequestPrefs(java.util.List<SpecRequestPref> list)
Set the list of 'SpecRequestPref' element items. Enables a preference to be indicated for a special request.

Parameters:
list -

sizeSpecRequestPrefs

public int sizeSpecRequestPrefs()
Get the number of 'SpecRequestPref' element items.

Returns:
count

addSpecRequestPref

public void addSpecRequestPref(SpecRequestPref item)
Add a 'SpecRequestPref' element item.

Parameters:
item -

getSpecRequestPref

public SpecRequestPref getSpecRequestPref(int index)
Get 'SpecRequestPref' element item by position.

Parameters:
index -
Returns:
item

clearSpecRequestPrefs

public void clearSpecRequestPrefs()
Remove all 'SpecRequestPref' 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 -

getPreferLevel

public PreferLevel getPreferLevel()
Get the 'PreferLevel' attribute value. Used to indicate a level of preference for an associated item. Preferred

Returns:
value

setPreferLevel

public void setPreferLevel(PreferLevel preferLevel)
Set the 'PreferLevel' attribute value. Used to indicate a level of preference for an associated item. Preferred

Parameters:
preferLevel -

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 -