org.ota.pkg
Class AvailRQ

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

public class AvailRQ
extends java.lang.Object

A request for availability of a specific package. 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_PkgAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="PackageRequest">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:DateTimeSpanType" name="DateRange" minOccurs="0"/>
             <xs:element name="Routing" minOccurs="0" maxOccurs="2">
               <!-- Reference to inner class Routing -->
             </xs:element>
           </xs:sequence>
           <xs:attributeGroup ref="ns:ID_OptionalGroup"/>
           <xs:attribute type="xs:string" use="optional" name="Type"/>
           <xs:attribute type="xs:string" use="optional" name="TravelCode"/>
           <xs:attribute type="xs:string" use="optional" name="TourCode"/>
           <xs:attribute type="xs:string" use="optional" name="ShortDescription"/>
           <xs:attribute type="xs:string" use="optional" name="BoardCode"/>
           <xs:attribute type="xs:string" use="optional" name="PromotionCode"/>
           <xs:attribute type="xs:string" use="optional" name="BrandCode"/>
           <xs:attribute type="xs:string" use="optional" name="ProductCode"/>
           <xs:attribute type="xs:int" use="optional" name="FreeChildQuantity"/>
           <xs:attribute type="ns:CabinType" use="optional" name="CabinType"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:CustomerCountsType" name="CustomerCounts" minOccurs="0"/>
       <xs:element type="ns:URL_Type" name="URL" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ID_OptionalGroup">
   <xs:attribute type="xs:string" use="optional" name="ID"/>
 </xs:attributeGroup>
 
 <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"/>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class AvailRQ.Routing
          The departure and arrival points for outward and/or return travel.
 
Constructor Summary
AvailRQ()
           
 
Method Summary
 void addRouting(AvailRQ.Routing item)
          Add a 'Routing' element item.
 void clearRoutings()
          Remove all 'Routing' element items.
 CustomerCounts getCustomerCounts()
          Get the 'CustomerCounts' element value.
 java.lang.String getMaxResponses()
          Get the 'MaxResponses' attribute value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 java.lang.String getPackageRequestBoardCode()
          Get the 'BoardCode' attribute value.
 java.lang.String getPackageRequestBrandCode()
          Get the 'BrandCode' attribute value.
 Cabin getPackageRequestCabin()
          Get the 'CabinType' attribute value.
 DateTimeSpan getPackageRequestDateRange()
          Get the 'DateRange' element value.
 java.lang.Integer getPackageRequestFreeChildQuantity()
          Get the 'FreeChildQuantity' attribute value.
 java.lang.String getPackageRequestID()
          Get the 'ID' attribute value.
 java.lang.String getPackageRequestProductCode()
          Get the 'ProductCode' attribute value.
 java.lang.String getPackageRequestPromotionCode()
          Get the 'PromotionCode' attribute value.
 java.lang.String getPackageRequestShortDescription()
          Get the 'ShortDescription' attribute value.
 java.lang.String getPackageRequestTourCode()
          Get the 'TourCode' attribute value.
 java.lang.String getPackageRequestTravelCode()
          Get the 'TravelCode' attribute value.
 java.lang.String getPackageRequestType()
          Get the 'Type' attribute value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.String getReqRespVersion()
          Get the 'ReqRespVersion' attribute value.
 AvailRQ.Routing getRouting(int index)
          Get 'Routing' element item by position.
 java.util.List<AvailRQ.Routing> getRoutings()
          Get the list of 'Routing' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 URL getURL()
          Get the 'URL' element value.
 void setCustomerCounts(CustomerCounts customerCounts)
          Set the 'CustomerCounts' element value.
 void setMaxResponses(java.lang.String maxResponses)
          Set the 'MaxResponses' attribute value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPackageRequestBoardCode(java.lang.String packageRequestBoardCode)
          Set the 'BoardCode' attribute value.
 void setPackageRequestBrandCode(java.lang.String packageRequestBrandCode)
          Set the 'BrandCode' attribute value.
 void setPackageRequestCabin(Cabin packageRequestCabin)
          Set the 'CabinType' attribute value.
 void setPackageRequestDateRange(DateTimeSpan packageRequestDateRange)
          Set the 'DateRange' element value.
 void setPackageRequestFreeChildQuantity(java.lang.Integer packageRequestFreeChildQuantity)
          Set the 'FreeChildQuantity' attribute value.
 void setPackageRequestID(java.lang.String packageRequestID)
          Set the 'ID' attribute value.
 void setPackageRequestProductCode(java.lang.String packageRequestProductCode)
          Set the 'ProductCode' attribute value.
 void setPackageRequestPromotionCode(java.lang.String packageRequestPromotionCode)
          Set the 'PromotionCode' attribute value.
 void setPackageRequestShortDescription(java.lang.String packageRequestShortDescription)
          Set the 'ShortDescription' attribute value.
 void setPackageRequestTourCode(java.lang.String packageRequestTourCode)
          Set the 'TourCode' attribute value.
 void setPackageRequestTravelCode(java.lang.String packageRequestTravelCode)
          Set the 'TravelCode' attribute value.
 void setPackageRequestType(java.lang.String packageRequestType)
          Set the 'Type' attribute value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReqRespVersion(java.lang.String reqRespVersion)
          Set the 'ReqRespVersion' attribute value.
 void setRoutings(java.util.List<AvailRQ.Routing> list)
          Set the list of 'Routing' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setURL(URL URL)
          Set the 'URL' element value.
 int sizeRoutings()
          Get the number of 'Routing' 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 -

