org.ota.hotel
Class Services

java.lang.Object
  extended by org.ota.hotel.Services

public class Services
extends java.lang.Object

A collection of Service objects. This is the collection of all services associated with any part of this reservation (the reservation in its entirety, one or more guests, or one or more room stays). Which services are attributable to which part is determined by each object's ServiceRPHs collection. 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="ServicesType">
   <xs:sequence>
     <xs:element name="Service" maxOccurs="unbounded">
       <!-- Reference to inner class Service -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class Services.Service
          A Service object represents a non-room product provided to guests.
 
Constructor Summary
Services()
           
 
Method Summary
 void addService(Services.Service item)
          Add a 'Service' element item.
 void clearServices()
          Remove all 'Service' element items.
 Services.Service getService(int index)
          Get 'Service' element item by position.
 java.util.List<Services.Service> getServices()
          Get the list of 'Service' element items.
 void setServices(java.util.List<Services.Service> list)
          Set the list of 'Service' element items.
 int sizeServices()
          Get the number of 'Service' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Services

public Services()
Method Detail

getServices

public java.util.List<Services.Service> getServices()
Get the list of 'Service' element items.

Returns:
list

setServices

public void setServices(java.util.List<Services.Service> list)
Set the list of 'Service' element items.

Parameters:
list -

sizeServices

public int sizeServices()
Get the number of 'Service' element items.

Returns:
count

addService

public void addService(Services.Service item)
Add a 'Service' element item.

Parameters:
item -

getService

public Services.Service getService(int index)
Get 'Service' element item by position.

Parameters:
index -
Returns:
item

clearServices

public void clearServices()
Remove all 'Service' element items.