org.ota.hotel
Class SellableProducts.SellableProduct

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

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

The individual sellable product. A sellable product may be a guest room, a meeting room or an inventory block. Attributes of SellableProduct are the inventory codes, information on the use, application and sequencing of the inventory information. 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="SellableProduct" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DestinationSystemCodes" minOccurs="0">
         <!-- Reference to inner class DestinationSystemCodes -->
       </xs:element>
       <xs:choice>
         <xs:element type="ns:GuestRoomType" name="GuestRoom">
           <!-- Reference to inner class GuestRoom -->
         </xs:element>
         <xs:element type="ns:MeetingRoomsType" name="MeetingRooms"/>
         <xs:element name="InventoryBlock">
           <xs:complexType>
             <xs:attributeGroup ref="ns:InvBlockCodeGroup"/>
           </xs:complexType>
         </xs:element>
       </xs:choice>
       <xs:element type="ns:ParagraphType" name="Description" minOccurs="0"/>
       <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="RPH"/>
     <xs:attributeGroup ref="ns:InventoryGroup"/>
     <xs:attribute use="optional" name="InvNotifType">
       <xs:simpleType>
         <!-- Reference to inner class InvNotif -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute use="optional" name="InvStatusType">
       <xs:simpleType>
         <!-- Reference to inner class InvStatus -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:string" use="optional" name="InvGroupingCode"/>
     <xs:attribute type="xs:int" use="optional" name="OrderSequence"/>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="InvBlockCodeGroup">
   <xs:attribute type="xs:string" name="Code"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class SellableProducts.SellableProduct.DestinationSystemCodes
          A collection of destination system codes.
static class SellableProducts.SellableProduct.GuestRoom
          Guest room information if this sellable product is a guest room.
static class SellableProducts.SellableProduct.InvNotif
          Schema fragment(s) for this class:
static class SellableProducts.SellableProduct.InvStatus
          Schema fragment(s) for this class:
 
Constructor Summary
SellableProducts.SellableProduct()
           
 
Method Summary
 void clearChoiceSelect()
          Clear the choice selection.
 java.lang.String getCode()
          Get the 'Code' attribute value.
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 Paragraph getDescription()
          Get the 'Description' element value.
 SellableProducts.SellableProduct.DestinationSystemCodes getDestinationSystemCodes()
          Get the 'DestinationSystemCodes' element value.
 SellableProducts.SellableProduct.GuestRoom getGuestRoom()
          Get the 'GuestRoom' element value.
 InventoryGroup getInventoryGroup()
          Get the 'InventoryGroup' attributeGroup value.
 java.lang.String getInvGroupingCode()
          Get the 'InvGroupingCode' attribute value.
 SellableProducts.SellableProduct.InvNotif getInvNotif()
          Get the 'InvNotifType' attribute value.
 SellableProducts.SellableProduct.InvStatus getInvStatus()
          Get the 'InvStatusType' attribute value.
 MeetingRooms getMeetingRooms()
          Get the 'MeetingRooms' element value.
 java.lang.Integer getOrderSequence()
          Get the 'OrderSequence' attribute value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 boolean ifGuestRoom()
          Check if GuestRoom is current selection for choice.
 boolean ifInventoryBlock()
          Check if InventoryBlock is current selection for choice.
 boolean ifMeetingRooms()
          Check if MeetingRooms is current selection for choice.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setDescription(Paragraph description)
          Set the 'Description' element value.
 void setDestinationSystemCodes(SellableProducts.SellableProduct.DestinationSystemCodes destinationSystemCodes)
          Set the 'DestinationSystemCodes' element value.
 void setGuestRoom(SellableProducts.SellableProduct.GuestRoom guestRoom)
          Set the 'GuestRoom' element value.
 void setInventoryGroup(InventoryGroup inventoryGroup)
          Set the 'InventoryGroup' attributeGroup value.
 void setInvGroupingCode(java.lang.String invGroupingCode)
          Set the 'InvGroupingCode' attribute value.
 void setInvNotif(SellableProducts.SellableProduct.InvNotif invNotif)
          Set the 'InvNotifType' attribute value.
 void setInvStatus(SellableProducts.SellableProduct.InvStatus invStatus)
          Set the 'InvStatusType' attribute value.
 void setMeetingRooms(MeetingRooms meetingRooms)
          Set the 'MeetingRooms' element value.
 void setOrderSequence(java.lang.Integer orderSequence)
          Set the 'OrderSequence' attribute value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellableProducts.SellableProduct

public SellableProducts.SellableProduct()
Method Detail

getDestinationSystemCodes

public SellableProducts.SellableProduct.DestinationSystemCodes getDestinationSystemCodes()
Get the 'DestinationSystemCodes' element value.

Returns:
value

setDestinationSystemCodes

public void setDestinationSystemCodes(SellableProducts.SellableProduct.DestinationSystemCodes destinationSystemCodes)
Set the 'DestinationSystemCodes' element value.

Parameters:
destinationSystemCodes -

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifGuestRoom

public boolean ifGuestRoom()
Check if GuestRoom is current selection for choice.

Returns:
true if selection, false if not

getGuestRoom

public SellableProducts.SellableProduct.GuestRoom getGuestRoom()
Get the 'GuestRoom' element value.

Returns:
value

setGuestRoom

public void setGuestRoom(SellableProducts.SellableProduct.GuestRoom guestRoom)
Set the 'GuestRoom' element value.

Parameters:
guestRoom -

ifMeetingRooms

public boolean ifMeetingRooms()
Check if MeetingRooms is current selection for choice.

Returns:
true if selection, false if not

getMeetingRooms

public MeetingRooms getMeetingRooms()
Get the 'MeetingRooms' element value. Meeting room information if this sellable product is a meeting room.

Returns:
value

setMeetingRooms

public void setMeetingRooms(MeetingRooms meetingRooms)
Set the 'MeetingRooms' element value. Meeting room information if this sellable product is a meeting room.

Parameters:
meetingRooms -

ifInventoryBlock

public boolean ifInventoryBlock()
Check if InventoryBlock is current selection for choice.

Returns:
true if selection, false if not

getCode

public java.lang.String getCode()
Get the 'Code' attribute value. Trading partner code associated with a room block.

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. Trading partner code associated with a room block.

Parameters:
code -

getDescription

public Paragraph getDescription()
Get the 'Description' element value. Description of the sellable product.

Returns:
value

setDescription

public void setDescription(Paragraph description)
Set the 'Description' element value. Description of the sellable product.

Parameters:
description -

getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value. The SellableProduct class defines the inventoriable item for this rate plan.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value. The SellableProduct class defines the inventoriable item for this rate plan.

Parameters:
uniqueID -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. This is a reference placeholder, used as an index for this sellable product.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. This is a reference placeholder, used as an index for this sellable product.

Parameters:
RPH -

getInventoryGroup

public InventoryGroup getInventoryGroup()
Get the 'InventoryGroup' attributeGroup value.

Returns:
value

setInventoryGroup

public void setInventoryGroup(InventoryGroup inventoryGroup)
Set the 'InventoryGroup' attributeGroup value.

Parameters:
inventoryGroup -

getInvNotif

public SellableProducts.SellableProduct.InvNotif getInvNotif()
Get the 'InvNotifType' attribute value. An enumerated type that indicates whether this is a new inventory item or an update of an existing inventory item. Values: New, Delta modification, Full overlay modification.

Returns:
value

setInvNotif

public void setInvNotif(SellableProducts.SellableProduct.InvNotif invNotif)
Set the 'InvNotifType' attribute value. An enumerated type that indicates whether this is a new inventory item or an update of an existing inventory item. Values: New, Delta modification, Full overlay modification.

Parameters:
invNotif -

getInvStatus

public SellableProducts.SellableProduct.InvStatus getInvStatus()
Get the 'InvStatusType' attribute value. An enumerated type that indicates the status of the inventory item, ie: whether this notification is an initial announcement of a new inventory item, an update of an active (bookable) inventory item, or a notification of an inventory item that is no longer in effect. Values: Initial, Active, Deactivated.

Returns:
value

setInvStatus

public void setInvStatus(SellableProducts.SellableProduct.InvStatus invStatus)
Set the 'InvStatusType' attribute value. An enumerated type that indicates the status of the inventory item, ie: whether this notification is an initial announcement of a new inventory item, an update of an active (bookable) inventory item, or a notification of an inventory item that is no longer in effect. Values: Initial, Active, Deactivated.

Parameters:
invStatus -

getInvGroupingCode

public java.lang.String getInvGroupingCode()
Get the 'InvGroupingCode' attribute value. The identification of the inventory grouping. Whether to use the sending/querying or the receiving/responding system's identification depends on which system is doing the translating.

Returns:
value

setInvGroupingCode

public void setInvGroupingCode(java.lang.String invGroupingCode)
Set the 'InvGroupingCode' attribute value. The identification of the inventory grouping. Whether to use the sending/querying or the receiving/responding system's identification depends on which system is doing the translating.

Parameters:
invGroupingCode -

getOrderSequence

public java.lang.Integer getOrderSequence()
Get the 'OrderSequence' attribute value. The order which the items should be acknowledged by the receiving entity.

Returns:
value

setOrderSequence

public void setOrderSequence(java.lang.Integer orderSequence)
Set the 'OrderSequence' attribute value. The order which the items should be acknowledged by the receiving entity.

Parameters:
orderSequence -

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. Defines the sellable date range for this product.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. Defines the sellable date range for this product.

Parameters:
dateTimeSpanGroup -