getPackageRequestDateRange

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

Returns:
value

setPackageRequestDateRange

public void setPackageRequestDateRange(DateTimeSpan packageRequestDateRange)
Set the 'DateRange' element value. The Start date and Duration or End Date of the package.

Parameters:
packageRequestDateRange -

getRoutings

public java.util.List<AvailRQ.Routing> getRoutings()
Get the list of 'Routing' element items. Information identifying the package for which availability is being requested

Returns:
list

setRoutings

public void setRoutings(java.util.List<AvailRQ.Routing> list)
Set the list of 'Routing' element items. Information identifying the package for which availability is being requested

Parameters:
list -

sizeRoutings

public int sizeRoutings()
Get the number of 'Routing' element items.

Returns:
count

addRouting

public void addRouting(AvailRQ.Routing item)
Add a 'Routing' element item.

Parameters:
item -

getRouting

public AvailRQ.Routing getRouting(int index)
Get 'Routing' element item by position.

Parameters:
index -
Returns:
item

clearRoutings

public void clearRoutings()
Remove all 'Routing' element items.


getPackageRequestID

public java.lang.String getPackageRequestID()
Get the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Returns:
value

setPackageRequestID

public void setPackageRequestID(java.lang.String packageRequestID)
Set the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Parameters:
packageRequestID -

getPackageRequestType

public java.lang.String getPackageRequestType()
Get the 'Type' attribute value. The type of package e.g. 4 I(Air Inclusive), 3 (Flight-only) etc. Refer to OpenTravel Code List Package Type (PKG).

Returns:
value

setPackageRequestType

public void setPackageRequestType(java.lang.String packageRequestType)
Set the 'Type' attribute value. The type of package e.g. 4 I(Air Inclusive), 3 (Flight-only) etc. Refer to OpenTravel Code List Package Type (PKG).

Parameters:
packageRequestType -

getPackageRequestTravelCode

public java.lang.String getPackageRequestTravelCode()
Get the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for a package

Returns:
value

setPackageRequestTravelCode

public void setPackageRequestTravelCode(java.lang.String packageRequestTravelCode)
Set the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for a package

Parameters:
packageRequestTravelCode -

getPackageRequestTourCode

public java.lang.String getPackageRequestTourCode()
Get the 'TourCode' attribute value. The supplier's code to identify the accommodation/tour arrangement for a package

Returns:
value

setPackageRequestTourCode

public void setPackageRequestTourCode(java.lang.String packageRequestTourCode)
Set the 'TourCode' attribute value. The supplier's code to identify the accommodation/tour arrangement for a package

Parameters:
packageRequestTourCode -

getPackageRequestShortDescription

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

Returns:
value

setPackageRequestShortDescription

