org.ota.hotel
Class InvCount

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

public class InvCount
extends java.lang.Object

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="InvCountType">
   <xs:sequence>
     <xs:element type="ns:BaseInvCountType" name="Inventory" maxOccurs="unbounded">
       <!-- Reference to inner class Inventory -->
     </xs:element>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
 </xs:complexType>
 


Nested Class Summary
static class InvCount.Inventory
          This is the inventory information for a given rate plan, room type, date, etc.
 
Constructor Summary
InvCount()
           
 
Method Summary
 void addInventory(InvCount.Inventory item)
          Add a 'Inventory' element item.
 void clearInventories()
          Remove all 'Inventory' element items.
 HotelReferenceGroup getHotelReferenceGroup()
          Get the 'HotelReferenceGroup' attributeGroup value.
 java.util.List<InvCount.Inventory> getInventories()
          Get the list of 'Inventory' element items.
 InvCount.Inventory getInventory(int index)
          Get 'Inventory' element item by position.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 void setHotelReferenceGroup(HotelReferenceGroup hotelReferenceGroup)
          Set the 'HotelReferenceGroup' attributeGroup value.
 void setInventories(java.util.List<InvCount.Inventory> list)
          Set the list of 'Inventory' element items.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 int sizeInventories()
          Get the number of 'Inventory' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvCount

public InvCount()
Method Detail

getInventories

public java.util.List<InvCount.Inventory> getInventories()
Get the list of 'Inventory' element items.

Returns:
list

setInventories

public void setInventories(java.util.List<InvCount.Inventory> list)
Set the list of 'Inventory' element items.

Parameters:
list -

sizeInventories

public int sizeInventories()
Get the number of 'Inventory' element items.

Returns:
count

addInventory

public void addInventory(InvCount.Inventory item)
Add a 'Inventory' element item.

Parameters:
item -

getInventory

public InvCount.Inventory getInventory(int index)
Get 'Inventory' element item by position.

Parameters:
index -
Returns:
item

clearInventories

public void clearInventories()
Remove all 'Inventory' element items.


getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value. The unique identifier element allows the trading partners to uniquely identify each Inventory Count Message, for transaction tracability.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value. The unique identifier element allows the trading partners to uniquely identify each Inventory Count Message, for transaction tracability.

Parameters:
uniqueID -

getHotelReferenceGroup

public HotelReferenceGroup getHotelReferenceGroup()
Get the 'HotelReferenceGroup' attributeGroup value.

Returns:
value

setHotelReferenceGroup

public void setHotelReferenceGroup(HotelReferenceGroup hotelReferenceGroup)
Set the 'HotelReferenceGroup' attributeGroup value.

Parameters:
hotelReferenceGroup -