org.ota.profile
Class Affiliations

java.lang.Object
  extended by org.ota.profile.Affiliations

public class Affiliations
extends java.lang.Object

Defines an entity that provides travel services or benefits to a customer or company. 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="AffiliationsType">
   <xs:sequence>
     <xs:element type="ns:OrganizationType" name="Organization" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Organization -->
     </xs:element>
     <xs:element type="ns:EmployerType" name="Employer" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Employer -->
     </xs:element>
     <xs:element type="ns:TravelArrangerType" name="TravelArranger" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element type="ns:TravelClubType" name="TravelClub" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class TravelClub -->
     </xs:element>
     <xs:element type="ns:InsuranceType" name="Insurance" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Insurance -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:PrivacyGroup"/>
 </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"/>
 


Nested Class Summary
static class Affiliations.Employer
          Employer information associated to this affiliation.
static class Affiliations.Insurance
          Travel insurance associated to this affiliation.
static class Affiliations.Organization
          Detailed information for a membership organization that has travel benefits, programs or discounts.
static class Affiliations.TravelClub
          A club that offers special privileges and related services for this affiliation.
 
Constructor Summary
Affiliations()
           
 
Method Summary
 void addEmployer(Affiliations.Employer item)
          Add a 'Employer' element item.
 void addInsurance(Affiliations.Insurance item)
          Add a 'Insurance' element item.
 void addOrganization(Affiliations.Organization item)
          Add a 'Organization' element item.
 void addTravelArranger(TravelArranger item)
          Add a 'TravelArranger' element item.
 void addTravelClub(Affiliations.TravelClub item)
          Add a 'TravelClub' element item.
 void clearEmployers()
          Remove all 'Employer' element items.
 void clearInsurances()
          Remove all 'Insurance' element items.
 void clearOrganizations()
          Remove all 'Organization' element items.
 void clearTravelArrangers()
          Remove all 'TravelArranger' element items.
 void clearTravelClubs()
          Remove all 'TravelClub' element items.
 Affiliations.Employer getEmployer(int index)
          Get 'Employer' element item by position.
 java.util.List<Affiliations.Employer> getEmployers()
          Get the list of 'Employer' element items.
 Affiliations.Insurance getInsurance(int index)
          Get 'Insurance' element item by position.
 java.util.List<Affiliations.Insurance> getInsurances()
          Get the list of 'Insurance' element items.
 Affiliations.Organization getOrganization(int index)
          Get 'Organization' element item by position.
 java.util.List<Affiliations.Organization> getOrganizations()
          Get the list of 'Organization' element items.
 PrivacyGroup getPrivacyGroup()
          Get the 'PrivacyGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TravelArranger getTravelArranger(int index)
          Get 'TravelArranger' element item by position.
 java.util.List<TravelArranger> getTravelArrangers()
          Get the list of 'TravelArranger' element items.
 Affiliations.TravelClub getTravelClub(int index)
          Get 'TravelClub' element item by position.
 java.util.List<Affiliations.TravelClub> getTravelClubs()
          Get the list of 'TravelClub' element items.
 void setEmployers(java.util.List<Affiliations.Employer> list)
          Set the list of 'Employer' element items.
 void setInsurances(java.util.List<Affiliations.Insurance> list)
          Set the list of 'Insurance' element items.
 void setOrganizations(java.util.List<Affiliations.Organization> list)
          Set the list of 'Organization' element items.
 void setPrivacyGroup(PrivacyGroup privacyGroup)
          Set the 'PrivacyGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelArrangers(java.util.List<TravelArranger> list)
          Set the list of 'TravelArranger' element items.
 void setTravelClubs(java.util.List<Affiliations.TravelClub> list)
          Set the list of 'TravelClub' element items.
 int sizeEmployers()
          Get the number of 'Employer' element items.
 int sizeInsurances()
          Get the number of 'Insurance' element items.
 int sizeOrganizations()
          Get the number of 'Organization' element items.
 int sizeTravelArrangers()
          Get the number of 'TravelArranger' element items.
 int sizeTravelClubs()
          Get the number of 'TravelClub' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Affiliations

