org.ota.hotel
Class DescriptiveContentNotifRQ

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

public class DescriptiveContentNotifRQ
extends java.lang.Object

The Hotel Descriptive Content Notification is a broadcast message used to publicize detailed descriptive information about a hotel property by standardized data categories. Likewise, static information about a hotel property can be obtained by using the Hotel Search Request and/or Hotel Availability Request to search for static information by category, using codes agreed upon between trading partners to request more detail about a hotel. The Hotel Descriptive Content interface enables accessing hotel data in both a push and pull format in order to avoid storing the data at multiple locations. In most cases, the hotel property is the owner of the data and is in charge of updating it, and sends out a broadcast message as a full overlay replacing previous information or a partial update message modification to make changes or portions of the data. 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="OTA_HotelDescriptiveContentNotifRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="HotelDescriptiveContents">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="HotelDescriptiveContent" maxOccurs="unbounded">
               <!-- Reference to inner class HotelDescriptiveContent -->
             </xs:element>
           </xs:sequence>
           <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
           <xs:attributeGroup ref="ns:OverWriteGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OverWriteGroup">
   <xs:attribute type="xs:boolean" use="optional" name="Overwrite"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class DescriptiveContentNotifRQ.HotelDescriptiveContent
          Hotel descriptive information.
 
Constructor Summary
DescriptiveContentNotifRQ()
           
 
Method Summary
 void addHotelDescriptiveContent(DescriptiveContentNotifRQ.HotelDescriptiveContent item)
          Add a 'HotelDescriptiveContent' element item.
 void clearHotelDescriptiveContents()
          Remove all 'HotelDescriptiveContent' element items.
 DescriptiveContentNotifRQ.HotelDescriptiveContent getHotelDescriptiveContent(int index)
          Get 'HotelDescriptiveContent' element item by position.
 java.util.List<DescriptiveContentNotifRQ.HotelDescriptiveContent> getHotelDescriptiveContents()
          Get the list of 'HotelDescriptiveContent' element items.
 HotelReferenceGroup getHotelDescriptiveContentsHotelReferenceGroup()
          Get the 'HotelReferenceGroup' attributeGroup value.
 java.lang.Boolean getHotelDescriptiveContentsOverwrite()
          Get the 'Overwrite' attribute value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 void setHotelDescriptiveContents(java.util.List<DescriptiveContentNotifRQ.HotelDescriptiveContent> list)
          Set the list of 'HotelDescriptiveContent' element items.
 void setHotelDescriptiveContentsHotelReferenceGroup(HotelReferenceGroup hotelDescriptiveContentsHotelReferenceGroup)
          Set the 'HotelReferenceGroup' attributeGroup value.
 void setHotelDescriptiveContentsOverwrite(java.lang.Boolean hotelDescriptiveContentsOverwrite)
          Set the 'Overwrite' attribute value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 int sizeHotelDescriptiveContents()
          Get the number of 'HotelDescriptiveContent' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptiveContentNotifRQ

public DescriptiveContentNotifRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Identifies the party sending the information.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Identifies the party sending the information.

Parameters:
POS -

getHotelDescriptiveContents

public java.util.List<DescriptiveContentNotifRQ.HotelDescriptiveContent> getHotelDescriptiveContents()
Get the list of 'HotelDescriptiveContent' element items. A collection of hotel descriptive information.

Returns:
list

setHotelDescriptiveContents

public void setHotelDescriptiveContents(java.util.List<DescriptiveContentNotifRQ.HotelDescriptiveContent> list)
Set the list of 'HotelDescriptiveContent' element items. A collection of hotel descriptive information.

Parameters:
list -

sizeHotelDescriptiveContents

public int sizeHotelDescriptiveContents()
Get the number of 'HotelDescriptiveContent' element items.

Returns:
count

addHotelDescriptiveContent

public void addHotelDescriptiveContent(DescriptiveContentNotifRQ.HotelDescriptiveContent item)
Add a 'HotelDescriptiveContent' element item.

Parameters:
item -

getHotelDescriptiveContent

public DescriptiveContentNotifRQ.HotelDescriptiveContent getHotelDescriptiveContent(int index)
Get 'HotelDescriptiveContent' element item by position.

Parameters:
index -
Returns:
item

clearHotelDescriptiveContents

public void clearHotelDescriptiveContents()
Remove all 'HotelDescriptiveContent' element items.


getHotelDescriptiveContentsHotelReferenceGroup

public HotelReferenceGroup getHotelDescriptiveContentsHotelReferenceGroup()
Get the 'HotelReferenceGroup' attributeGroup value. HotelReferenceGroup attribute has been added to HotelDescriptiveContent layer in 2003B to satisfy the ability to send multiple hotels within the message. It is possible that the HotelReferenceGroup will be removed from HotelDescriptiveContents in a future release.

Returns:
value

setHotelDescriptiveContentsHotelReferenceGroup

public void setHotelDescriptiveContentsHotelReferenceGroup(HotelReferenceGroup hotelDescriptiveContentsHotelReferenceGroup)
Set the 'HotelReferenceGroup' attributeGroup value. HotelReferenceGroup attribute has been added to HotelDescriptiveContent layer in 2003B to satisfy the ability to send multiple hotels within the message. It is possible that the HotelReferenceGroup will be removed from HotelDescriptiveContents in a future release.

Parameters:
hotelDescriptiveContentsHotelReferenceGroup -

getHotelDescriptiveContentsOverwrite

public java.lang.Boolean getHotelDescriptiveContentsOverwrite()
Get the 'Overwrite' attribute value. Indicates whether this message is to replace all information.

Returns:
value

setHotelDescriptiveContentsOverwrite

public void setHotelDescriptiveContentsOverwrite(java.lang.Boolean hotelDescriptiveContentsOverwrite)
Set the 'Overwrite' attribute value. Indicates whether this message is to replace all information.

Parameters:
hotelDescriptiveContentsOverwrite -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -