org.ota.shared
Class ContactPerson

java.lang.Object
  extended by org.ota.shared.ContactPerson
Direct Known Subclasses:
AirCheckIn.PassengerInfo.ContactInfo, CruiseGuestInfo.GuestDetail.ContactInfo, Event.EventInner.Contacts.Contact, Event.EventInner.EventInfos.EventInfo.Contacts.Contact, Event.EventInner.Sites.Site.EventDays.EventDay.EventDayFunctions.EventDayFunction.Sequence.Contacts.Contact, EventReport.EventSites.EventSite.Contacts.Contact, EventReport.EventSites.EventSite.EventDays.EventDay.EventDayFunctions.EventDayFunction.Sequence.Contacts.Contact, EventReport.GeneralEventInfo.EventContacts.EventContact, HotelRoomList.Guests.Guest, HotelRoomList.MasterContact, PurchaseItemRQ.PurchaserInfo, RecipientInfos.RecipientInfo, RFPResponse.RFPResponseSegment.Sites.Site.References.Reference

public class ContactPerson
extends java.lang.Object

Name of an individual and appropriate contact information. May be contact information for the customer or someone affiliated with the customer. 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="ContactPersonType">
   <xs:sequence>
     <xs:element type="ns:PersonNameType" name="PersonName" minOccurs="0"/>
     <xs:element name="Telephone" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TelephoneInfoGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:AddressInfoType" name="Address" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:EmailType" name="Email" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:URL_Type" name="URL" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:CompanyNameType" name="CompanyName" minOccurs="0" maxOccurs="3"/>
     <xs:element type="ns:EmployeeInfoType" name="EmployeeInfo" minOccurs="0" maxOccurs="3"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:PrivacyGroup"/>
   <xs:attributeGroup ref="ns:DefaultIndGroup"/>
   <xs:attribute type="xs:string" name="ContactType"/>
   <xs:attribute type="xs:string" name="Relation"/>
   <xs:attribute type="xs:boolean" use="optional" name="EmergencyFlag"/>
   <xs:attribute type="xs:string" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="CommunicationMethodCode"/>
   <xs:attribute type="xs:string" use="optional" name="DocumentDistribMethodCode"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DefaultIndGroup">
   <xs:attribute type="xs:boolean" use="optional" name="DefaultInd"/>
 </xs:attributeGroup>
 


Constructor Summary
ContactPerson()
           
 
Method Summary
 void addAddress(AddressInfo item)
          Add a 'Address' element item.
 void addCompanyName(CompanyName item)
          Add a 'CompanyName' element item.
 void addEmail(Email item)
          Add a 'Email' element item.
 void addEmployeeInfo(EmployeeInfo item)
          Add a 'EmployeeInfo' element item.
 void addTelephone(TelephoneInfoGroup item)
          Add a 'Telephone' element item.
 void addURL(URL item)
          Add a 'URL' element item.
 void clearAddresses()
          Remove all 'Address' element items.
 void clearCompanyNames()
          Remove all 'CompanyName' element items.
 void clearEmails()
          Remove all 'Email' element items.
 void clearEmployeeInfos()
          Remove all 'EmployeeInfo' element items.
 void clearTelephones()
          Remove all 'Telephone' element items.
 void clearURLs()
          Remove all 'URL' element items.
 AddressInfo getAddress(int index)
          Get 'Address' element item by position.
 java.util.List<AddressInfo> getAddresses()
          Get the list of 'Address' element items.
 java.lang.String getCommunicationMethodCode()
          Get the 'CommunicationMethodCode' attribute value.
 CompanyName getCompanyName(int index)
          Get 'CompanyName' element item by position.
 java.util.List<CompanyName> getCompanyNames()
          Get the list of 'CompanyName' element items.
 java.lang.String getContact()
          Get the 'ContactType' attribute value.
 java.lang.Boolean getDefaultInd()
          Get the 'DefaultInd' attribute value.
 java.lang.String getDocumentDistribMethodCode()
          Get the 'DocumentDistribMethodCode' attribute value.
 Email getEmail(int index)
          Get 'Email' element item by position.
 java.util.List<Email> getEmails()
          Get the list of 'Email' element items.
 java.lang.Boolean getEmergencyFlag()
          Get the 'EmergencyFlag' attribute value.
 EmployeeInfo getEmployeeInfo(int index)
          Get 'EmployeeInfo' element item by position.
 java.util.List<EmployeeInfo> getEmployeeInfos()
          Get the list of 'EmployeeInfo' element items.
 PersonName getPersonName()
          Get the 'PersonName' element value.
 PrivacyGroup getPrivacyGroup()
          Get the 'PrivacyGroup' attributeGroup value.
 java.lang.String getRelation()
          Get the 'Relation' attribute value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 TelephoneInfoGroup getTelephone(int index)
          Get 'Telephone' element item by position.
 java.util.List<TelephoneInfoGroup> getTelephones()
          Get the list of 'Telephone' element items.
 URL getURL(int index)
          Get 'URL' element item by position.
 java.util.List<URL> getURLs()
          Get the list of 'URL' element items.
 void setAddresses(java.util.List<AddressInfo> list)
          Set the list of 'Address' element items.
 void setCommunicationMethodCode(java.lang.String communicationMethodCode)
          Set the 'CommunicationMethodCode' attribute value.
 void setCompanyNames(java.util.List<CompanyName> list)
          Set the list of 'CompanyName' element items.
 void setContact(java.lang.String contact)
          Set the 'ContactType' attribute value.
 void setDefaultInd(java.lang.Boolean defaultInd)
          Set the 'DefaultInd' attribute value.
 void setDocumentDistribMethodCode(java.lang.String documentDistribMethodCode)
          Set the 'DocumentDistribMethodCode' attribute value.
 void setEmails(java.util.List<Email> list)
          Set the list of 'Email' element items.
 void setEmergencyFlag(java.lang.Boolean emergencyFlag)
          Set the 'EmergencyFlag' attribute value.
 void setEmployeeInfos(java.util.List<EmployeeInfo> list)
          Set the list of 'EmployeeInfo' element items.
 void setPersonName(PersonName personName)
          Set the 'PersonName' element value.
 void setPrivacyGroup(PrivacyGroup privacyGroup)
          Set the 'PrivacyGroup' attributeGroup value.
 void setRelation(java.lang.String relation)
          Set the 'Relation' attribute value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setTelephones(java.util.List<TelephoneInfoGroup> list)
          Set the list of 'Telephone' element items.
 void setURLs(java.util.List<URL> list)
          Set the list of 'URL' element items.
 int sizeAddresses()
          Get the number of 'Address' element items.
 int sizeCompanyNames()
          Get the number of 'CompanyName' element items.
 int sizeEmails()
          Get the number of 'Email' element items.
 int sizeEmployeeInfos()
          Get the number of 'EmployeeInfo' element items.
 int sizeTelephones()
          Get the number of 'Telephone' element items.
 int sizeURLs()
          Get the number of 'URL' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactPerson

public ContactPerson()
Method Detail

getPersonName

public PersonName getPersonName()
Get the 'PersonName' element value. This provides name information for a person.

Returns:
value

setPersonName

public void setPersonName(PersonName personName)
Set the 'PersonName' element value. This provides name information for a person.

Parameters:
personName -

getTelephones

public java.util.List<TelephoneInfoGroup> getTelephones()
Get the list of 'Telephone' element items. Information about a telephone number, including the actual number and its usage

Returns:
list

setTelephones

public void setTelephones(java.util.List<TelephoneInfoGroup> list)
Set the list of 'Telephone' element items. Information about a telephone number, including the actual number and its usage

Parameters:
list -

sizeTelephones

public int sizeTelephones()
Get the number of 'Telephone' element items.

Returns:
count

addTelephone

public void addTelephone(TelephoneInfoGroup item)
Add a 'Telephone' element item.

Parameters:
item -

getTelephone

public TelephoneInfoGroup getTelephone(int index)
Get 'Telephone' element item by position.

Parameters:
index -
Returns:
item

clearTelephones

public void clearTelephones()
Remove all 'Telephone' element items.


getAddresses

public java.util.List<AddressInfo> getAddresses()
Get the list of 'Address' element items. Information about an address that identifies a location for a specific purposes.

Returns:
list

setAddresses

public void setAddresses(java.util.List<AddressInfo> list)
Set the list of 'Address' element items. Information about an address that identifies a location for a specific purposes.

Parameters:
list -

sizeAddresses

public int sizeAddresses()
Get the number of 'Address' element items.

Returns:
count

addAddress

public void addAddress(AddressInfo item)
Add a 'Address' element item.

Parameters:
item -

getAddress

public AddressInfo getAddress(int index)
Get 'Address' element item by position.

Parameters:
index -
Returns:
item

clearAddresses

public void clearAddresses()
Remove all 'Address' element items.


getEmails

public java.util.List<Email> getEmails()
Get the list of 'Email' element items. Electronic email addresses, in IETF specified format.

Returns:
list

setEmails

public void setEmails(java.util.List<Email> list)
Set the list of 'Email' element items. Electronic email addresses, in IETF specified format.

Parameters:
list -

sizeEmails

public int sizeEmails()
Get the number of 'Email' element items.

Returns:
count

addEmail

public void addEmail(Email item)
Add a 'Email' element item.

Parameters:
item -

getEmail

public Email getEmail(int index)
Get 'Email' element item by position.

Parameters:
index -
Returns:
item

clearEmails

public void clearEmails()
Remove all 'Email' element items.


getURLs

public java.util.List<URL> getURLs()
Get the list of 'URL' element items. Web site address, in IETF specified format.

Returns:
list

setURLs

public void setURLs(java.util.List<URL> list)
Set the list of 'URL' element items. Web site address, in IETF specified format.

Parameters:
list -

sizeURLs

public int sizeURLs()
Get the number of 'URL' element items.

Returns:
count

addURL

public void addURL(URL item)
Add a 'URL' element item.

Parameters:
item -

getURL

public URL getURL(int index)
Get 'URL' element item by position.

Parameters:
index -
Returns:
item

clearURLs

public void clearURLs()
Remove all 'URL' element items.


getCompanyNames

