org.ota.hotel
Class CancelPenalties.CancelPenalty

java.lang.Object
  extended by org.ota.hotel.CancelPenalties.CancelPenalty
Enclosing class:
CancelPenalties

public static class CancelPenalties.CancelPenalty
extends java.lang.Object

Defines the cancellation penalty of the hotel facility. 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:CancelPenaltyType" name="CancelPenalty" minOccurs="0" maxOccurs="unbounded"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CancelPenaltyType">
   <xs:sequence>
     <xs:element name="Deadline" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:DeadlineGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:AmountPercentType" name="AmountPercent" minOccurs="0"/>
     <xs:element type="ns:ParagraphType" name="PenaltyDescription" minOccurs="0" maxOccurs="9"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="ConfirmClassCode"/>
   <xs:attribute type="xs:string" use="optional" name="PolicyCode"/>
   <xs:attribute type="xs:boolean" use="optional" name="NonRefundable"/>
   <xs:attributeGroup ref="ns:DOW_PatternGroup"/>
   <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
   <xs:attribute type="xs:string" use="optional" name="RoomTypeCode"/>
 </xs:complexType>
 


Constructor Summary
CancelPenalties.CancelPenalty()
           
 
Method Summary
 void addPenaltyDescription(Paragraph item)
          Add a 'PenaltyDescription' element item.
 void clearPenaltyDescriptions()
          Remove all 'PenaltyDescription' element items.
 AmountPercent getAmountPercent()
          Get the 'AmountPercent' element value.
 java.lang.String getConfirmClassCode()
          Get the 'ConfirmClassCode' attribute value.
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 DeadlineGroup getDeadline()
          Get the 'DeadlineGroup' attributeGroup value.
 DOWPatternGroup getDOWPatternGroup()
          Get the 'DOW_PatternGroup' attributeGroup value.
 java.lang.Boolean getNonRefundable()
          Get the 'NonRefundable' attribute value.
 Paragraph getPenaltyDescription(int index)
          Get 'PenaltyDescription' element item by position.
 java.util.List<Paragraph> getPenaltyDescriptions()
          Get the list of 'PenaltyDescription' element items.
 java.lang.String getPolicyCode()
          Get the 'PolicyCode' attribute value.
 java.lang.String getRoomTypeCode()
          Get the 'RoomTypeCode' attribute value.
 void setAmountPercent(AmountPercent amountPercent)
          Set the 'AmountPercent' element value.
 void setConfirmClassCode(java.lang.String confirmClassCode)
          Set the 'ConfirmClassCode' attribute value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setDeadline(DeadlineGroup deadline)
          Set the 'DeadlineGroup' attributeGroup value.
 void setDOWPatternGroup(DOWPatternGroup DOWPatternGroup)
          Set the 'DOW_PatternGroup' attributeGroup value.
 void setNonRefundable(java.lang.Boolean nonRefundable)
          Set the 'NonRefundable' attribute value.
 void setPenaltyDescriptions(java.util.List<Paragraph> list)
          Set the list of 'PenaltyDescription' element items.
 void setPolicyCode(java.lang.String policyCode)
          Set the 'PolicyCode' attribute value.
 void setRoomTypeCode(java.lang.String roomTypeCode)
          Set the 'RoomTypeCode' attribute value.
 int sizePenaltyDescriptions()
          Get the number of 'PenaltyDescription' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelPenalties.CancelPenalty

public CancelPenalties.CancelPenalty()
Method Detail

getDeadline

public DeadlineGroup getDeadline()
Get the 'DeadlineGroup' attributeGroup value. The absolute deadline or amount of offset time before a deadline for a payment of cancel goes into effect.

Returns:
value

setDeadline

public void setDeadline(DeadlineGroup deadline)
Set the 'DeadlineGroup' attributeGroup value. The absolute deadline or amount of offset time before a deadline for a payment of cancel goes into effect.

Parameters:
deadline -

getAmountPercent

public AmountPercent getAmountPercent()
Get the 'AmountPercent' element value. Cancellation fee expressed as a fixed amount, or percentage of/or room nights.

Returns:
value

setAmountPercent

public void setAmountPercent(AmountPercent amountPercent)
Set the 'AmountPercent' element value. Cancellation fee expressed as a fixed amount, or percentage of/or room nights.

Parameters:
amountPercent -

getPenaltyDescriptions

public java.util.List<Paragraph> getPenaltyDescriptions()
Get the list of 'PenaltyDescription' element items. Text description of the Penalty in a given language.

Returns:
list

setPenaltyDescriptions

public void setPenaltyDescriptions(java.util.List<Paragraph> list)
Set the list of 'PenaltyDescription' element items. Text description of the Penalty in a given language.

Parameters:
list -

sizePenaltyDescriptions

public int sizePenaltyDescriptions()
Get the number of 'PenaltyDescription' element items.

Returns:
count

addPenaltyDescription

public void addPenaltyDescription(Paragraph item)
Add a 'PenaltyDescription' element item.

Parameters:
item -

getPenaltyDescription

public Paragraph getPenaltyDescription(int index)
Get 'PenaltyDescription' element item by position.

Parameters:
index -
Returns:
item

clearPenaltyDescriptions

public void clearPenaltyDescriptions()
Remove all 'PenaltyDescription' element items.


getConfirmClassCode

public java.lang.String getConfirmClassCode()
Get the 'ConfirmClassCode' attribute value. Confirm Class.

Returns:
value

setConfirmClassCode

public void setConfirmClassCode(java.lang.String confirmClassCode)
Set the 'ConfirmClassCode' attribute value. Confirm Class.

Parameters:
confirmClassCode -

getPolicyCode

public java.lang.String getPolicyCode()
Get the 'PolicyCode' attribute value. Policy Class.

Returns:
value

setPolicyCode

public void setPolicyCode(java.lang.String policyCode)
Set the 'PolicyCode' attribute value. Policy Class.

Parameters:
policyCode -

getNonRefundable

public java.lang.Boolean getNonRefundable()
Get the 'NonRefundable' attribute value. Indicates that any prepayment for the reservation is non refundable, therefore a 100% penalty on the prepayment is applied, irrespective of deadline.

Returns:
value

setNonRefundable

public void setNonRefundable(java.lang.Boolean nonRefundable)
Set the 'NonRefundable' attribute value. Indicates that any prepayment for the reservation is non refundable, therefore a 100% penalty on the prepayment is applied, irrespective of deadline.

Parameters:
nonRefundable -

getDOWPatternGroup

public DOWPatternGroup getDOWPatternGroup()
Get the 'DOW_PatternGroup' attributeGroup value. If a day(s) of the week is set to true then the associated policy applies to that day of week.

Returns:
value

setDOWPatternGroup

public void setDOWPatternGroup(DOWPatternGroup DOWPatternGroup)
Set the 'DOW_PatternGroup' attributeGroup value. If a day(s) of the week is set to true then the associated policy applies to that day of week.

Parameters:
DOWPatternGroup -

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. The date time span for which the policy applies.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. The date time span for which the policy applies.

Parameters:
dateTimeSpanGroup -

getRoomTypeCode

public java.lang.String getRoomTypeCode()
Get the 'RoomTypeCode' attribute value. A system specific room type to which this cancellation penalty applies.

Returns:
value

setRoomTypeCode

public void setRoomTypeCode(java.lang.String roomTypeCode)
Set the 'RoomTypeCode' attribute value. A system specific room type to which this cancellation penalty applies.

Parameters:
roomTypeCode -