org.ota.hotel
Class ContactInfo

java.lang.Object
  extended by org.ota.hotel.ContactInfo
Direct Known Subclasses:
ContactInfoRoot, HotelDescriptiveContent.AreaInfo.Attractions.Attraction.Contact, HotelDescriptiveContent.HotelInfo.OwnershipManagementInfos.OwnershipManagementInfo

public class ContactInfo
extends java.lang.Object

Allows multiple pieces of information to be repeated for a single contact (e.g. one employee has mutliple e-mail addresses) and also allows multiple contacts to be associated to a single or multiple piece of information (e.g. all employees working in a restaurant can be reached at the same phone number). 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="ContactInfoType">
   <xs:sequence>
     <xs:element type="ns:ContactsType" name="Names" minOccurs="0">
       <!-- Reference to inner class Names -->
     </xs:element>
     <xs:element type="ns:AddressesType" name="Addresses" minOccurs="0">
       <!-- Reference to inner class Addresses -->
     </xs:element>
     <xs:element type="ns:PhonesType" name="Phones" minOccurs="0">
       <!-- Reference to inner class Phones -->
     </xs:element>
     <xs:element type="ns:EmailsType" name="Emails" minOccurs="0">
       <!-- Reference to inner class Emails -->
     </xs:element>
     <xs:element type="ns:URLsType" name="URLs" minOccurs="0"/>
     <xs:element name="CompanyName" minOccurs="0">
       <!-- Reference to inner class CompanyName -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Location"/>
 </xs:complexType>
 


Nested Class Summary
static class ContactInfo.Addresses
          A collection of Address elements.
static class ContactInfo.CompanyName
          The name of the company with which this contact is associated.
static class ContactInfo.Emails
          A collection of email elements.
static class ContactInfo.Names
          A collection of Name elements.
static class ContactInfo.Phones
          A collection of Phone elements.
 
Constructor Summary
ContactInfo()
           
 
Method Summary
 ContactInfo.Addresses getAddresses()
          Get the 'Addresses' element value.
 ContactInfo.CompanyName getCompanyName()
          Get the 'CompanyName' element value.
 ContactInfo.Emails getEmails()
          Get the 'Emails' element value.
 java.lang.String getLocation()
          Get the 'Location' attribute value.
 ContactInfo.Names getNames()
          Get the 'Names' element value.
 ContactInfo.Phones getPhones()
          Get the 'Phones' element value.
 URLs getURLs()
          Get the 'URLs' element value.
 void setAddresses(ContactInfo.Addresses addresses)
          Set the 'Addresses' element value.
 void setCompanyName(ContactInfo.CompanyName companyName)
          Set the 'CompanyName' element value.
 void setEmails(ContactInfo.Emails emails)
          Set the 'Emails' element value.
 void setLocation(java.lang.String location)
          Set the 'Location' attribute value.
 void setNames(ContactInfo.Names names)
          Set the 'Names' element value.
 void setPhones(ContactInfo.Phones phones)
          Set the 'Phones' element value.
 void setURLs(URLs URLs)
          Set the 'URLs' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactInfo

public ContactInfo()
Method Detail

getNames

public ContactInfo.Names getNames()
Get the 'Names' element value.

Returns:
value

setNames

public void setNames(ContactInfo.Names names)
Set the 'Names' element value.

Parameters:
names -

getAddresses

public ContactInfo.Addresses getAddresses()
Get the 'Addresses' element value.

Returns:
value

setAddresses

public void setAddresses(ContactInfo.Addresses addresses)
Set the 'Addresses' element value.

Parameters:
addresses -

getPhones

public ContactInfo.Phones getPhones()
Get the 'Phones' element value.

Returns:
value

setPhones

public void setPhones(ContactInfo.Phones phones)
Set the 'Phones' element value.

Parameters:
phones -

getEmails

public ContactInfo.Emails getEmails()
Get the 'Emails' element value.

Returns:
value

setEmails

public void setEmails(ContactInfo.Emails emails)
Set the 'Emails' element value.

Parameters:
emails -

getURLs

public URLs getURLs()
Get the 'URLs' element value. A collection of URL elements. Used to pass detailed URL information

Returns:
value

setURLs

public void setURLs(URLs URLs)
Set the 'URLs' element value. A collection of URL elements. Used to pass detailed URL information

Parameters:
URLs -

getCompanyName

public ContactInfo.CompanyName getCompanyName()
Get the 'CompanyName' element value.

Returns:
value

setCompanyName

public void setCompanyName(ContactInfo.CompanyName companyName)
Set the 'CompanyName' element value.

Parameters:
companyName -

getLocation

public java.lang.String getLocation()
Get the 'Location' attribute value. The location of the contact (e.g., at a hotel property, at a central office). 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 contact (e.g., at a hotel property, at a central office). Refer to OpenTravel Code List Contact Location (CON).

Parameters:
location -