org.ota.pkg
Class _package

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

public class _package
extends java.lang.Object

Defines a complete package holiday request. 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="PackageType">
   <xs:sequence>
     <xs:element type="ns:URL_Type" name="URL" minOccurs="0"/>
     <xs:element type="ns:CompanyNameType" name="CompanyName" minOccurs="0"/>
     <xs:element name="DateRange" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ItineraryItems" minOccurs="0">
       <!-- Reference to inner class ItineraryItems -->
     </xs:element>
     <xs:element name="Extras" minOccurs="0">
       <!-- Reference to inner class Extras -->
     </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="BoardCode"/>
   <xs:attribute type="xs:string" use="optional" name="PromotionCode"/>
   <xs:attribute type="xs:int" use="optional" name="FreeChildrenQuantity"/>
   <xs:attribute type="xs:string" use="optional" name="BrandCode"/>
   <xs:attribute type="xs:string" use="optional" name="ProductCode"/>
 </xs:complexType>
 
 <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>
 


Nested Class Summary
static class _package.Extras
          A collection of Extras requests.
static class _package.ItineraryItems
          A collection of elements to allow any item of inventory to be requested for a booking.
 
Constructor Summary
_package()
           
 
Method Summary
 java.lang.String getBoardCode()
          Get the 'BoardCode' attribute value.
 java.lang.String getBrandCode()
          Get the 'BrandCode' attribute value.
 CompanyName getCompanyName()
          Get the 'CompanyName' element value.
 DateTimeSpanGroup getDateRange()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 _package.Extras getExtras()
          Get the 'Extras' element value.
 java.lang.Integer getFreeChildrenQuantity()
          Get the 'FreeChildrenQuantity' attribute value.
 java.lang.String getID()
          Get the 'ID' attribute value.
 _package.ItineraryItems getItineraryItems()
          Get the 'ItineraryItems' element value.
 java.lang.String getProductCode()
          Get the 'ProductCode' attribute value.
 java.lang.String getPromotionCode()
          Get the 'PromotionCode' attribute value.
 java.lang.String getTourCode()
          Get the 'TourCode' attribute value.
 java.lang.String getTravelCode()
          Get the 'TravelCode' attribute value.
 java.lang.String getType()
          Get the 'Type' attribute value.
 URL getURL()
          Get the 'URL' element value.
 void setBoardCode(java.lang.String boardCode)
          Set the 'BoardCode' attribute value.
 void setBrandCode(java.lang.String brandCode)
          Set the 'BrandCode' attribute value.
 void setCompanyName(CompanyName companyName)
          Set the 'CompanyName' element value.
 void setDateRange(DateTimeSpanGroup dateRange)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setExtras(_package.Extras extras)
          Set the 'Extras' element value.
 void setFreeChildrenQuantity(java.lang.Integer freeChildrenQuantity)
          Set the 'FreeChildrenQuantity' attribute value.
 void setID(java.lang.String ID)
          Set the 'ID' attribute value.
 void setItineraryItems(_package.ItineraryItems itineraryItems)
          Set the 'ItineraryItems' element value.
 void setProductCode(java.lang.String productCode)
          Set the 'ProductCode' attribute value.
 void setPromotionCode(java.lang.String promotionCode)
          Set the 'PromotionCode' attribute value.
 void setTourCode(java.lang.String tourCode)
          Set the 'TourCode' attribute value.
 void setTravelCode(java.lang.String travelCode)
          Set the 'TravelCode' attribute value.
 void setType(java.lang.String type)
          Set the 'Type' attribute value.
 void setURL(URL URL)
          Set the 'URL' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

_package

public _package()
Method Detail

getURL

public URL getURL()
Get the 'URL' element value. A reference to a source of information for the package.

Returns:
value

setURL

public void setURL(URL URL)
Set the 'URL' element value. A reference to a source of information for the package.

Parameters:
URL -

getCompanyName

public CompanyName getCompanyName()
Get the 'CompanyName' element value. The company supplying the package.

Returns:
value

setCompanyName

public void setCompanyName(CompanyName companyName)
Set the 'CompanyName' element value. The company supplying the package.

Parameters:
companyName -

getDateRange

public DateTimeSpanGroup getDateRange()
Get the 'DateTimeSpanGroup' attributeGroup value. The Start date and Duration or End Date of the package.

Returns:
value

setDateRange

public void setDateRange(DateTimeSpanGroup dateRange)
Set the 'DateTimeSpanGroup' attributeGroup value. The Start date and Duration or End Date of the package.

Parameters:
dateRange -

getItineraryItems

public _package.ItineraryItems getItineraryItems()
Get the 'ItineraryItems' element value.

Returns:
value

setItineraryItems

public void setItineraryItems(_package.ItineraryItems itineraryItems)
Set the 'ItineraryItems' element value.

Parameters:
itineraryItems -

getExtras

public _package.Extras getExtras()
Get the 'Extras' element value.

Returns:
value

setExtras

public void setExtras(_package.Extras extras)
Set the 'Extras' element value.

Parameters:
extras -

getID

public java.lang.String getID()
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

setID

public void setID(java.lang.String ID)
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:
ID -

getType

public java.lang.String getType()
Get the 'Type' attribute value. Refer to OpenTravel Code List Package Type (PKG).

Returns:
value

setType

public void setType(java.lang.String type)
Set the 'Type' attribute value. Refer to OpenTravel Code List Package Type (PKG).

Parameters:
type -

getTravelCode

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

Returns:
value

setTravelCode

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

Parameters:
travelCode -

getTourCode

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

Returns:
value

setTourCode

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

Parameters:
tourCode -

getBoardCode

public java.lang.String getBoardCode()
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

setBoardCode

public void setBoardCode(java.lang.String boardCode)
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:
boardCode -

getPromotionCode

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

Returns:
value

setPromotionCode

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

Parameters:
promotionCode -

getFreeChildrenQuantity

public java.lang.Integer getFreeChildrenQuantity()
Get the 'FreeChildrenQuantity' attribute value. The number of free child places required.

Returns:
value

setFreeChildrenQuantity

public void setFreeChildrenQuantity(java.lang.Integer freeChildrenQuantity)
Set the 'FreeChildrenQuantity' attribute value. The number of free child places required.

Parameters:
freeChildrenQuantity -

getBrandCode

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

Returns:
value

setBrandCode

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

Parameters:
brandCode -

getProductCode

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

Returns:
value

setProductCode

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

Parameters:
productCode -