public Affiliations()
Method Detail

getOrganizations

public java.util.List<Affiliations.Organization> getOrganizations()
Get the list of 'Organization' element items.

Returns:
list

setOrganizations

public void setOrganizations(java.util.List<Affiliations.Organization> list)
Set the list of 'Organization' element items.

Parameters:
list -

sizeOrganizations

public int sizeOrganizations()
Get the number of 'Organization' element items.

Returns:
count

addOrganization

public void addOrganization(Affiliations.Organization item)
Add a 'Organization' element item.

Parameters:
item -

getOrganization

public Affiliations.Organization getOrganization(int index)
Get 'Organization' element item by position.

Parameters:
index -
Returns:
item

clearOrganizations

public void clearOrganizations()
Remove all 'Organization' element items.


getEmployers

public java.util.List<Affiliations.Employer> getEmployers()
Get the list of 'Employer' element items.

Returns:
list

setEmployers

public void setEmployers(java.util.List<Affiliations.Employer> list)
Set the list of 'Employer' element items.

Parameters:
list -

sizeEmployers

public int sizeEmployers()
Get the number of 'Employer' element items.

Returns:
count

addEmployer

public void addEmployer(Affiliations.Employer item)
Add a 'Employer' element item.

Parameters:
item -

getEmployer

public Affiliations.Employer getEmployer(int index)
Get 'Employer' element item by position.

Parameters:
index -
Returns:
item

clearEmployers

public void clearEmployers()
Remove all 'Employer' element items.


getTravelArrangers

public java.util.List<TravelArranger> getTravelArrangers()
Get the list of 'TravelArranger' element items. Information on the organization responsible for arranging travel.

Returns:
list

setTravelArrangers

public void setTravelArrangers(java.util.List<TravelArranger> list)
Set the list of 'TravelArranger' element items. Information on the organization responsible for arranging travel.

Parameters:
list -

sizeTravelArrangers

public int sizeTravelArrangers()
Get the number of 'TravelArranger' element items.

Returns:
count

addTravelArranger

public void addTravelArranger(TravelArranger item)
Add a 'TravelArranger' element item.

Parameters:
item -

getTravelArranger

public TravelArranger getTravelArranger(int index)
Get 'TravelArranger' element item by position.

Parameters:
index -
Returns:
item

clearTravelArrangers

public void clearTravelArrangers()
Remove all 'TravelArranger' element items.


getTravelClubs

public java.util.List<Affiliations.TravelClub> getTravelClubs()
Get the list of 'TravelClub' element items.

Returns:
list

setTravelClubs

public void setTravelClubs(java.util.List<Affiliations.TravelClub> list)
Set the list of 'TravelClub' element items.

Parameters:
list -

sizeTravelClubs

public int sizeTravelClubs()
Get the number of 'TravelClub' element items.

Returns:
count

addTravelClub

public void addTravelClub(Affiliations.TravelClub item)
Add a 'TravelClub' element item.

Parameters:
item -

getTravelClub

public Affiliations.TravelClub getTravelClub(int index)
Get 'TravelClub' element item by position.

Parameters:
index -
Returns:
item

clearTravelClubs

public void clearTravelClubs()
Remove all 'TravelClub' element items.


getInsurances

public java.util.List<Affiliations.Insurance> getInsurances()
Get the list of 'Insurance' element items.

Returns:
list

setInsurances

public void setInsurances(java.util.List<Affiliations.Insurance> list)
Set the list of 'Insurance' element items.

Parameters:
list -

sizeInsurances

public int sizeInsurances()
Get the number of 'Insurance' element items.

Returns:
count

addInsurance

public void addInsurance(Affiliations.Insurance item)
Add a 'Insurance' element item.

Parameters:
item -

getInsurance

public Affiliations.Insurance getInsurance(int index)
Get 'Insurance' element item by position.

Parameters:
index -
Returns:
item

clearInsurances

public void clearInsurances()
Remove all 'Insurance' 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 affiliation data between parties.

Returns:
value

setPrivacyGroup

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

Parameters:
privacyGroup -