org.ota.profile
Class Profile

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

public class Profile
extends java.lang.Object

Root element for profile content. 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="ProfileType">
   <xs:sequence>
     <xs:element type="ns:AccessesType" name="Accesses" minOccurs="0"/>
     <xs:element type="ns:CustomerType" name="Customer" minOccurs="0"/>
     <xs:element name="UserID" minOccurs="0" maxOccurs="10">
       <!-- Reference to inner class UserID -->
     </xs:element>
     <xs:element type="ns:PreferencesType" name="PrefCollections" minOccurs="0">
       <!-- Reference to inner class PrefCollections -->
     </xs:element>
     <xs:element type="ns:CompanyInfoType" name="CompanyInfo" minOccurs="0">
       <!-- Reference to inner class CompanyInfo -->
     </xs:element>
     <xs:element type="ns:AffiliationsType" name="Affiliations" minOccurs="0"/>
     <xs:element type="ns:AgreementsType" name="Agreements" minOccurs="0">
       <!-- Reference to inner class Agreements -->
     </xs:element>
     <xs:element name="Comments" minOccurs="0">
       <!-- Reference to inner class Comments -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:ShareAllGroup"/>
   <xs:attributeGroup ref="ns:ProfileTypeGroup"/>
   <xs:attributeGroup ref="ns:DateTimeStampGroup"/>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="StatusCode"/>
 </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="ShareAllGroup">
   <xs:attribute type="ns:YesNoType" use="optional" name="ShareAllSynchInd"/>
   <xs:attribute type="ns:YesNoType" use="optional" name="ShareAllMarketInd"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ProfileTypeGroup">
   <xs:attribute type="xs:string" use="optional" name="ProfileType"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class Profile.Agreements
          Agreement information related to the profile.
static class Profile.Comments
          Comments related to the profile.
static class Profile.CompanyInfo
          Company information related to the profile.
static class Profile.PrefCollections
          A collection of preference collections.
static class Profile.UserID
          The user ids and pin numbers of the profile.
 
Constructor Summary
Profile()
           
 
Method Summary
 void addUserID(Profile.UserID item)
          Add a 'UserID' element item.
 void clearUserIDs()
          Remove all 'UserID' element items.
 Accesses getAccesses()
          Get the 'Accesses' element value.
 Affiliations getAffiliations()
          Get the 'Affiliations' element value.
 Profile.Agreements getAgreements()
          Get the 'Agreements' element value.
 Profile.Comments getComments()
          Get the 'Comments' element value.
 Profile.CompanyInfo getCompanyInfo()
          Get the 'CompanyInfo' element value.
 Customer getCustomer()
          Get the 'Customer' element value.
 DateTimeStampGroup getDateTimeStampGroup()
          Get the 'DateTimeStampGroup' attributeGroup value.
 Profile.PrefCollections getPrefCollections()
          Get the 'PrefCollections' element value.
 java.lang.String getProfile()
          Get the 'ProfileType' attribute value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 YesNo getShareAllMarketInd()
          Get the 'ShareAllMarketInd' attribute value.
 YesNo getShareAllSynchInd()
          Get the 'ShareAllSynchInd' attribute value.
 java.lang.String getStatusCode()
          Get the 'StatusCode' attribute value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 Profile.UserID getUserID(int index)
          Get 'UserID' element item by position.
 java.util.List<Profile.UserID> getUserIDs()
          Get the list of 'UserID' element items.
 void setAccesses(Accesses accesses)
          Set the 'Accesses' element value.
 void setAffiliations(Affiliations affiliations)
          Set the 'Affiliations' element value.
 void setAgreements(Profile.Agreements agreements)
          Set the 'Agreements' element value.
 void setComments(Profile.Comments comments)
          Set the 'Comments' element value.
 void setCompanyInfo(Profile.CompanyInfo companyInfo)
          Set the 'CompanyInfo' element value.
 void setCustomer(Customer customer)
          Set the 'Customer' element value.
 void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
          Set the 'DateTimeStampGroup' attributeGroup value.
 void setPrefCollections(Profile.PrefCollections prefCollections)
          Set the 'PrefCollections' element value.
 void setProfile(java.lang.String profile)
          Set the 'ProfileType' attribute value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setShareAllMarketInd(YesNo shareAllMarketInd)
          Set the 'ShareAllMarketInd' attribute value.
 void setShareAllSynchInd(YesNo shareAllSynchInd)
          Set the 'ShareAllSynchInd' attribute value.
 void setStatusCode(java.lang.String statusCode)
          Set the 'StatusCode' attribute value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setUserIDs(java.util.List<Profile.UserID> list)
          Set the list of 'UserID' element items.
 int sizeUserIDs()
          Get the number of 'UserID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

getAccesses

public Accesses getAccesses()
Get the 'Accesses' element value. A collection of actions taken on a record.

Returns:
value

setAccesses

