org.ota.tour
Class TourInformation

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

public class TourInformation
extends java.lang.Object

The TourDescriptiveContent element contains the descriptive information about a tour. 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="TourInformationType">
   <xs:sequence>
     <xs:element name="TourName">
       <xs:complexType>
         <xs:simpleContent>
           <xs:extension base="xs:string">
             <xs:attribute type="xs:string" use="optional" name="ShortName"/>
             <xs:attribute type="xs:string" use="optional" name="ID"/>
           </xs:extension>
         </xs:simpleContent>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:MultimediaDescriptionsType" name="MultimediaDescriptions" minOccurs="0"/>
     <xs:element name="Destination" minOccurs="0" maxOccurs="9">
       <!-- Reference to inner class Destination -->
     </xs:element>
     <xs:element name="Category" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Category -->
     </xs:element>
     <xs:element name="Keywords" minOccurs="0">
       <!-- Reference to inner class Keywords -->
     </xs:element>
     <xs:element type="ns:FeeType" name="Charge" minOccurs="0"/>
     <xs:element name="Duration" minOccurs="0">
       <!-- Reference to inner class Duration -->
     </xs:element>
     <xs:element name="Departures" minOccurs="0">
       <!-- Reference to inner class Departures -->
     </xs:element>
     <xs:element name="PolicyInfo" minOccurs="0">
       <!-- Reference to inner class PolicyInfo -->
     </xs:element>
     <xs:element type="ns:ContactInfoType" name="SupplierInfo" minOccurs="0"/>
     <xs:element name="Language" minOccurs="0" maxOccurs="9">
       <!-- Reference to inner class Language -->
     </xs:element>
     <xs:element type="ns:URLsType" name="URLs" minOccurs="0" maxOccurs="5"/>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="LanguageCode"/>
   <xs:attribute type="xs:string" use="optional" name="TimeZone"/>
   <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
   <xs:attributeGroup ref="ns:DateTimeStampGroup"/>
 </xs:complexType>
 
 <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"/>
 


Nested Class Summary
static class TourInformation.Category
          Provides information on a specific aspect of a tour.
static class TourInformation.Departures
          A collection of departure dates and times.
static class TourInformation.Destination
          Identifies the location of the tour.
static class TourInformation.Duration
          Provides the duration for the tour.
static class TourInformation.Keywords
          A collection of keywords relevant to search for tours.
static class TourInformation.Language
          Languages spoken by the tour staff.
static class TourInformation.PolicyInfo
          Policy information pertaining to the tour.
 
Constructor Summary
TourInformation()
           
 
Method Summary
 void addCategory(TourInformation.Category item)
          Add a 'Category' element item.
 void addDestination(TourInformation.Destination item)
          Add a 'Destination' element item.
 void addLanguage(TourInformation.Language item)
          Add a 'Language' element item.
 void addURL(URLs item)
          Add a 'URLs' element item.
 void clearCategories()
          Remove all 'Category' element items.
 void clearDestinations()
          Remove all 'Destination' element items.
 void clearLanguages()
          Remove all 'Language' element items.
 void clearURLs()
          Remove all 'URLs' element items.
 java.util.List<TourInformation.Category> getCategories()
          Get the list of 'Category' element items.
 TourInformation.Category getCategory(int index)
          Get 'Category' element item by position.
 Fee getCharge()
          Get the 'Charge' element value.
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 DateTimeStampGroup getDateTimeStampGroup()
          Get the 'DateTimeStampGroup' attributeGroup value.
 TourInformation.Departures getDepartures()
          Get the 'Departures' element value.
 TourInformation.Destination getDestination(int index)
          Get 'Destination' element item by position.
 java.util.List<TourInformation.Destination> getDestinations()
          Get the list of 'Destination' element items.
 TourInformation.Duration getDuration()
          Get the 'Duration' element value.
 TourInformation.Keywords getKeywords()
          Get the 'Keywords' element value.
 TourInformation.Language getLanguage(int index)
          Get 'Language' element item by position.
 java.lang.String getLanguageCode()
          Get the 'LanguageCode' attribute value.
 java.util.List<TourInformation.Language> getLanguages()
          Get the list of 'Language' element items.
 MultimediaDescriptions getMultimediaDescriptions()
          Get the 'MultimediaDescriptions' element value.
 TourInformation.PolicyInfo getPolicyInfo()
          Get the 'PolicyInfo' element value.
 ContactInfo getSupplierInfo()
          Get the 'SupplierInfo' element value.
 java.lang.String getTimeZone()
          Get the 'TimeZone' attribute value.
 java.lang.String getTourNameID()
          Get the 'ID' attribute value.
 java.lang.String getTourNameShortName()
          Get the 'ShortName' attribute value.
 java.lang.String getTourNameString()
          Get the extension value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 URLs getURL(int index)
          Get 'URLs' element item by position.
 java.util.List<URLs> getURLs()
          Get the list of 'URLs' element items.
 void setCategories(java.util.List<TourInformation.Category> list)
          Set the list of 'Category' element items.
 void setCharge(Fee charge)
          Set the 'Charge' element value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
          Set the 'DateTimeStampGroup' attributeGroup value.
 void setDepartures(TourInformation.Departures departures)
          Set the 'Departures' element value.
 void setDestinations(java.util.List<TourInformation.Destination> list)
          Set the list of 'Destination' element items.
 void setDuration(TourInformation.Duration duration)
          Set the 'Duration' element value.
 void setKeywords(TourInformation.Keywords keywords)
          Set the 'Keywords' element value.
 void setLanguageCode(java.lang.String languageCode)
          Set the 'LanguageCode' attribute value.
 void setLanguages(java.util.List<TourInformation.Language> list)
          Set the list of 'Language' element items.
 void setMultimediaDescriptions(MultimediaDescriptions multimediaDescriptions)
          Set the 'MultimediaDescriptions' element value.
 void setPolicyInfo(TourInformation.PolicyInfo policyInfo)
          Set the 'PolicyInfo' element value.
 void setSupplierInfo(ContactInfo supplierInfo)
          Set the 'SupplierInfo' element value.
 void setTimeZone(java.lang.String timeZone)
          Set the 'TimeZone' attribute value.
 void setTourNameID(java.lang.String tourNameID)
          Set the 'ID' attribute value.
 void setTourNameShortName(java.lang.String tourNameShortName)
          Set the 'ShortName' attribute value.
 void setTourNameString(java.lang.String tourNameString)
          Set the extension value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setURLs(java.util.List<URLs> list)
          Set the list of 'URLs' element items.
 int sizeCategories()
          Get the number of 'Category' element items.
 int sizeDestinations()
          Get the number of 'Destination' element items.
 int sizeLanguages()
          Get the number of 'Language' element items.
 int sizeURLs()
          Get the number of 'URLs' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TourInformation

public TourInformation()
Method Detail

getTourNameString

public java.lang.String getTourNameString()
Get the extension value.

Returns:
value

setTourNameString

public void setTourNameString(java.lang.String tourNameString)
Set the extension value.

Parameters:
tourNameString -

getTourNameShortName

public java.lang.String getTourNameShortName()
Get the 'ShortName' attribute value. Abbreviated tour name.

Returns:
value

setTourNameShortName

public void setTourNameShortName(java.lang.String tourNameShortName)
Set the 'ShortName' attribute value. Abbreviated tour name.

Parameters:
tourNameShortName -

getTourNameID

public java.lang.String getTourNameID()
Get the 'ID' attribute value. Unique identifier of a tour.

Returns:
value

setTourNameID

public void setTourNameID(java.lang.String tourNameID)
Set the 'ID' attribute value. Unique identifier of a tour.

Parameters:
tourNameID -

getMultimediaDescriptions

public MultimediaDescriptions getMultimediaDescriptions()
Get the 'MultimediaDescriptions' element value. Descriptive and/or multi-media information about the tour.

Returns:
value

setMultimediaDescriptions

public void setMultimediaDescriptions(MultimediaDescriptions multimediaDescriptions)
Set the 'MultimediaDescriptions' element value. Descriptive and/or multi-media information about the tour.

Parameters:
multimediaDescriptions -

getDestinations

public java.util.List<TourInformation.Destination> getDestinations()
Get the list of 'Destination' element items.

Returns:
list

setDestinations

public void setDestinations(java.util.List<TourInformation.Destination> list)
Set the list of 'Destination' element items.

Parameters:
list -

sizeDestinations

public int sizeDestinations()
Get the number of 'Destination' element items.

Returns:
count

addDestination

public void addDestination(TourInformation.Destination item)
Add a 'Destination' element item.

Parameters:
item -

getDestination

public TourInformation.Destination getDestination(int index)
Get 'Destination' element item by position.

Parameters:
index -
Returns:
item

clearDestinations

public void clearDestinations()
Remove all 'Destination' element items.


getCategories

public java.util.List<TourInformation.Category> getCategories()
Get the list of 'Category' element items.

Returns:
list

setCategories

public void setCategories(java.util.List<TourInformation.Category> list)
Set the list of 'Category' element items.

Parameters:
list -

sizeCategories

public int sizeCategories()
Get the number of 'Category' element items.

Returns:
count

addCategory

public void addCategory(TourInformation.Category item)
Add a 'Category' element item.

Parameters:
item -

getCategory

public TourInformation.Category getCategory(int index)
Get 'Category' element item by position.

Parameters:
index -
Returns:
item

clearCategories

public void clearCategories()
Remove all 'Category' element items.


getKeywords

public TourInformation.Keywords getKeywords()
Get the 'Keywords' element value.

Returns:
value

setKeywords

public void setKeywords(TourInformation.Keywords keywords)
Set the 'Keywords' element value.

Parameters:
keywords -

getCharge

public Fee getCharge()
Get the 'Charge' element value. Contains guideline price information about the tour.

Returns:
value

setCharge

public void setCharge(Fee charge)
Set the 'Charge' element value. Contains guideline price information about the tour.

Parameters:
charge -

getDuration

public TourInformation.Duration getDuration()
Get the 'Duration' element value.

Returns:
value

setDuration

public void setDuration(TourInformation.Duration duration)
Set the 'Duration' element value.

Parameters:
duration -

getDepartures

public TourInformation.Departures getDepartures()
Get the 'Departures' element value.

Returns:
value

setDepartures

public void setDepartures(TourInformation.Departures departures)
Set the 'Departures' element value.

Parameters:
departures -

getPolicyInfo

public TourInformation.PolicyInfo getPolicyInfo()
Get the 'PolicyInfo' element value.

Returns:
value

setPolicyInfo

public void setPolicyInfo(TourInformation.PolicyInfo policyInfo)
Set the 'PolicyInfo' element value.

Parameters:
policyInfo -

getSupplierInfo

public ContactInfo getSupplierInfo()
Get the 'SupplierInfo' element value. Provides details of the tour supplier.

Returns:
value

setSupplierInfo

public void setSupplierInfo(ContactInfo supplierInfo)
Set the 'SupplierInfo' element value. Provides details of the tour supplier.

Parameters:
supplierInfo -

getLanguages

public java.util.List<TourInformation.Language> getLanguages()
Get the list of 'Language' element items.

Returns:
list

setLanguages

public void setLanguages(java.util.List<TourInformation.Language> list)
Set the list of 'Language' element items.

Parameters:
list -

sizeLanguages

public int sizeLanguages()
Get the number of 'Language' element items.

Returns:
count

addLanguage

public void addLanguage(TourInformation.Language item)
Add a 'Language' element item.

Parameters:
item -

getLanguage

public TourInformation.Language getLanguage(int index)
Get 'Language' element item by position.

Parameters:
index -
Returns:
item

clearLanguages

public void clearLanguages()
Remove all 'Language' element items.


getURLs

public java.util.List<URLs> getURLs()
Get the list of 'URLs' element items. A collection of URL elements.

Returns:
list

setURLs

public void setURLs(java.util.List<URLs> list)
Set the list of 'URLs' element items. A collection of URL elements.

Parameters:
list -

sizeURLs

public int sizeURLs()
Get the number of 'URLs' element items.

Returns:
count

addURL

public void addURL(URLs item)
Add a 'URLs' element item.

Parameters:
item -

getURL

public URLs getURL(int index)
Get 'URLs' element item by position.

Parameters:
index -
Returns:
item

clearURLs

public void clearURLs()
Remove all 'URLs' 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 -

getLanguageCode

public java.lang.String getLanguageCode()
Get the 'LanguageCode' attribute value. Identification of the language used for the tour descriptive information.

Returns:
value

setLanguageCode

public void setLanguageCode(java.lang.String languageCode)
Set the 'LanguageCode' attribute value. Identification of the language used for the tour descriptive information.

Parameters:
languageCode -

getTimeZone

public java.lang.String getTimeZone()
Get the 'TimeZone' attribute value. The local time zone in which the tour departs. This could include additional information regarding time zones (e.g., Daylight Saving Time observed), the difference between the local time and GMT.

Returns:
value

setTimeZone

public void setTimeZone(java.lang.String timeZone)
Set the 'TimeZone' attribute value. The local time zone in which the tour departs. This could include additional information regarding time zones (e.g., Daylight Saving Time observed), the difference between the local time and GMT.

Parameters:
timeZone -

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. Used to define the lifespan of the tour content. Used to provide the first and last dates for the tour.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. Used to define the lifespan of the tour content. Used to provide the first and last dates for the tour.

Parameters:
dateTimeSpanGroup -

getDateTimeStampGroup

public DateTimeStampGroup getDateTimeStampGroup()
Get the 'DateTimeStampGroup' attributeGroup value. Defines the dates and authorship of the creation and latest update of the descriptive data.

Returns:
value

setDateTimeStampGroup

public void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
Set the 'DateTimeStampGroup' attributeGroup value. Defines the dates and authorship of the creation and latest update of the descriptive data.

Parameters:
dateTimeStampGroup -