org.ota.hotel
Class RoomStay.RoomRates.RoomRate.Features.Feature

java.lang.Object
  extended by org.ota.hotel.RoomStay.RoomRates.RoomRate.Features.Feature
Enclosing class:
RoomStay.RoomRates.RoomRate.Features

public static class RoomStay.RoomRates.RoomRate.Features.Feature
extends java.lang.Object

Allows for the description of any features and/or amenities that are made available as part of this specific room and this specifiic rate plan, for example, large screen television, video/DVD player in room, room service breakfast, and details about that breakfast. 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="Feature" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ParagraphType" name="Description" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="RoomAmenity"/>
     <xs:attribute type="xs:int" use="optional" name="Quantity"/>
     <xs:attribute type="xs:string" use="optional" name="RoomViewCode"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RoomStay.RoomRates.RoomRate.Features.Feature()
           
 
Method Summary
 void addDescription(Paragraph item)
          Add a 'Description' element item.
 void clearDescriptions()
          Remove all 'Description' element items.
 Paragraph getDescription(int index)
          Get 'Description' element item by position.
 java.util.List<Paragraph> getDescriptions()
          Get the list of 'Description' element items.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 java.lang.String getRoomAmenity()
          Get the 'RoomAmenity' attribute value.
 java.lang.String getRoomViewCode()
          Get the 'RoomViewCode' attribute value.
 void setDescriptions(java.util.List<Paragraph> list)
          Set the list of 'Description' element items.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setRoomAmenity(java.lang.String roomAmenity)
          Set the 'RoomAmenity' attribute value.
 void setRoomViewCode(java.lang.String roomViewCode)
          Set the 'RoomViewCode' attribute value.
 int sizeDescriptions()
          Get the number of 'Description' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomStay.RoomRates.RoomRate.Features.Feature

public RoomStay.RoomRates.RoomRate.Features.Feature()
Method Detail

getDescriptions

public java.util.List<Paragraph> getDescriptions()
Get the list of 'Description' element items.

Returns:
list

setDescriptions

public void setDescriptions(java.util.List<Paragraph> list)
Set the list of 'Description' element items.

Parameters:
list -

sizeDescriptions

public int sizeDescriptions()
Get the number of 'Description' element items.

Returns:
count

addDescription

public void addDescription(Paragraph item)
Add a 'Description' element item.

Parameters:
item -

getDescription

public Paragraph getDescription(int index)
Get 'Description' element item by position.

Parameters:
index -
Returns:
item

clearDescriptions

public void clearDescriptions()
Remove all 'Description' element items.


getRoomAmenity

public java.lang.String getRoomAmenity()
Get the 'RoomAmenity' attribute value. Refer to OpenTravel Code List Room Amenity Type (RMA).

Returns:
value

setRoomAmenity

public void setRoomAmenity(java.lang.String roomAmenity)
Set the 'RoomAmenity' attribute value. Refer to OpenTravel Code List Room Amenity Type (RMA).

Parameters:
roomAmenity -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. Provides the quantity of the amenity in the room. When zero, the amenity is either unavailable or not allowed.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. Provides the quantity of the amenity in the room. When zero, the amenity is either unavailable or not allowed.

Parameters:
quantity -

getRoomViewCode

public java.lang.String getRoomViewCode()
Get the 'RoomViewCode' attribute value. Specifies the type of view a room has. Refer to OpenTravel Code List Room View Type (RVT).

Returns:
value

setRoomViewCode

public void setRoomViewCode(java.lang.String roomViewCode)
Set the 'RoomViewCode' attribute value. Specifies the type of view a room has. Refer to OpenTravel Code List Room View Type (RVT).

Parameters:
roomViewCode -