public void setPackageRequestShortDescription(java.lang.String packageRequestShortDescription)
Set the 'ShortDescription' attribute value. A short description of a holiday package.

Parameters:
packageRequestShortDescription -

getPackageRequestBoardCode

public java.lang.String getPackageRequestBoardCode()
Get the 'BoardCode' attribute value. The code for a meal plan e.g. AB- as brochure, AI- all inclusive, BB- bed and breakfast, FB- full board, HB- Half Board, RO- room only,SC- self catering

Returns:
value

setPackageRequestBoardCode

public void setPackageRequestBoardCode(java.lang.String packageRequestBoardCode)
Set the 'BoardCode' attribute value. The code for a meal plan e.g. AB- as brochure, AI- all inclusive, BB- bed and breakfast, FB- full board, HB- Half Board, RO- room only,SC- self catering

Parameters:
packageRequestBoardCode -

getPackageRequestPromotionCode

public java.lang.String getPackageRequestPromotionCode()
Get the 'PromotionCode' attribute value. A code to request a specific promotional price.

Returns:
value

setPackageRequestPromotionCode

public void setPackageRequestPromotionCode(java.lang.String packageRequestPromotionCode)
Set the 'PromotionCode' attribute value. A code to request a specific promotional price.

Parameters:
packageRequestPromotionCode -

getPackageRequestBrandCode

public java.lang.String getPackageRequestBrandCode()
Get the 'BrandCode' attribute value. The code for the tour operator's product brand e.g. Thomascook, JMC, Sunset etc.

Returns:
value

setPackageRequestBrandCode

public void setPackageRequestBrandCode(java.lang.String packageRequestBrandCode)
Set the 'BrandCode' attribute value. The code for the tour operator's product brand e.g. Thomascook, JMC, Sunset etc.

Parameters:
packageRequestBrandCode -

getPackageRequestProductCode

public java.lang.String getPackageRequestProductCode()
Get the 'ProductCode' attribute value. The tour operator's code for the product within the brand e.g. Summersun, Greece etc.

Returns:
value

setPackageRequestProductCode

public void setPackageRequestProductCode(java.lang.String packageRequestProductCode)
Set the 'ProductCode' attribute value. The tour operator's code for the product within the brand e.g. Summersun, Greece etc.

Parameters:
packageRequestProductCode -

getPackageRequestFreeChildQuantity

public java.lang.Integer getPackageRequestFreeChildQuantity()
Get the 'FreeChildQuantity' attribute value. Number of Free Children requested.

Returns:
value

setPackageRequestFreeChildQuantity

public void setPackageRequestFreeChildQuantity(java.lang.Integer packageRequestFreeChildQuantity)
Set the 'FreeChildQuantity' attribute value. Number of Free Children requested.

Parameters:
packageRequestFreeChildQuantity -

getPackageRequestCabin

public Cabin getPackageRequestCabin()
Get the 'CabinType' attribute value. The flight cabin/class required.

Returns:
value

setPackageRequestCabin

public void setPackageRequestCabin(Cabin packageRequestCabin)
Set the 'CabinType' attribute value. The flight cabin/class required.

Parameters:
packageRequestCabin -

getCustomerCounts

public CustomerCounts getCustomerCounts()
Get the 'CustomerCounts' element value. Categorization of all Customers in a reservation or request

Returns:
value

setCustomerCounts

public void setCustomerCounts(CustomerCounts customerCounts)
Set the 'CustomerCounts' element value. Categorization of all Customers in a reservation or request

Parameters:
customerCounts -

getURL

public URL getURL()
Get the 'URL' element value. An alternative method of identifying the full tour package.

Returns:
value

setURL

public void setURL(URL URL)
Set the 'URL' element value. An alternative method of identifying the full tour package.

Parameters:
URL -

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 -

getReqRespVersion

public java.lang.String getReqRespVersion()
Get the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Returns:
value

setReqRespVersion

public void setReqRespVersion(java.lang.String reqRespVersion)
Set the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Parameters:
reqRespVersion -

getMaxResponses

public java.lang.String getMaxResponses()
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Returns:
value

setMaxResponses

public void setMaxResponses(java.lang.String maxResponses)
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses -