org.ota.hotel
Class ContactInfo.Names.Name

java.lang.Object
  extended by org.ota.shared.PersonName
      extended by org.ota.hotel.ContactInfo.Names.Name
Enclosing class:
ContactInfo.Names

public static class ContactInfo.Names.Name
extends PersonName

Used to pass detailed name information regarding a contact. 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="Name" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PersonNameType">
         <xs:sequence>
           <xs:element name="JobTitle" minOccurs="0" maxOccurs="5">
             <!-- Reference to inner class JobTitle -->
           </xs:element>
         </xs:sequence>
         <xs:attributeGroup ref="ns:CodeInfoGroup"/>
         <xs:attributeGroup ref="ns:GenderGroup"/>
         <xs:attribute type="xs:string" use="optional" name="SrvcCode"/>
         <xs:attribute type="xs:string" use="optional" name="Location"/>
         <xs:attribute type="xs:string" use="optional" name="CorporatePosition"/>
         <xs:attribute type="xs:boolean" use="optional" name="OKToPublish"/>
         <xs:attribute type="xs:string" use="optional" name="NameOrdered"/>
         <xs:attributeGroup ref="ns:ID_OptionalGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ID_OptionalGroup">
   <xs:attribute type="xs:string" use="optional" name="ID"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class ContactInfo.Names.Name.JobTitle
          Schema fragment(s) for this class:
 
Constructor Summary
ContactInfo.Names.Name()
           
 
Method Summary
 void addJobTitle(ContactInfo.Names.Name.JobTitle item)
          Add a 'JobTitle' element item.
 void clearJobTitles()
          Remove all 'JobTitle' element items.
 CodeInfoGroup getCodeInfoGroup()
          Get the 'CodeInfoGroup' attributeGroup value.
 java.lang.String getCorporatePosition()
          Get the 'CorporatePosition' attribute value.
 GenderGroup getGenderGroup()
          Get the 'GenderGroup' attributeGroup value.
 java.lang.String getID()
          Get the 'ID' attribute value.
 ContactInfo.Names.Name.JobTitle getJobTitle(int index)
          Get 'JobTitle' element item by position.
 java.util.List<ContactInfo.Names.Name.JobTitle> getJobTitles()
          Get the list of 'JobTitle' element items.
 java.lang.String getLocation()
          Get the 'Location' attribute value.
 java.lang.String getNameOrdered()
          Get the 'NameOrdered' attribute value.
 java.lang.Boolean getOKToPublish()
          Get the 'OKToPublish' attribute value.
 java.lang.String getSrvcCode()
          Get the 'SrvcCode' attribute value.
 void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
          Set the 'CodeInfoGroup' attributeGroup value.
 void setCorporatePosition(java.lang.String corporatePosition)
          Set the 'CorporatePosition' attribute value.
 void setGenderGroup(GenderGroup genderGroup)
          Set the 'GenderGroup' attributeGroup value.
 void setID(java.lang.String ID)
          Set the 'ID' attribute value.
 void setJobTitles(java.util.List<ContactInfo.Names.Name.JobTitle> list)
          Set the list of 'JobTitle' element items.
 void setLocation(java.lang.String location)
          Set the 'Location' attribute value.
 void setNameOrdered(java.lang.String nameOrdered)
          Set the 'NameOrdered' attribute value.
 void setOKToPublish(java.lang.Boolean OKToPublish)
          Set the 'OKToPublish' attribute value.
 void setSrvcCode(java.lang.String srvcCode)
          Set the 'SrvcCode' attribute value.
 int sizeJobTitles()
          Get the number of 'JobTitle' element items.
 
Methods inherited from class org.ota.shared.PersonName
addGivenName, addMiddleName, addNamePrefix, addNameSuffix, addNameTitle, clearGivenNames, clearMiddleNames, clearNamePrefixs, clearNameSuffixs, clearNameTitles, getGivenName, getGivenNames, getMiddleName, getMiddleNames, getName, getNamePrefix, getNamePrefixs, getNameSuffix, getNameSuffixs, getNameTitle, getNameTitles, getPrivacyGroup, getSurname, getSurnamePrefix, setGivenNames, setMiddleNames, setName, setNamePrefixs, setNameSuffixs, setNameTitles, setPrivacyGroup, setSurname, setSurnamePrefix, sizeGivenNames, sizeMiddleNames, sizeNamePrefixs, sizeNameSuffixs, sizeNameTitles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactInfo.Names.Name

public ContactInfo.Names.Name()
Method Detail

getJobTitles

public java.util.List<ContactInfo.Names.Name.JobTitle> getJobTitles()
Get the list of 'JobTitle' element items.

Returns:
list

setJobTitles

public void setJobTitles(java.util.List<ContactInfo.Names.Name.JobTitle> list)
Set the list of 'JobTitle' element items.

Parameters:
list -

sizeJobTitles

public int sizeJobTitles()
Get the number of 'JobTitle' element items.

Returns:
count

addJobTitle

public void addJobTitle(ContactInfo.Names.Name.JobTitle item)
Add a 'JobTitle' element item.

Parameters:
item -

getJobTitle

public ContactInfo.Names.Name.JobTitle getJobTitle(int index)
Get 'JobTitle' element item by position.

Parameters:
index -
Returns:
item

clearJobTitles

public void clearJobTitles()
Remove all 'JobTitle' element items.


getCodeInfoGroup

public CodeInfoGroup getCodeInfoGroup()
Get the 'CodeInfoGroup' attributeGroup value.

Returns:
value

setCodeInfoGroup

public void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
Set the 'CodeInfoGroup' attributeGroup value.

Parameters:
codeInfoGroup -

getGenderGroup

public GenderGroup getGenderGroup()
Get the 'GenderGroup' attributeGroup value. The gender of the contact person in the ContactName attribute. This may be useful for purposes of correspondence to the hotel.

Returns:
value

setGenderGroup

public void setGenderGroup(GenderGroup genderGroup)
Set the 'GenderGroup' attributeGroup value. The gender of the contact person in the ContactName attribute. This may be useful for purposes of correspondence to the hotel.

Parameters:
genderGroup -

getSrvcCode

public java.lang.String getSrvcCode()
Get the 'SrvcCode' attribute value. The information describing the contact service code for a hotel facility. (e.g., who to contact about golf tours). Refer to OpenTravel Code List Contact Srvc Code (CSC).

Returns:
value

setSrvcCode

public void setSrvcCode(java.lang.String srvcCode)
Set the 'SrvcCode' attribute value. The information describing the contact service code for a hotel facility. (e.g., who to contact about golf tours). Refer to OpenTravel Code List Contact Srvc Code (CSC).

Parameters:
srvcCode -

getLocation

public java.lang.String getLocation()
Get the 'Location' attribute value. The location of the hotel contact. e.g.: at the hotel property, at a central office, etc. Refer to OpenTravel Code List Contact Location (CON).

Returns:
value

setLocation

public void setLocation(java.lang.String location)
Set the 'Location' attribute value. The location of the hotel contact. e.g.: at the hotel property, at a central office, etc. Refer to OpenTravel Code List Contact Location (CON).

Parameters:
location -

getCorporatePosition

public java.lang.String getCorporatePosition()
Get the 'CorporatePosition' attribute value. The corporate position of the contact.

Returns:
value

setCorporatePosition

public void setCorporatePosition(java.lang.String corporatePosition)
Set the 'CorporatePosition' attribute value. The corporate position of the contact.

Parameters:
corporatePosition -

getOKToPublish

public java.lang.Boolean getOKToPublish()
Get the 'OKToPublish' attribute value. Indicates whether the contact information can be published externally (on a web site for the general public) or whether this is strictly a contact to be used in conjunction with the data feed (limited use). Values: 0 = No, Limited Publication, or 1 = Yes, OK for External Publication.

Returns:
value

setOKToPublish

public void setOKToPublish(java.lang.Boolean OKToPublish)
Set the 'OKToPublish' attribute value. Indicates whether the contact information can be published externally (on a web site for the general public) or whether this is strictly a contact to be used in conjunction with the data feed (limited use). Values: 0 = No, Limited Publication, or 1 = Yes, OK for External Publication.

Parameters:
OKToPublish -

getNameOrdered

public java.lang.String getNameOrdered()
Get the 'NameOrdered' attribute value. The proper name in the usual order (e.g. used for correspondance Mr. James Smith).

Returns:
value

setNameOrdered

public void setNameOrdered(java.lang.String nameOrdered)
Set the 'NameOrdered' attribute value. The proper name in the usual order (e.g. used for correspondance Mr. James Smith).

Parameters:
nameOrdered -

getID

public java.lang.String getID()
Get the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Returns:
value

setID

public void setID(java.lang.String ID)
Set the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Parameters:
ID -