org.ota.hotel
Class RoomType

java.lang.Object
  extended by org.ota.hotel.RoomType
Direct Known Subclasses:
RFPTransientDetails.RFPTransientResponses.RFPTransientResponse.AccountSpecificInformation.RoomTypes.Room

public class RoomType
extends java.lang.Object

Provides details regarding rooms, usually guest rooms. 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="RoomTypeType">
   <xs:sequence>
     <xs:element type="ns:ParagraphType" name="RoomDescription" minOccurs="0"/>
     <xs:element type="ns:AdditionalDetailsType" name="AdditionalDetails" minOccurs="0"/>
     <xs:element name="Amenities" minOccurs="0">
       <!-- Reference to inner class Amenities -->
     </xs:element>
     <xs:element name="Occupancy" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Occupancy -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:int" use="optional" name="NumberOfUnits"/>
   <xs:attribute type="xs:boolean" use="optional" name="IsRoom"/>
   <xs:attribute type="xs:boolean" use="optional" name="IsConverted"/>
   <xs:attribute type="xs:boolean" use="optional" name="IsAlternate"/>
   <xs:attribute type="xs:string" use="optional" name="ReqdGuaranteeType"/>
   <xs:attributeGroup ref="ns:RoomGroup"/>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class RoomType.Amenities
          A collection of amenity information.
static class RoomType.Occupancy
          Provides parameters of occupancy limits.
 
Constructor Summary
RoomType()
           
 
Method Summary
 void addOccupancy(RoomType.Occupancy item)
          Add a 'Occupancy' element item.
 void clearOccupancies()
          Remove all 'Occupancy' element items.
 AdditionalDetails getAdditionalDetails()
          Get the 'AdditionalDetails' element value.
 RoomType.Amenities getAmenities()
          Get the 'Amenities' element value.
 java.lang.Boolean getIsAlternate()
          Get the 'IsAlternate' attribute value.
 java.lang.Boolean getIsConverted()
          Get the 'IsConverted' attribute value.
 java.lang.Boolean getIsRoom()
          Get the 'IsRoom' attribute value.
 java.lang.Integer getNumberOfUnits()
          Get the 'NumberOfUnits' attribute value.
 java.util.List<RoomType.Occupancy> getOccupancies()
          Get the list of 'Occupancy' element items.
 RoomType.Occupancy getOccupancy(int index)
          Get 'Occupancy' element item by position.
 java.lang.String getReqdGuarantee()
          Get the 'ReqdGuaranteeType' attribute value.
 Paragraph getRoomDescription()
          Get the 'RoomDescription' element value.
 RoomGroup getRoomGroup()
          Get the 'RoomGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setAdditionalDetails(AdditionalDetails additionalDetails)
          Set the 'AdditionalDetails' element value.
 void setAmenities(RoomType.Amenities amenities)
          Set the 'Amenities' element value.
 void setIsAlternate(java.lang.Boolean isAlternate)
          Set the 'IsAlternate' attribute value.
 void setIsConverted(java.lang.Boolean isConverted)
          Set the 'IsConverted' attribute value.
 void setIsRoom(java.lang.Boolean isRoom)
          Set the 'IsRoom' attribute value.
 void setNumberOfUnits(java.lang.Integer numberOfUnits)
          Set the 'NumberOfUnits' attribute value.
 void setOccupancies(java.util.List<RoomType.Occupancy> list)
          Set the list of 'Occupancy' element items.
 void setReqdGuarantee(java.lang.String reqdGuarantee)
          Set the 'ReqdGuaranteeType' attribute value.
 void setRoomDescription(Paragraph roomDescription)
          Set the 'RoomDescription' element value.
 void setRoomGroup(RoomGroup roomGroup)
          Set the 'RoomGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeOccupancies()
          Get the number of 'Occupancy' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomType

public RoomType()
Method Detail

getRoomDescription

public Paragraph getRoomDescription()
Get the 'RoomDescription' element value. Textual information regarding the room.

Returns:
value

setRoomDescription

public void setRoomDescription(Paragraph roomDescription)
Set the 'RoomDescription' element value. Textual information regarding the room.

Parameters:
roomDescription -

getAdditionalDetails

public AdditionalDetails getAdditionalDetails()
Get the 'AdditionalDetails' element value. A collection of additional details.

Returns:
value

setAdditionalDetails

public void setAdditionalDetails(AdditionalDetails additionalDetails)
Set the 'AdditionalDetails' element value. A collection of additional details.

Parameters:
additionalDetails -

getAmenities

public RoomType.Amenities getAmenities()
Get the 'Amenities' element value.

Returns:
value

setAmenities

public void setAmenities(RoomType.Amenities amenities)
Set the 'Amenities' element value.

Parameters:
amenities -

getOccupancies

public java.util.List<RoomType.Occupancy> getOccupancies()
Get the list of 'Occupancy' element items.

Returns:
list

setOccupancies

public void setOccupancies(java.util.List<RoomType.Occupancy> list)
Set the list of 'Occupancy' element items.

Parameters:
list -

sizeOccupancies

public int sizeOccupancies()
Get the number of 'Occupancy' element items.

Returns:
count

addOccupancy

public void addOccupancy(RoomType.Occupancy item)
Add a 'Occupancy' element item.

Parameters:
item -

getOccupancy

public RoomType.Occupancy getOccupancy(int index)
Get 'Occupancy' element item by position.

Parameters:
index -
Returns:
item

clearOccupancies

public void clearOccupancies()
Remove all 'Occupancy' element items.


getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

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 -

getIsRoom

public java.lang.Boolean getIsRoom()
Get the 'IsRoom' attribute value. Indicates the room is a sleeping room when true.

Returns:
value

setIsRoom

public void setIsRoom(java.lang.Boolean isRoom)
Set the 'IsRoom' attribute value. Indicates the room is a sleeping room when true.

Parameters:
isRoom -

getIsConverted

public java.lang.Boolean getIsConverted()
Get the 'IsConverted' attribute value. Indicates the room is converted when true.

Returns:
value

setIsConverted

public void setIsConverted(java.lang.Boolean isConverted)
Set the 'IsConverted' attribute value. Indicates the room is converted when true.

Parameters:
isConverted -

getIsAlternate

public java.lang.Boolean getIsAlternate()
Get the 'IsAlternate' attribute value. Indicates the room is an alternate room type to the requested room type when true.

Returns:
value

setIsAlternate

public void setIsAlternate(java.lang.Boolean isAlternate)
Set the 'IsAlternate' attribute value. Indicates the room is an alternate room type to the requested room type when true.

Parameters:
isAlternate -

getReqdGuarantee

public java.lang.String getReqdGuarantee()
Get the 'ReqdGuaranteeType' attribute value. Denotes the form of guarantee for this room.

Returns:
value

setReqdGuarantee

public void setReqdGuarantee(java.lang.String reqdGuarantee)
Set the 'ReqdGuaranteeType' attribute value. Denotes the form of guarantee for this room.

Parameters:
reqdGuarantee -

getRoomGroup

public RoomGroup getRoomGroup()
Get the 'RoomGroup' attributeGroup value. Provides details of the room type.

Returns:
value

setRoomGroup

public void setRoomGroup(RoomGroup roomGroup)
Set the 'RoomGroup' attributeGroup value. Provides details of the room type.

Parameters:
roomGroup -