public void setAccesses(Accesses accesses)
Set the 'Accesses' element value. A collection of actions taken on a record.

Parameters:
accesses -

getCustomer

public Customer getCustomer()
Get the 'Customer' element value. Detailed customer information for this profile.

Returns:
value

setCustomer

public void setCustomer(Customer customer)
Set the 'Customer' element value. Detailed customer information for this profile.

Parameters:
customer -

getUserIDs

public java.util.List<Profile.UserID> getUserIDs()
Get the list of 'UserID' element items.

Returns:
list

setUserIDs

public void setUserIDs(java.util.List<Profile.UserID> list)
Set the list of 'UserID' element items.

Parameters:
list -

sizeUserIDs

public int sizeUserIDs()
Get the number of 'UserID' element items.

Returns:
count

addUserID

public void addUserID(Profile.UserID item)
Add a 'UserID' element item.

Parameters:
item -

getUserID

public Profile.UserID getUserID(int index)
Get 'UserID' element item by position.

Parameters:
index -
Returns:
item

clearUserIDs

public void clearUserIDs()
Remove all 'UserID' element items.


getPrefCollections

public Profile.PrefCollections getPrefCollections()
Get the 'PrefCollections' element value.

Returns:
value

setPrefCollections

public void setPrefCollections(Profile.PrefCollections prefCollections)
Set the 'PrefCollections' element value.

Parameters:
prefCollections -

getCompanyInfo

public Profile.CompanyInfo getCompanyInfo()
Get the 'CompanyInfo' element value.

Returns:
value

setCompanyInfo

public void setCompanyInfo(Profile.CompanyInfo companyInfo)
Set the 'CompanyInfo' element value.

Parameters:
companyInfo -

getAffiliations

public Affiliations getAffiliations()
Get the 'Affiliations' element value. Affiliation information related to the profile.

Returns:
value

setAffiliations

public void setAffiliations(Affiliations affiliations)
Set the 'Affiliations' element value. Affiliation information related to the profile.

Parameters:
affiliations -

getAgreements

public Profile.Agreements getAgreements()
Get the 'Agreements' element value.

Returns:
value

setAgreements

public void setAgreements(Profile.Agreements agreements)
Set the 'Agreements' element value.

Parameters:
agreements -

getComments

public Profile.Comments getComments()
Get the 'Comments' element value.

Returns:
value

setComments

public void setComments(Profile.Comments comments)
Set the 'Comments' element value.

Parameters:
comments -

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 -

getShareAllSynchInd

public YesNo getShareAllSynchInd()
Get the 'ShareAllSynchInd' attribute value. Permission for sharing all data in profile for synchronization of profiles held by other travel service providers. No

Returns:
value

setShareAllSynchInd

public void setShareAllSynchInd(YesNo shareAllSynchInd)
Set the 'ShareAllSynchInd' attribute value. Permission for sharing all data in profile for synchronization of profiles held by other travel service providers. No

Parameters:
shareAllSynchInd -

getShareAllMarketInd

public YesNo getShareAllMarketInd()
Get the 'ShareAllMarketInd' attribute value. Permission for sharing all data in profile for marketing purposes. No

Returns:
value

setShareAllMarketInd

public void setShareAllMarketInd(YesNo shareAllMarketInd)
Set the 'ShareAllMarketInd' attribute value. Permission for sharing all data in profile for marketing purposes. No

Parameters:
shareAllMarketInd -

getProfile

public java.lang.String getProfile()
Get the 'ProfileType' attribute value. Code to specify a profile such as Customer, Tour Operator, Corporation, etc. Refer to OpenTravel Code List Profile Type (PRT).

Returns:
value

setProfile

public void setProfile(java.lang.String profile)
Set the 'ProfileType' attribute value. Code to specify a profile such as Customer, Tour Operator, Corporation, etc. Refer to OpenTravel Code List Profile Type (PRT).

Parameters:
profile -

getDateTimeStampGroup

public DateTimeStampGroup getDateTimeStampGroup()
Get the 'DateTimeStampGroup' attributeGroup value. Creation date time, creator ID, last modification date time and last modifier ID.

Returns:
value

setDateTimeStampGroup

public void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
Set the 'DateTimeStampGroup' attributeGroup value. Creation date time, creator ID, last modification date time and last modifier ID.

Parameters:
dateTimeStampGroup -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. This is a reference placeholder, used as an index for this guest in this reservation.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. This is a reference placeholder, used as an index for this guest in this reservation.

Parameters:
RPH -

getStatusCode

public java.lang.String getStatusCode()
Get the 'StatusCode' attribute value. Status of the profile. Refer to OpenTravel Code List Profile Status Code (PST).

Returns:
value

setStatusCode

public void setStatusCode(java.lang.String statusCode)
Set the 'StatusCode' attribute value. Status of the profile. Refer to OpenTravel Code List Profile Status Code (PST).

Parameters:
statusCode -