org.ota.pkg
Class ExtrasInfo.Periods.Period

java.lang.Object
  extended by org.ota.pkg.ExtrasInfo.Periods.Period
Enclosing class:
ExtrasInfo.Periods

public static class ExtrasInfo.Periods.Period
extends java.lang.Object

The price of the Extra per unit (which may be person, room, car etc,) and/or duration 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" type="ns:PeriodPriceType" name="Period" maxOccurs="unbounded"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PeriodPriceType">
   <xs:complexContent>
     <xs:extension base="ns:OperationScheduleType">
       <xs:sequence>
         <xs:element type="ns:PkgPriceType" name="Price" minOccurs="0" maxOccurs="5"/>
       </xs:sequence>
       <xs:attribute type="xs:string" use="optional" name="RPH"/>
       <xs:attribute use="optional" name="Category">
         <xs:simpleType>
           <!-- Reference to inner class Category -->
         </xs:simpleType>
       </xs:attribute>
       <xs:attribute use="optional" name="Type">
         <xs:simpleType>
           <!-- Reference to inner class Type -->
         </xs:simpleType>
       </xs:attribute>
       <xs:attribute type="xs:string" use="optional" name="DurationPeriod"/>
       <xs:attribute type="ns:PricingType" use="optional" name="PriceBasis"/>
       <xs:attribute type="xs:string" use="optional" name="BasePeriodRPHs"/>
       <xs:attribute type="xs:boolean" use="optional" name="GuidePriceIndicator"/>
       <xs:attribute type="xs:string" use="optional" name="MaximumPeriod"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class ExtrasInfo.Periods.Period.Category
          Schema fragment(s) for this class:
static class ExtrasInfo.Periods.Period.Type
          Schema fragment(s) for this class:
 
Constructor Summary
ExtrasInfo.Periods.Period()
           
 
Method Summary
 void addPrice(PkgPrice item)
          Add a 'Price' element item.
 void clearPrices()
          Remove all 'Price' element items.
 java.lang.String getBasePeriodRPHs()
          Get the 'BasePeriodRPHs' attribute value.
 ExtrasInfo.Periods.Period.Category getCategory()
          Get the 'Category' attribute value.
 java.lang.String getDurationPeriod()
          Get the 'DurationPeriod' attribute value.
 java.lang.Boolean getGuidePriceIndicator()
          Get the 'GuidePriceIndicator' attribute value.
 java.lang.String getMaximumPeriod()
          Get the 'MaximumPeriod' attribute value.
 OperationSchedule getOperationSchedule()
          Get the extension value.
 PkgPrice getPrice(int index)
          Get 'Price' element item by position.
 Pricing getPriceBasis()
          Get the 'PriceBasis' attribute value.
 java.util.List<PkgPrice> getPrices()
          Get the list of 'Price' element items.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 ExtrasInfo.Periods.Period.Type getType()
          Get the 'Type' attribute value.
 void setBasePeriodRPHs(java.lang.String basePeriodRPHs)
          Set the 'BasePeriodRPHs' attribute value.
 void setCategory(ExtrasInfo.Periods.Period.Category category)
          Set the 'Category' attribute value.
 void setDurationPeriod(java.lang.String durationPeriod)
          Set the 'DurationPeriod' attribute value.
 void setGuidePriceIndicator(java.lang.Boolean guidePriceIndicator)
          Set the 'GuidePriceIndicator' attribute value.
 void setMaximumPeriod(java.lang.String maximumPeriod)
          Set the 'MaximumPeriod' attribute value.
 void setOperationSchedule(OperationSchedule operationSchedule)
          Set the extension value.
 void setPriceBasis(Pricing priceBasis)
          Set the 'PriceBasis' attribute value.
 void setPrices(java.util.List<PkgPrice> list)
          Set the list of 'Price' element items.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setType(ExtrasInfo.Periods.Period.Type type)
          Set the 'Type' attribute value.
 int sizePrices()
          Get the number of 'Price' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtrasInfo.Periods.Period

public ExtrasInfo.Periods.Period()
Method Detail

getOperationSchedule

public OperationSchedule getOperationSchedule()
Get the extension value.

Returns:
value

setOperationSchedule

public void setOperationSchedule(OperationSchedule operationSchedule)
Set the extension value.

Parameters:
operationSchedule -

getPrices

public java.util.List<PkgPrice> getPrices()
Get the list of 'Price' element items. Provides a price for an extra by booking/rental period whihch may also be at passenger type/age-level.

Returns:
list

setPrices

