org.ota.pkg
Class ExtrasInfo

java.lang.Object
  extended by org.ota.pkg.ExtrasCore
      extended by org.ota.pkg.ExtrasInfo

public class ExtrasInfo
extends ExtrasCore

Describes an optional service which is not included in the standard package but may be booked in addition. 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="ExtrasInfoType">
   <xs:complexContent>
     <xs:extension base="ns:ExtrasCoreType">
       <xs:sequence>
         <xs:element name="Criteria" minOccurs="0">
           <!-- Reference to inner class Criteria -->
         </xs:element>
         <xs:element name="Periods" minOccurs="0">
           <!-- Reference to inner class Periods -->
         </xs:element>
         <xs:element name="AdditionalInfoPrompt" minOccurs="0" maxOccurs="4">
           <!-- Reference to inner class AdditionalInfoPrompt -->
         </xs:element>
         <xs:element name="ParentExtras" minOccurs="0">
           <!-- Reference to inner class ParentExtras -->
         </xs:element>
         <xs:element name="ExtraLocationInfo" minOccurs="0" maxOccurs="5">
           <!-- Reference to inner class ExtraLocationInfo -->
         </xs:element>
       </xs:sequence>
       <xs:attributeGroup ref="ns:ExtrasSelectionGroup"/>
       <xs:attribute use="optional" name="ApplyTo">
         <xs:simpleType>
           <!-- Reference to inner class ApplyTo -->
         </xs:simpleType>
       </xs:attribute>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class ExtrasInfo.AdditionalInfoPrompt
          Additional textual information is sometimes required when an Extra is selected.
static class ExtrasInfo.ApplyTo
          Schema fragment(s) for this class:
static class ExtrasInfo.Criteria
          Conditions which must be met for an extra to be bookable e.g.
static class ExtrasInfo.ExtraLocationInfo
          Indicates where the extra can be obtained and returned, (e.g., airport, property or resort).
static class ExtrasInfo.ParentExtras
          Identifies the parent with which this Extra is available (e.g., an ice skating session with ice skates).
static class ExtrasInfo.Periods
          A collection of prices by booking period.
 
Constructor Summary
ExtrasInfo()
           
 
Method Summary
 void addAdditionalInfoPrompt(ExtrasInfo.AdditionalInfoPrompt item)
          Add a 'AdditionalInfoPrompt' element item.
 void addExtraLocationInfo(ExtrasInfo.ExtraLocationInfo item)
          Add a 'ExtraLocationInfo' element item.
 void clearAdditionalInfoPrompts()
          Remove all 'AdditionalInfoPrompt' element items.
 void clearExtraLocationInfos()
          Remove all 'ExtraLocationInfo' element items.
 ExtrasInfo.AdditionalInfoPrompt getAdditionalInfoPrompt(int index)
          Get 'AdditionalInfoPrompt' element item by position.
 java.util.List<ExtrasInfo.AdditionalInfoPrompt> getAdditionalInfoPrompts()
          Get the list of 'AdditionalInfoPrompt' element items.
 ExtrasInfo.ApplyTo getApplyTo()
          Get the 'ApplyTo' attribute value.
 ExtrasInfo.Criteria getCriteria()
          Get the 'Criteria' element value.
 ExtrasInfo.ExtraLocationInfo getExtraLocationInfo(int index)
          Get 'ExtraLocationInfo' element item by position.
 java.util.List<ExtrasInfo.ExtraLocationInfo> getExtraLocationInfos()
          Get the list of 'ExtraLocationInfo' element items.
 ExtrasSelectionGroup getExtrasSelectionGroup()
          Get the 'ExtrasSelectionGroup' attributeGroup value.
 ExtrasInfo.ParentExtras getParentExtras()
          Get the 'ParentExtras' element value.
 ExtrasInfo.Periods getPeriods()
          Get the 'Periods' element value.
 void setAdditionalInfoPrompts(java.util.List<ExtrasInfo.AdditionalInfoPrompt> list)
          Set the list of 'AdditionalInfoPrompt' element items.
 void setApplyTo(ExtrasInfo.ApplyTo applyTo)
          Set the 'ApplyTo' attribute value.
 void setCriteria(ExtrasInfo.Criteria criteria)
          Set the 'Criteria' element value.
 void setExtraLocationInfos(java.util.List<ExtrasInfo.ExtraLocationInfo> list)
          Set the list of 'ExtraLocationInfo' element items.
 void setExtrasSelectionGroup(ExtrasSelectionGroup extrasSelectionGroup)
          Set the 'ExtrasSelectionGroup' attributeGroup value.
 void setParentExtras(ExtrasInfo.ParentExtras parentExtras)
          Set the 'ParentExtras' element value.
 void setPeriods(ExtrasInfo.Periods periods)
          Set the 'Periods' element value.
 int sizeAdditionalInfoPrompts()
          Get the number of 'AdditionalInfoPrompt' element items.
 int sizeExtraLocationInfos()
          Get the number of 'ExtraLocationInfo' element items.
 
