org.ota.pkg
Class PackageResponse

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

public class PackageResponse
extends java.lang.Object

Defines a complete package holiday response. 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="PackageResponseType">
   <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:element name="Cautions" minOccurs="0">
       <!-- Reference to inner class Cautions -->
     </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: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 PackageResponse.Cautions
          A collection of items of essential information relating to components of a package itinerary.
static class PackageResponse.Extras
          A collection of requested/booked Extras.
static class PackageResponse.ItineraryItems
          A collection of elements to allow any item of inventory to be requested for a booking.
 
Constructor Summary
PackageResponse()
           
 
Method Summary
 java.lang.String getBoardCode()
          Get the 'BoardCode' attribute value.
 java.lang.String getBrandCode()
          Get the 'BrandCode' attribute value.
 PackageResponse.Cautions getCautions()
          Get the 'Cautions' element value.
 CompanyName getCompanyName()
          Get the 'CompanyName' element value.
 DateTimeSpanGroup getDateRange()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 PackageResponse.Extras getExtras()
          Get the 'Extras' element value.
 java.lang.String getID()
          Get the 'ID' attribute value.
 PackageResponse.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 setCautions(PackageResponse.Cautions cautions)
          Set the 'Cautions' element value.
 void setCompanyName(CompanyName companyName)
          Set the 'CompanyName' element value.
 void setDateRange(DateTimeSpanGroup dateRange)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setExtras(PackageResponse.Extras extras)
          Set the 'Extras' element value.
 void setID(java.lang.String ID)
          Set the 'ID' attribute value.
 void setItineraryItems(PackageResponse.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

PackageResponse

public PackageResponse()
Method Detail

getURL

public URL getURL()
Get the 'URL' element value. A link to details of a package.

Returns:
value

setURL

public void setURL(URL URL)
Set the 'URL' element value. A link to details of a package.

Parameters:
URL -

getCompanyName

public CompanyName getCompanyName()
Get the 'CompanyName' element value. Details of the company offering the package.

Returns:
value

setCompanyName

public void setCompanyName(CompanyName companyName)
Set the 'CompanyName' element value. Details of the company offering 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 PackageResponse.ItineraryItems getItineraryItems()
Get the 'ItineraryItems' element value.

Returns:
value

setItineraryItems

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

Parameters:
itineraryItems -

getExtras

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

Returns:
value

setExtras

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

Parameters:
extras -

getCautions

public PackageResponse.Cautions getCautions()
Get the 'Cautions' element value.

Returns:
value

setCautions

public void setCautions(PackageResponse.Cautions cautions)
Set the 'Cautions' element value.

Parameters:
cautions -

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. The type of package e.g. Flight-only, Air-Inclusive. Refer to OpenTravel Code List Package Type (PKG).

Returns:
value

setType

public void setType(java.lang.String type)
Set the 'Type' attribute value. The type of package e.g. Flight-only, Air-Inclusive. 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 -

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 -