org.ota.pkg
Class AvailRS._package

java.lang.Object
  extended by org.ota.pkg.AvailRS._package
Enclosing class:
AvailRS

public static class AvailRS._package
extends java.lang.Object

Details of the requested 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="Package" minOccurs="0">
   <xs:complexType>
     <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="PriceInfo" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class PriceInfo -->
       </xs:element>
       <xs:element name="ItineraryItems" minOccurs="0">
         <!-- Reference to inner class ItineraryItems -->
       </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="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:boolean" use="optional" name="ExtrasInd"/>
   </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>
 


Nested Class Summary
static class AvailRS._package.Cautions
          A collection of items of essential information relating to components of a package itinerary.
static class AvailRS._package.ItineraryItems
          A collection of elements to allow any item of inventory to be requested for a package.
static class AvailRS._package.PriceInfo
          Contains a guide price for the package and the occupancy level to which it applies.
 
Constructor Summary
AvailRS._package()
           
 
Method Summary
 void addPriceInfo(AvailRS._package.PriceInfo item)
          Add a 'PriceInfo' element item.
 void clearPriceInfos()
          Remove all 'PriceInfo' element items.
 java.lang.String getBoardCode()
          Get the 'BoardCode' attribute value.
 java.lang.String getBrandCode()
          Get the 'BrandCode' attribute value.
 AvailRS._package.Cautions getCautions()
          Get the 'Cautions' element value.
 CompanyName getCompanyName()
          Get the 'CompanyName' element value.
 DateTimeSpanGroup getDateRange()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 java.lang.Boolean getExtrasInd()
          Get the 'ExtrasInd' attribute value.
 java.lang.String getID()
          Get the 'ID' attribute value.
 AvailRS._package.ItineraryItems getItineraryItems()
          Get the 'ItineraryItems' element value.
 AvailRS._package.PriceInfo getPriceInfo(int index)
          Get 'PriceInfo' element item by position.
 java.util.List<AvailRS._package.PriceInfo> getPriceInfos()
          Get the list of 'PriceInfo' element items.
 java.lang.String getProductCode()
          Get the 'ProductCode' attribute value.
 java.lang.String getPromotionCode()
          Get the 'PromotionCode' attribute value.
 java.lang.String getShortDescription()
          Get the 'ShortDescription' 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(AvailRS._package.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 setExtrasInd(java.lang.Boolean extrasInd)
          Set the 'ExtrasInd' attribute value.
 void setID(java.lang.String ID)
          Set the 'ID' attribute value.
 void setItineraryItems(AvailRS._package.ItineraryItems itineraryItems)
          Set the 'ItineraryItems' element value.
 void setPriceInfos(java.util.List<AvailRS._package.PriceInfo> list)
          Set the list of 'PriceInfo' element items.
 void setProductCode(java.lang.String productCode)
          Set the 'ProductCode' attribute value.
 void setPromotionCode(java.lang.String promotionCode)
          Set the 'PromotionCode' attribute value.
 void setShortDescription(java.lang.String shortDescription)
          Set the 'ShortDescription' 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.
 int sizePriceInfos()
          Get the number of 'PriceInfo' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS._package

public AvailRS._package()
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. Identifies the company supplying the package

Returns:
value

setCompanyName

public void setCompanyName(CompanyName companyName)
Set the 'CompanyName' element value. Identifies 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 -

getPriceInfos

public java.util.List<AvailRS._package.PriceInfo> getPriceInfos()
Get the list of 'PriceInfo' element items.

Returns:
list

setPriceInfos

public void setPriceInfos(java.util.List<AvailRS._package.PriceInfo> list)
Set the list of 'PriceInfo' element items.

Parameters:
list -

sizePriceInfos

public int sizePriceInfos()
Get the number of 'PriceInfo' element items.

Returns:
count

addPriceInfo

public void addPriceInfo(AvailRS._package.PriceInfo item)
Add a 'PriceInfo' element item.

Parameters:
item -

getPriceInfo

public AvailRS._package.PriceInfo getPriceInfo(int index)
Get 'PriceInfo' element item by position.

Parameters:
index -
Returns:
item

clearPriceInfos

public void clearPriceInfos()
Remove all 'PriceInfo' element items.


getItineraryItems

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

Returns:
value

setItineraryItems

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

Parameters:
itineraryItems -

getCautions

public AvailRS._package.Cautions getCautions()
Get the 'Cautions' element value.

Returns:
value

setCautions

public void setCautions(AvailRS._package.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. 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.

Returns:
value

setTravelCode

public void setTravelCode(java.lang.String travelCode)
Set the 'TravelCode' attribute value.

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 -

getShortDescription

public java.lang.String getShortDescription()
Get the 'ShortDescription' attribute value.

Returns:
value

setShortDescription

public void setShortDescription(java.lang.String shortDescription)
Set the 'ShortDescription' attribute value.

Parameters:
shortDescription -

getBoardCode

public java.lang.String getBoardCode()
Get the 'BoardCode' attribute value.

Returns:
value

setBoardCode

public void setBoardCode(java.lang.String boardCode)
Set the 'BoardCode' attribute value.

Parameters:
boardCode -

getPromotionCode

public java.lang.String getPromotionCode()
Get the 'PromotionCode' attribute value.

Returns:
value

setPromotionCode

public void setPromotionCode(java.lang.String promotionCode)
Set the 'PromotionCode' attribute value.

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 etc.

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 etc.

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 etc.

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 etc.

Parameters:
productCode -

getExtrasInd

public java.lang.Boolean getExtrasInd()
Get the 'ExtrasInd' attribute value. When 'true', Extras are available with this package; when 'false', no Extras are available.

Returns:
value

setExtrasInd

public void setExtrasInd(java.lang.Boolean extrasInd)
Set the 'ExtrasInd' attribute value. When 'true', Extras are available with this package; when 'false', no Extras are available.

Parameters:
extrasInd -