org.ota.cruise
Class Guest

java.lang.Object
  extended by org.ota.cruise.Guest
Direct Known Subclasses:
CruiseBookingInfo.GuestPrices.GuestPrice

public class Guest
extends java.lang.Object

Provides information regarding the guest name and the guest's mode of transportation. 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="GuestType">
   <xs:sequence>
     <xs:element type="ns:PersonNameType" name="GuestName" minOccurs="0"/>
     <xs:element type="ns:GuestTransportationType" name="GuestTransportation" minOccurs="0" maxOccurs="2"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:GuestInfoGroup"/>
 </xs:complexType>
 


Constructor Summary
Guest()
           
 
Method Summary
 void addGuestTransportation(GuestTransportation item)
          Add a 'GuestTransportation' element item.
 void clearGuestTransportations()
          Remove all 'GuestTransportation' element items.
 GuestInfoGroup getGuestInfoGroup()
          Get the 'GuestInfoGroup' attributeGroup value.
 PersonName getGuestName()
          Get the 'GuestName' element value.
 GuestTransportation getGuestTransportation(int index)
          Get 'GuestTransportation' element item by position.
 java.util.List<GuestTransportation> getGuestTransportations()
          Get the list of 'GuestTransportation' element items.
 void setGuestInfoGroup(GuestInfoGroup guestInfoGroup)
          Set the 'GuestInfoGroup' attributeGroup value.
 void setGuestName(PersonName guestName)
          Set the 'GuestName' element value.
 void setGuestTransportations(java.util.List<GuestTransportation> list)
          Set the list of 'GuestTransportation' element items.
 int sizeGuestTransportations()
          Get the number of 'GuestTransportation' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Guest

public Guest()
Method Detail

getGuestName

public PersonName getGuestName()
Get the 'GuestName' element value. Name of the guest.

Returns:
value

setGuestName

public void setGuestName(PersonName guestName)
Set the 'GuestName' element value. Name of the guest.

Parameters:
guestName -

getGuestTransportations

public java.util.List<GuestTransportation> getGuestTransportations()
Get the list of 'GuestTransportation' element items. Selected guest mode of transportation.

Returns:
list

setGuestTransportations

public void setGuestTransportations(java.util.List<GuestTransportation> list)
Set the list of 'GuestTransportation' element items. Selected guest mode of transportation.

Parameters:
list -

sizeGuestTransportations

public int sizeGuestTransportations()
Get the number of 'GuestTransportation' element items.

Returns:
count

addGuestTransportation

public void addGuestTransportation(GuestTransportation item)
Add a 'GuestTransportation' element item.

Parameters:
item -

getGuestTransportation

public GuestTransportation getGuestTransportation(int index)
Get 'GuestTransportation' element item by position.

Parameters:
index -
Returns:
item

clearGuestTransportations

public void clearGuestTransportations()
Remove all 'GuestTransportation' element items.


getGuestInfoGroup

public GuestInfoGroup getGuestInfoGroup()
Get the 'GuestInfoGroup' attributeGroup value. Provides information about the guest.

Returns:
value

setGuestInfoGroup

public void setGuestInfoGroup(GuestInfoGroup guestInfoGroup)
Set the 'GuestInfoGroup' attributeGroup value. Provides information about the guest.

Parameters:
guestInfoGroup -