public java.util.List<CompanyName> getCompanyNames()
Get the list of 'CompanyName' element items. Identifies a company by name.

Returns:
list

setCompanyNames

public void setCompanyNames(java.util.List<CompanyName> list)
Set the list of 'CompanyName' element items. Identifies a company by name.

Parameters:
list -

sizeCompanyNames

public int sizeCompanyNames()
Get the number of 'CompanyName' element items.

Returns:
count

addCompanyName

public void addCompanyName(CompanyName item)
Add a 'CompanyName' element item.

Parameters:
item -

getCompanyName

public CompanyName getCompanyName(int index)
Get 'CompanyName' element item by position.

Parameters:
index -
Returns:
item

clearCompanyNames

public void clearCompanyNames()
Remove all 'CompanyName' element items.


getEmployeeInfos

public java.util.List<EmployeeInfo> getEmployeeInfos()
Get the list of 'EmployeeInfo' element items. Employment identification; using an employee ID number, title, level within the company, and an indication of their status, i.e.: active, retired, on leave, or terminated from employment. Additional information about an employee can be entered into the element, including the name of the employee, if it differs from the person name identified as a customer or contact.

Returns:
list

setEmployeeInfos

public void setEmployeeInfos(java.util.List<EmployeeInfo> list)
Set the list of 'EmployeeInfo' element items. Employment identification; using an employee ID number, title, level within the company, and an indication of their status, i.e.: active, retired, on leave, or terminated from employment. Additional information about an employee can be entered into the element, including the name of the employee, if it differs from the person name identified as a customer or contact.

Parameters:
list -

sizeEmployeeInfos

public int sizeEmployeeInfos()
Get the number of 'EmployeeInfo' element items.

Returns:
count

addEmployeeInfo

public void addEmployeeInfo(EmployeeInfo item)
Add a 'EmployeeInfo' element item.

Parameters:
item -

getEmployeeInfo

public EmployeeInfo getEmployeeInfo(int index)
Get 'EmployeeInfo' element item by position.

Parameters:
index -
Returns:
item

clearEmployeeInfos

public void clearEmployeeInfos()
Remove all 'EmployeeInfo' element items.


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 -

getDefaultInd

public java.lang.Boolean getDefaultInd()
Get the 'DefaultInd' attribute value. When true, indicates a default value should be used. false

Returns:
value

setDefaultInd

public void setDefaultInd(java.lang.Boolean defaultInd)
Set the 'DefaultInd' attribute value. When true, indicates a default value should be used. false

Parameters:
defaultInd -

getContact

public java.lang.String getContact()
Get the 'ContactType' attribute value. Type of contact in the context of use for the travel experience; such as permanent, temporary, affiliation, travel arranger, etc.

Returns:
value

setContact

public void setContact(java.lang.String contact)
Set the 'ContactType' attribute value. Type of contact in the context of use for the travel experience; such as permanent, temporary, affiliation, travel arranger, etc.

Parameters:
contact -

getRelation

public java.lang.String getRelation()
Get the 'Relation' attribute value. Indicates the type of relationship with the person or company in the profile, such as Spouse, Child, Family, Business Associate, Interest Group, Medical, Security,Other, etc.

Returns:
value

setRelation

public void setRelation(java.lang.String relation)
Set the 'Relation' attribute value. Indicates the type of relationship with the person or company in the profile, such as Spouse, Child, Family, Business Associate, Interest Group, Medical, Security,Other, etc.

Parameters:
relation -

getEmergencyFlag

public java.lang.Boolean getEmergencyFlag()
Get the 'EmergencyFlag' attribute value. Indicates if this contact should be used in the case of an emergency. false

Returns:
value

setEmergencyFlag

public void setEmergencyFlag(java.lang.Boolean emergencyFlag)
Set the 'EmergencyFlag' attribute value. Indicates if this contact should be used in the case of an emergency. false

Parameters:
emergencyFlag -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. Provides a unique reference to this contact person.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. Provides a unique reference to this contact person.

Parameters:
RPH -

getCommunicationMethodCode

public java.lang.String getCommunicationMethodCode()
Get the 'CommunicationMethodCode' attribute value. Provides the preferred method of communication. Refer to OpenTravel Code list Distribution Type (DTB).

Returns:
value

setCommunicationMethodCode

public void setCommunicationMethodCode(java.lang.String communicationMethodCode)
Set the 'CommunicationMethodCode' attribute value. Provides the preferred method of communication. Refer to OpenTravel Code list Distribution Type (DTB).

Parameters:
communicationMethodCode -

getDocumentDistribMethodCode

public java.lang.String getDocumentDistribMethodCode()
Get the 'DocumentDistribMethodCode' attribute value. Indicates the method of distribution for the booking documentation. Refer to OpenTravel Code list Distribution Type (DTB).

Returns:
value

setDocumentDistribMethodCode

public void setDocumentDistribMethodCode(java.lang.String documentDistribMethodCode)
Set the 'DocumentDistribMethodCode' attribute value. Indicates the method of distribution for the booking documentation. Refer to OpenTravel Code list Distribution Type (DTB).

Parameters:
documentDistribMethodCode -