org.ota.itin
Class TravelSegment.Reservation.RoomTypes.Room

java.lang.Object
  extended by org.ota.itin.TravelSegment.Reservation.RoomTypes.Room
Enclosing class:
TravelSegment.Reservation.RoomTypes

public static class TravelSegment.Reservation.RoomTypes.Room
extends java.lang.Object

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" type="ns:RoomTypeLiteType" name="RoomType" maxOccurs="9"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RoomTypeLiteType">
   <xs:sequence>
     <xs:element type="ns:ParagraphType" name="RoomDescription" minOccurs="0"/>
     <xs:element type="ns:RoomAmenityPrefType" name="Amenity" minOccurs="0" maxOccurs="5"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RoomTypeCode"/>
   <xs:attribute type="xs:int" use="optional" name="NumberOfUnits"/>
 </xs:complexType>
 


Constructor Summary
TravelSegment.Reservation.RoomTypes.Room()
           
 
Method Summary
 void addAmenity(RoomAmenityPref item)
          Add a 'Amenity' element item.
 void clearAmenities()
          Remove all 'Amenity' element items.
 java.util.List<RoomAmenityPref> getAmenities()
          Get the list of 'Amenity' element items.
 RoomAmenityPref getAmenity(int index)
          Get 'Amenity' element item by position.
 java.lang.Integer getNumberOfUnits()
          Get the 'NumberOfUnits' attribute value.
 Paragraph getRoomDescription()
          Get the 'RoomDescription' element value.
 java.lang.String getRoomTypeCode()
          Get the 'RoomTypeCode' attribute value.
 void setAmenities(java.util.List<RoomAmenityPref> list)
          Set the list of 'Amenity' element items.
 void setNumberOfUnits(java.lang.Integer numberOfUnits)
          Set the 'NumberOfUnits' attribute value.
 void setRoomDescription(Paragraph roomDescription)
          Set the 'RoomDescription' element value.
 void setRoomTypeCode(java.lang.String roomTypeCode)
          Set the 'RoomTypeCode' attribute value.
 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

TravelSegment.Reservation.RoomTypes.Room

public TravelSegment.Reservation.RoomTypes.Room()
Method Detail

getRoomDescription

public Paragraph getRoomDescription()
Get the 'RoomDescription' element value.

Returns:
value

setRoomDescription

public void setRoomDescription(Paragraph roomDescription)
Set the 'RoomDescription' element value.

Parameters:
roomDescription -

getAmenities

public java.util.List<RoomAmenityPref> getAmenities()
Get the list of 'Amenity' element items.

Returns:
list

setAmenities

public void setAmenities(java.util.List<RoomAmenityPref> 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(RoomAmenityPref item)
Add a 'Amenity' element item.

Parameters:
item -

getAmenity

public RoomAmenityPref getAmenity(int index)
Get 'Amenity' element item by position.

Parameters:
index -
Returns:
item

clearAmenities

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


getRoomTypeCode

public java.lang.String getRoomTypeCode()
Get the 'RoomTypeCode' attribute value. Specfic system room type code, ex: A1K, A1Q etc.

Returns:
value

setRoomTypeCode

public void setRoomTypeCode(java.lang.String roomTypeCode)
Set the 'RoomTypeCode' attribute value. Specfic system room type code, ex: A1K, A1Q etc.

Parameters:
roomTypeCode -

getNumberOfUnits

public java.lang.Integer getNumberOfUnits()
Get the 'NumberOfUnits' attribute value.

Returns:
value

setNumberOfUnits

public void setNumberOfUnits(java.lang.Integer numberOfUnits)
Set the 'NumberOfUnits' attribute value.

Parameters:
numberOfUnits -