org.ota.vehicle
Class RateRuleRS.RateRules.CancelPenaltyInfo

java.lang.Object
  extended by org.ota.vehicle.RateRuleRS.RateRules.CancelPenaltyInfo
Enclosing class:
RateRuleRS.RateRules

public static class RateRuleRS.RateRules.CancelPenaltyInfo
extends java.lang.Object

Information regarding the cancellation or modification policy for this vehicle type. 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="CancelPenaltyInfo" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Deadline" minOccurs="0" maxOccurs="2">
         <xs:complexType>
           <xs:attributeGroup ref="ns:DeadlineGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="PenaltyFee" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:FormattedTextTextType" name="Description" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="GuaranteeRequiredInd"/>
     <xs:attribute type="xs:boolean" use="optional" name="ModifyPenaltyInd"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RateRuleRS.RateRules.CancelPenaltyInfo()
           
 
Method Summary
 void addDeadline(DeadlineGroup item)
          Add a 'Deadline' element item.
 void clearDeadlines()
          Remove all 'Deadline' element items.
 DeadlineGroup getDeadline(int index)
          Get 'Deadline' element item by position.
 java.util.List<DeadlineGroup> getDeadlines()
          Get the list of 'Deadline' element items.
 FormattedTextText getDescription()
          Get the 'Description' element value.
 java.lang.Boolean getGuaranteeRequiredInd()
          Get the 'GuaranteeRequiredInd' attribute value.
 java.lang.Boolean getModifyPenaltyInd()
          Get the 'ModifyPenaltyInd' attribute value.
 CurrencyAmountGroup getPenaltyFee()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 void setDeadlines(java.util.List<DeadlineGroup> list)
          Set the list of 'Deadline' element items.
 void setDescription(FormattedTextText description)
          Set the 'Description' element value.
 void setGuaranteeRequiredInd(java.lang.Boolean guaranteeRequiredInd)
          Set the 'GuaranteeRequiredInd' attribute value.
 void setModifyPenaltyInd(java.lang.Boolean modifyPenaltyInd)
          Set the 'ModifyPenaltyInd' attribute value.
 void setPenaltyFee(CurrencyAmountGroup penaltyFee)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 int sizeDeadlines()
          Get the number of 'Deadline' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateRuleRS.RateRules.CancelPenaltyInfo

public RateRuleRS.RateRules.CancelPenaltyInfo()
Method Detail

getDeadlines

public java.util.List<DeadlineGroup> getDeadlines()
Get the list of 'Deadline' element items. Time by which a cancellation must be made before penalty fees are incurred or defines a period of time for which a specific fee is applied if a cancellation were to occur.

Returns:
list

setDeadlines

public void setDeadlines(java.util.List<DeadlineGroup> list)
Set the list of 'Deadline' element items. Time by which a cancellation must be made before penalty fees are incurred or defines a period of time for which a specific fee is applied if a cancellation were to occur.

Parameters:
list -

sizeDeadlines

public int sizeDeadlines()
Get the number of 'Deadline' element items.

Returns:
count

addDeadline

public void addDeadline(DeadlineGroup item)
Add a 'Deadline' element item.

Parameters:
item -

getDeadline

public DeadlineGroup getDeadline(int index)
Get 'Deadline' element item by position.

Parameters:
index -
Returns:
item

clearDeadlines

public void clearDeadlines()
Remove all 'Deadline' element items.


getPenaltyFee

public CurrencyAmountGroup getPenaltyFee()
Get the 'CurrencyAmountGroup' attributeGroup value. The amounts of the penalty fee if cancellation is received after the deadline.

Returns:
value

setPenaltyFee

public void setPenaltyFee(CurrencyAmountGroup penaltyFee)
Set the 'CurrencyAmountGroup' attributeGroup value. The amounts of the penalty fee if cancellation is received after the deadline.

Parameters:
penaltyFee -

getDescription

public FormattedTextText getDescription()
Get the 'Description' element value. Provides additional information about the cancel penalty.

Returns:
value

setDescription

public void setDescription(FormattedTextText description)
Set the 'Description' element value. Provides additional information about the cancel penalty.

Parameters:
description -

getGuaranteeRequiredInd

public java.lang.Boolean getGuaranteeRequiredInd()
Get the 'GuaranteeRequiredInd' attribute value. When true, a guarantee is required.

Returns:
value

setGuaranteeRequiredInd

public void setGuaranteeRequiredInd(java.lang.Boolean guaranteeRequiredInd)
Set the 'GuaranteeRequiredInd' attribute value. When true, a guarantee is required.

Parameters:
guaranteeRequiredInd -

getModifyPenaltyInd

public java.lang.Boolean getModifyPenaltyInd()
Get the 'ModifyPenaltyInd' attribute value. When true, this indicates the penalty information is for a modification rather than a cancellation.

Returns:
value

setModifyPenaltyInd

public void setModifyPenaltyInd(java.lang.Boolean modifyPenaltyInd)
Set the 'ModifyPenaltyInd' attribute value. When true, this indicates the penalty information is for a modification rather than a cancellation.

Parameters:
modifyPenaltyInd -