org.ota.hotel
Class SellableProducts.SellableProduct.GuestRoom.Amenities

java.lang.Object
  extended by org.ota.hotel.SellableProducts.SellableProduct.GuestRoom.Amenities
Enclosing class:
SellableProducts.SellableProduct.GuestRoom

public static class SellableProducts.SellableProduct.GuestRoom.Amenities
extends java.lang.Object

Collection of room level amenities. 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="Amenities" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Amenity" maxOccurs="unbounded">
         <!-- Reference to inner class Amenity -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity
          Amenity Code Attribute is used to hold actual amenity code.
 
Constructor Summary
SellableProducts.SellableProduct.GuestRoom.Amenities()
           
 
Method Summary
 void addAmenity(SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity item)
          Add a 'Amenity' element item.
 void clearAmenities()
          Remove all 'Amenity' element items.
 java.util.List<SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity> getAmenities()
          Get the list of 'Amenity' element items.
 SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity getAmenity(int index)
          Get 'Amenity' element item by position.
 void setAmenities(java.util.List<SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity> list)
          Set the list of 'Amenity' element items.
 int sizeAmenities()
          Get the number of 'Amenity' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellableProducts.SellableProduct.GuestRoom.Amenities

public SellableProducts.SellableProduct.GuestRoom.Amenities()
Method Detail

getAmenities

public java.util.List<SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity> getAmenities()
Get the list of 'Amenity' element items.

Returns:
list

setAmenities

public void setAmenities(java.util.List<SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity> list)
Set the list of 'Amenity' element items.

Parameters:
list -

sizeAmenities

public int sizeAmenities()
Get the number of 'Amenity' element items.

Returns:
count

addAmenity

public void addAmenity(SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity item)
Add a 'Amenity' element item.

Parameters:
item -

getAmenity

public SellableProducts.SellableProduct.GuestRoom.Amenities.Amenity getAmenity(int index)
Get 'Amenity' element item by position.

Parameters:
index -
Returns:
item

clearAmenities

public void clearAmenities()
Remove all 'Amenity' element items.