public void setPrices(java.util.List<PkgPrice> list)
Set the list of 'Price' element items. Provides a price for an extra by booking/rental period whihch may also be at passenger type/age-level.

Parameters:
list -

sizePrices

public int sizePrices()
Get the number of 'Price' element items.

Returns:
count

addPrice

public void addPrice(PkgPrice item)
Add a 'Price' element item.

Parameters:
item -

getPrice

public PkgPrice getPrice(int index)
Get 'Price' element item by position.

Parameters:
index -
Returns:
item

clearPrices

public void clearPrices()
Remove all 'Price' element items.


getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Parameters:
RPH -

getCategory

public ExtrasInfo.Periods.Period.Category getCategory()
Get the 'Category' attribute value. Identifies the unit on which on Extra is charged, e.g. per person, room, adult etc.

Returns:
value

setCategory

public void setCategory(ExtrasInfo.Periods.Period.Category category)
Set the 'Category' attribute value. Identifies the unit on which on Extra is charged, e.g. per person, room, adult etc.

Parameters:
category -

getType

public ExtrasInfo.Periods.Period.Type getType()
Get the 'Type' attribute value. Indicates whether the DurationPeriod is a 'Base' (i.e.. a charge for one of a tier of durations like 3days, 7days etc.) or 'AddOn' (i.e. for periods extending a base period like extra day, extra week etc.)

Returns:
value

setType

public void setType(ExtrasInfo.Periods.Period.Type type)
Set the 'Type' attribute value. Indicates whether the DurationPeriod is a 'Base' (i.e.. a charge for one of a tier of durations like 3days, 7days etc.) or 'AddOn' (i.e. for periods extending a base period like extra day, extra week etc.)

Parameters:
type -

getDurationPeriod

public java.lang.String getDurationPeriod()
Get the 'DurationPeriod' attribute value. Defines the period for which a charge applies, e.g. P1D = per day, P1N = per night, P7D = per week etc. If this attribute is not present, the period is assumed to be the duration of the booking.

Returns:
value

setDurationPeriod

public void setDurationPeriod(java.lang.String durationPeriod)
Set the 'DurationPeriod' attribute value. Defines the period for which a charge applies, e.g. P1D = per day, P1N = per night, P7D = per week etc. If this attribute is not present, the period is assumed to be the duration of the booking.

Parameters:
durationPeriod -

getPriceBasis

public Pricing getPriceBasis()
Get the 'PriceBasis' attribute value. An enumerated type that defines how a service is priced. Values: Per stay, Per person, Per night, Per person per night, Per use.

Returns:
value

setPriceBasis

public void setPriceBasis(Pricing priceBasis)
Set the 'PriceBasis' attribute value. An enumerated type that defines how a service is priced. Values: Per stay, Per person, Per night, Per person per night, Per use.

Parameters:
priceBasis -

getBasePeriodRPHs

public java.lang.String getBasePeriodRPHs()
Get the 'BasePeriodRPHs' attribute value. Use with an 'AddOn' DurationPeriod to point to the 'Base' DurationPeriod(s) which it extends.

Returns:
value

setBasePeriodRPHs

public void setBasePeriodRPHs(java.lang.String basePeriodRPHs)
Set the 'BasePeriodRPHs' attribute value. Use with an 'AddOn' DurationPeriod to point to the 'Base' DurationPeriod(s) which it extends.

Parameters:
basePeriodRPHs -

getGuidePriceIndicator

public java.lang.Boolean getGuidePriceIndicator()
Get the 'GuidePriceIndicator' attribute value. When 'true', the accompanying price(s) are guidelines; full pricing will be returned when the Extra is selected in a Quick Cost message. When 'false', an accurate costing can be calculated from the price(s) given. When this attribute is absent, accurate prices will be assumed.

Returns:
value

setGuidePriceIndicator

public void setGuidePriceIndicator(java.lang.Boolean guidePriceIndicator)
Set the 'GuidePriceIndicator' attribute value. When 'true', the accompanying price(s) are guidelines; full pricing will be returned when the Extra is selected in a Quick Cost message. When 'false', an accurate costing can be calculated from the price(s) given. When this attribute is absent, accurate prices will be assumed.

Parameters:
guidePriceIndicator -

getMaximumPeriod

public java.lang.String getMaximumPeriod()
Get the 'MaximumPeriod' attribute value. The maximum period for which the associated service is bookable.

Returns:
value

setMaximumPeriod

public void setMaximumPeriod(java.lang.String maximumPeriod)
Set the 'MaximumPeriod' attribute value. The maximum period for which the associated service is bookable.

Parameters:
maximumPeriod -