org.ota.hotel
Class HotelRoomList.Guests.Guest

java.lang.Object
  extended by org.ota.shared.ContactPerson
      extended by org.ota.hotel.HotelRoomList.Guests.Guest
Enclosing class:
HotelRoomList.Guests

public static class HotelRoomList.Guests.Guest
extends ContactPerson

A person staying in a room. 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="Guest" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:ContactPersonType">
         <xs:sequence>
           <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
           <xs:element name="Loyalty" minOccurs="0" maxOccurs="5">
             <xs:complexType>
               <xs:attributeGroup ref="ns:SelectedLoyaltyGroup"/>
             </xs:complexType>
           </xs:element>
           <xs:element name="GuaranteePayment" minOccurs="0" maxOccurs="2">
             <!-- Reference to inner class GuaranteePayment -->
           </xs:element>
           <xs:element type="ns:AdditionalDetailsType" name="AdditionalDetails" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="ns:ActionType" use="optional" name="GuestAction"/>
         <xs:attribute type="xs:boolean" use="optional" name="PrintConfoInd"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelRoomList.Guests.Guest.GuaranteePayment
          Guarantee or Payment information for an individual guest.
 
Constructor Summary
HotelRoomList.Guests.Guest()
           
 
Method Summary
 void addGuaranteePayment(HotelRoomList.Guests.Guest.GuaranteePayment item)
          Add a 'GuaranteePayment' element item.
 void addLoyalty(SelectedLoyaltyGroup item)
          Add a 'Loyalty' element item.
 void clearGuaranteePayments()
          Remove all 'GuaranteePayment' element items.
 void clearLoyalties()
          Remove all 'Loyalty' element items.
 AdditionalDetails getAdditionalDetails()
          Get the 'AdditionalDetails' element value.
 HotelRoomList.Guests.Guest.GuaranteePayment getGuaranteePayment(int index)
          Get 'GuaranteePayment' element item by position.
 java.util.List<HotelRoomList.Guests.Guest.GuaranteePayment> getGuaranteePayments()
          Get the list of 'GuaranteePayment' element items.
 Action getGuestAction()
          Get the 'GuestAction' attribute value.
 java.util.List<SelectedLoyaltyGroup> getLoyalties()
          Get the list of 'Loyalty' element items.
 SelectedLoyaltyGroup getLoyalty(int index)
          Get 'Loyalty' element item by position.
 java.lang.Boolean getPrintConfoInd()
          Get the 'PrintConfoInd' attribute value.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 void setAdditionalDetails(AdditionalDetails additionalDetails)
          Set the 'AdditionalDetails' element value.
 void setGuaranteePayments(java.util.List<HotelRoomList.Guests.Guest.GuaranteePayment> list)
          Set the list of 'GuaranteePayment' element items.
 void setGuestAction(Action guestAction)
          Set the 'GuestAction' attribute value.
 void setLoyalties(java.util.List<SelectedLoyaltyGroup> list)
          Set the list of 'Loyalty' element items.
 void setPrintConfoInd(java.lang.Boolean printConfoInd)
          Set the 'PrintConfoInd' attribute value.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 int sizeGuaranteePayments()
          Get the number of 'GuaranteePayment' element items.
 int sizeLoyalties()
          Get the number of 'Loyalty' element items.
 
Methods inherited from class org.ota.shared.ContactPerson
addAddress, addCompanyName, addEmail, addEmployeeInfo, addTelephone, addURL, clearAddresses, clearCompanyNames, clearEmails, clearEmployeeInfos, clearTelephones, clearURLs, getAddress, getAddresses, getCommunicationMethodCode, getCompanyName, getCompanyNames, getContact, getDefaultInd, getDocumentDistribMethodCode, getEmail, getEmails, getEmergencyFlag, getEmployeeInfo, getEmployeeInfos, getPersonName, getPrivacyGroup, getRelation, getRPH, getTelephone, getTelephones, getURL, getURLs, setAddresses, setCommunicationMethodCode, setCompanyNames, setContact, setDefaultInd, setDocumentDistribMethodCode, setEmails, setEmergencyFlag, setEmployeeInfos, setPersonName, setPrivacyGroup, setRelation, setRPH, setTelephones, setURLs, sizeAddresses, sizeCompanyNames, sizeEmails, sizeEmployeeInfos, sizeTelephones, sizeURLs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelRoomList.Guests.Guest

public HotelRoomList.Guests.Guest()
Method Detail

getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value. The confirmation number for a particular guest. This is used with the 'GuestAction' attribute value of 'Add-Update' to indicate an update.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value. The confirmation number for a particular guest. This is used with the 'GuestAction' attribute value of 'Add-Update' to indicate an update.

Parameters:
uniqueID -

getLoyalties

public java.util.List<SelectedLoyaltyGroup> getLoyalties()
Get the list of 'Loyalty' element items.

Returns:
list

setLoyalties

public void setLoyalties(java.util.List<SelectedLoyaltyGroup> list)
Set the list of 'Loyalty' element items.

Parameters:
list -

sizeLoyalties

public int sizeLoyalties()
Get the number of 'Loyalty' element items.

Returns:
count

addLoyalty

public void addLoyalty(SelectedLoyaltyGroup item)
Add a 'Loyalty' element item.

Parameters:
item -

getLoyalty

public SelectedLoyaltyGroup getLoyalty(int index)
Get 'Loyalty' element item by position.

Parameters:
index -
Returns:
item

clearLoyalties

public void clearLoyalties()
Remove all 'Loyalty' element items.


getGuaranteePayments

public java.util.List<HotelRoomList.Guests.Guest.GuaranteePayment> getGuaranteePayments()
Get the list of 'GuaranteePayment' element items.

Returns:
list

setGuaranteePayments

public void setGuaranteePayments(java.util.List<HotelRoomList.Guests.Guest.GuaranteePayment> list)
Set the list of 'GuaranteePayment' element items.

Parameters:
list -

sizeGuaranteePayments

public int sizeGuaranteePayments()
Get the number of 'GuaranteePayment' element items.

Returns:
count

addGuaranteePayment

public void addGuaranteePayment(HotelRoomList.Guests.Guest.GuaranteePayment item)
Add a 'GuaranteePayment' element item.

Parameters:
item -

getGuaranteePayment

public HotelRoomList.Guests.Guest.GuaranteePayment getGuaranteePayment(int index)
Get 'GuaranteePayment' element item by position.

Parameters:
index -
Returns:
item

clearGuaranteePayments

public void clearGuaranteePayments()
Remove all 'GuaranteePayment' element items.


getAdditionalDetails

public AdditionalDetails getAdditionalDetails()
Get the 'AdditionalDetails' element value.

Returns:
value

setAdditionalDetails

public void setAdditionalDetails(AdditionalDetails additionalDetails)
Set the 'AdditionalDetails' element value.

Parameters:
additionalDetails -

getGuestAction

public Action getGuestAction()
Get the 'GuestAction' attribute value. This attributes indicates the change in status of the guest.

Returns:
value

setGuestAction

public void setGuestAction(Action guestAction)
Set the 'GuestAction' attribute value. This attributes indicates the change in status of the guest.

Parameters:
guestAction -

getPrintConfoInd

public java.lang.Boolean getPrintConfoInd()
Get the 'PrintConfoInd' attribute value. Indicates whether to send the printed confirmation.

Returns:
value

setPrintConfoInd

public void setPrintConfoInd(java.lang.Boolean printConfoInd)
Set the 'PrintConfoInd' attribute value. Indicates whether to send the printed confirmation.

Parameters:
printConfoInd -