org.ota.hotel
Class RatePlan.Sequence

java.lang.Object
  extended by org.ota.hotel.RatePlan.Sequence
Enclosing class:
RatePlan

public static class RatePlan.Sequence
extends java.lang.Object

Schema fragment(s) for this class:

 <xs:sequence xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" minOccurs="0">
   <xs:element type="ns:GuaranteeType" name="Guarantee" minOccurs="0" maxOccurs="5"/>
   <xs:element type="ns:CancelPenaltiesType" name="CancelPenalties" minOccurs="0"/>
   <xs:element type="ns:ParagraphType" name="RatePlanDescription" minOccurs="0"/>
   <xs:element name="RatePlanInclusions" minOccurs="0">
     <!-- Reference to inner class RatePlanInclusions -->
   </xs:element>
   <xs:element type="ns:CommissionType" name="Commission" minOccurs="0"/>
   <xs:element name="MealsIncluded" minOccurs="0">
     <xs:complexType>
       <xs:attributeGroup ref="ns:MealsIncludedGroup"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="RestrictionStatus" minOccurs="0">
     <xs:complexType>
       <xs:attributeGroup ref="ns:RestrictionStatusGroup"/>
     </xs:complexType>
   </xs:element>
   <xs:element type="ns:AdditionalDetailsType" name="AdditionalDetails" minOccurs="0"/>
 </xs:sequence>
 


Nested Class Summary
static class RatePlan.Sequence.RatePlanInclusions
          Defines charges that are included in this rate plan.This element allows for future extension should there be a need.
 
Constructor Summary
RatePlan.Sequence()
           
 
Method Summary
 void addGuarantee(Guarantee item)
          Add a 'Guarantee' element item.
 void clearGuarantees()
          Remove all 'Guarantee' element items.
 AdditionalDetails getAdditionalDetails()
          Get the 'AdditionalDetails' element value.
 CancelPenalties getCancelPenalties()
          Get the 'CancelPenalties' element value.
 Commission getCommission()
          Get the 'Commission' element value.
 Guarantee getGuarantee(int index)
          Get 'Guarantee' element item by position.
 java.util.List<Guarantee> getGuarantees()
          Get the list of 'Guarantee' element items.
 MealsIncludedGroup getMealsIncluded()
          Get the 'MealsIncludedGroup' attributeGroup value.
 Paragraph getRatePlanDescription()
          Get the 'RatePlanDescription' element value.
 RatePlan.Sequence.RatePlanInclusions getRatePlanInclusions()
          Get the 'RatePlanInclusions' element value.
 RestrictionStatusGroup getRestrictionStatus()
          Get the 'RestrictionStatusGroup' attributeGroup value.
 void setAdditionalDetails(AdditionalDetails additionalDetails)
          Set the 'AdditionalDetails' element value.
 void setCancelPenalties(CancelPenalties cancelPenalties)
          Set the 'CancelPenalties' element value.
 void setCommission(Commission commission)
          Set the 'Commission' element value.
 void setGuarantees(java.util.List<Guarantee> list)
          Set the list of 'Guarantee' element items.
 void setMealsIncluded(MealsIncludedGroup mealsIncluded)
          Set the 'MealsIncludedGroup' attributeGroup value.
 void setRatePlanDescription(Paragraph ratePlanDescription)
          Set the 'RatePlanDescription' element value.
 void setRatePlanInclusions(RatePlan.Sequence.RatePlanInclusions ratePlanInclusions)
          Set the 'RatePlanInclusions' element value.
 void setRestrictionStatus(RestrictionStatusGroup restrictionStatus)
          Set the 'RestrictionStatusGroup' attributeGroup value.
 int sizeGuarantees()
          Get the number of 'Guarantee' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatePlan.Sequence

public RatePlan.Sequence()
Method Detail

getGuarantees

public java.util.List<Guarantee> getGuarantees()
Get the list of 'Guarantee' element items. Guarantee information that applies to the rate plan. A maximum of 5 occurances are available for use depending on the context.

Returns:
list

setGuarantees

public void setGuarantees(java.util.List<Guarantee> list)
Set the list of 'Guarantee' element items. Guarantee information that applies to the rate plan. A maximum of 5 occurances are available for use depending on the context.

Parameters:
list -

sizeGuarantees

public int sizeGuarantees()
Get the number of 'Guarantee' element items.

Returns:
count

addGuarantee

public void addGuarantee(Guarantee item)
Add a 'Guarantee' element item.

Parameters:
item -

getGuarantee

public Guarantee getGuarantee(int index)
Get 'Guarantee' element item by position.

Parameters:
index -
Returns:
item

clearGuarantees

public void clearGuarantees()
Remove all 'Guarantee' element items.


getCancelPenalties

public CancelPenalties getCancelPenalties()
Get the 'CancelPenalties' element value. Collection of cancellation penalties.

Returns:
value

setCancelPenalties

public void setCancelPenalties(CancelPenalties cancelPenalties)
Set the 'CancelPenalties' element value. Collection of cancellation penalties.

Parameters:
cancelPenalties -

getRatePlanDescription

public Paragraph getRatePlanDescription()
Get the 'RatePlanDescription' element value. Describes the rate plan.

Returns:
value

setRatePlanDescription

public void setRatePlanDescription(Paragraph ratePlanDescription)
Set the 'RatePlanDescription' element value. Describes the rate plan.

Parameters:
ratePlanDescription -

getRatePlanInclusions

public RatePlan.Sequence.RatePlanInclusions getRatePlanInclusions()
Get the 'RatePlanInclusions' element value.

Returns:
value

setRatePlanInclusions

public void setRatePlanInclusions(RatePlan.Sequence.RatePlanInclusions ratePlanInclusions)
Set the 'RatePlanInclusions' element value.

Parameters:
ratePlanInclusions -

getCommission

public Commission getCommission()
Get the 'Commission' element value. Commission associated with the RatePlan. This can be a percentage or a flat amount.

Returns:
value

setCommission

public void setCommission(Commission commission)
Set the 'Commission' element value. Commission associated with the RatePlan. This can be a percentage or a flat amount.

Parameters:
commission -

getMealsIncluded

public MealsIncludedGroup getMealsIncluded()
Get the 'MealsIncludedGroup' attributeGroup value. Defines which meals are included with this rate program.

Returns:
value

setMealsIncluded

public void setMealsIncluded(MealsIncludedGroup mealsIncluded)
Set the 'MealsIncludedGroup' attributeGroup value. Defines which meals are included with this rate program.

Parameters:
mealsIncluded -

getRestrictionStatus

public RestrictionStatusGroup getRestrictionStatus()
Get the 'RestrictionStatusGroup' attributeGroup value. Used to indicate whether the rate is on request or available.

Returns:
value

setRestrictionStatus

public void setRestrictionStatus(RestrictionStatusGroup restrictionStatus)
Set the 'RestrictionStatusGroup' attributeGroup value. Used to indicate whether the rate is on request or available.

Parameters:
restrictionStatus -

getAdditionalDetails

public AdditionalDetails getAdditionalDetails()
Get the 'AdditionalDetails' element value.

Returns:
value

setAdditionalDetails

public void setAdditionalDetails(AdditionalDetails additionalDetails)
Set the 'AdditionalDetails' element value.

Parameters:
additionalDetails -