Methods inherited from class org.ota.pkg.ExtrasCore
addSubCategory, clearSubCategories, getCode, getGroupCode, getListOfInventoryItemRPH, getListofRoomRPH, getName, getQuantity, getRPH, getSubCategories, getSubCategory, getType, setCode, setGroupCode, setListOfInventoryItemRPH, setListofRoomRPH, setName, setQuantity, setRPH, setSubCategories, setType, sizeSubCategories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtrasInfo

public ExtrasInfo()
Method Detail

getCriteria

public ExtrasInfo.Criteria getCriteria()
Get the 'Criteria' element value.

Returns:
value

setCriteria

public void setCriteria(ExtrasInfo.Criteria criteria)
Set the 'Criteria' element value.

Parameters:
criteria -

getPeriods

public ExtrasInfo.Periods getPeriods()
Get the 'Periods' element value.

Returns:
value

setPeriods

public void setPeriods(ExtrasInfo.Periods periods)
Set the 'Periods' element value.

Parameters:
periods -

getAdditionalInfoPrompts

public java.util.List<ExtrasInfo.AdditionalInfoPrompt> getAdditionalInfoPrompts()
Get the list of 'AdditionalInfoPrompt' element items.

Returns:
list

setAdditionalInfoPrompts

public void setAdditionalInfoPrompts(java.util.List<ExtrasInfo.AdditionalInfoPrompt> list)
Set the list of 'AdditionalInfoPrompt' element items.

Parameters:
list -

sizeAdditionalInfoPrompts

public int sizeAdditionalInfoPrompts()
Get the number of 'AdditionalInfoPrompt' element items.

Returns:
count

addAdditionalInfoPrompt

public void addAdditionalInfoPrompt(ExtrasInfo.AdditionalInfoPrompt item)
Add a 'AdditionalInfoPrompt' element item.

Parameters:
item -

getAdditionalInfoPrompt

public ExtrasInfo.AdditionalInfoPrompt getAdditionalInfoPrompt(int index)
Get 'AdditionalInfoPrompt' element item by position.

Parameters:
index -
Returns:
item

clearAdditionalInfoPrompts

public void clearAdditionalInfoPrompts()
Remove all 'AdditionalInfoPrompt' element items.


getParentExtras

public ExtrasInfo.ParentExtras getParentExtras()
Get the 'ParentExtras' element value.

Returns:
value

setParentExtras

public void setParentExtras(ExtrasInfo.ParentExtras parentExtras)
Set the 'ParentExtras' element value.

Parameters:
parentExtras -

getExtraLocationInfos

public java.util.List<ExtrasInfo.ExtraLocationInfo> getExtraLocationInfos()
Get the list of 'ExtraLocationInfo' element items.

Returns:
list

setExtraLocationInfos

public void setExtraLocationInfos(java.util.List<ExtrasInfo.ExtraLocationInfo> list)
Set the list of 'ExtraLocationInfo' element items.

Parameters:
list -

sizeExtraLocationInfos

public int sizeExtraLocationInfos()
Get the number of 'ExtraLocationInfo' element items.

Returns:
count

addExtraLocationInfo

public void addExtraLocationInfo(ExtrasInfo.ExtraLocationInfo item)
Add a 'ExtraLocationInfo' element item.

Parameters:
item -

getExtraLocationInfo

public ExtrasInfo.ExtraLocationInfo getExtraLocationInfo(int index)
Get 'ExtraLocationInfo' element item by position.

Parameters:
index -
Returns:
item

clearExtraLocationInfos

public void clearExtraLocationInfos()
Remove all 'ExtraLocationInfo' element items.


getExtrasSelectionGroup

public ExtrasSelectionGroup getExtrasSelectionGroup()
Get the 'ExtrasSelectionGroup' attributeGroup value. Selection type and rule code for an extra.

Returns:
value

setExtrasSelectionGroup

public void setExtrasSelectionGroup(ExtrasSelectionGroup extrasSelectionGroup)
Set the 'ExtrasSelectionGroup' attributeGroup value. Selection type and rule code for an extra.

Parameters:
extrasSelectionGroup -

getApplyTo

public ExtrasInfo.ApplyTo getApplyTo()
Get the 'ApplyTo' attribute value. Indicates whether the service applies to all passengers on booking, just to selected passengers or not to passengers at all.

Returns:
value

setApplyTo

public void setApplyTo(ExtrasInfo.ApplyTo applyTo)
Set the 'ApplyTo' attribute value. Indicates whether the service applies to all passengers on booking, just to selected passengers or not to passengers at all.

Parameters:
applyTo -