org.ota.tour
Class AvailRQ

java.lang.Object
  extended by org.ota.tour.AvailRQ

public class AvailRQ
extends java.lang.Object

A request for availability of a specific tour. 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_TourAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="Tour">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:DateTimeSpanType" name="DateRange" minOccurs="0"/>
           </xs:sequence>
           <xs:attribute type="xs:string" use="optional" name="ShortName"/>
           <xs:attribute type="xs:string" use="optional" name="ID"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="CustomerCount" minOccurs="0" maxOccurs="6">
         <xs:complexType>
           <xs:attributeGroup ref="ns:TravelerCountGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <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"/>
 


Constructor Summary
AvailRQ()
           
 
Method Summary
 void addCustomerCount(TravelerCountGroup item)
          Add a 'CustomerCount' element item.
 void clearCustomerCounts()
          Remove all 'CustomerCount' element items.
 TravelerCountGroup getCustomerCount(int index)
          Get 'CustomerCount' element item by position.
 java.util.List<TravelerCountGroup> getCustomerCounts()
          Get the list of 'CustomerCount' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 DateTimeSpan getTourDateRange()
          Get the 'DateRange' element value.
 java.lang.String getTourID()
          Get the 'ID' attribute value.
 java.lang.String getTourShortName()
          Get the 'ShortName' attribute value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setCustomerCounts(java.util.List<TravelerCountGroup> list)
          Set the list of 'CustomerCount' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setTourDateRange(DateTimeSpan tourDateRange)
          Set the 'DateRange' element value.
 void setTourID(java.lang.String tourID)
          Set the 'ID' attribute value.
 void setTourShortName(java.lang.String tourShortName)
          Set the 'ShortName' attribute value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeCustomerCounts()
          Get the number of 'CustomerCount' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRQ

public AvailRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object

Parameters:
POS -

getTourDateRange

public DateTimeSpan getTourDateRange()
Get the 'DateRange' element value. The Start date and Duration or End Date of the tour.

Returns:
value

setTourDateRange

public void setTourDateRange(DateTimeSpan tourDateRange)
Set the 'DateRange' element value. The Start date and Duration or End Date of the tour.

Parameters:
tourDateRange -

getTourShortName

public java.lang.String getTourShortName()
Get the 'ShortName' attribute value. A short description of a holiday package.

Returns:
value

setTourShortName

public void setTourShortName(java.lang.String tourShortName)
Set the 'ShortName' attribute value. A short description of a holiday package.

Parameters:
tourShortName -

getTourID

public java.lang.String getTourID()
Get the 'ID' attribute value. The unique identifier of a tour.

Returns:
value

setTourID

public void setTourID(java.lang.String tourID)
Set the 'ID' attribute value. The unique identifier of a tour.

Parameters:
tourID -

getCustomerCounts

public java.util.List<TravelerCountGroup> getCustomerCounts()
Get the list of 'CustomerCount' element items. Specifies the number of customers and optionally the customer type.

Returns:
list

setCustomerCounts

public void setCustomerCounts(java.util.List<TravelerCountGroup> list)
Set the list of 'CustomerCount' element items. Specifies the number of customers and optionally the customer type.

Parameters:
list -

sizeCustomerCounts

public int sizeCustomerCounts()
Get the number of 'CustomerCount' element items.

Returns:
count

addCustomerCount

public void addCustomerCount(TravelerCountGroup item)
Add a 'CustomerCount' element item.

Parameters:
item -

getCustomerCount

public TravelerCountGroup getCustomerCount(int index)
Get 'CustomerCount' element item by position.

Parameters:
index -
Returns:
item

clearCustomerCounts

public void clearCustomerCounts()
Remove all 'CustomerCount' 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 -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -