org.ota.hotel
Class Guarantee

java.lang.Object
  extended by org.ota.hotel.Guarantee
Direct Known Subclasses:
BookingRules.BookingRule.AcceptableGuarantees.AcceptableGuarantee

public class Guarantee
extends java.lang.Object

The guarantee information to hold a reservation 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="GuaranteeType">
   <xs:sequence>
     <xs:element name="GuaranteesAccepted" minOccurs="0">
       <!-- Reference to inner class GuaranteesAccepted -->
     </xs:element>
     <xs:element name="Deadline" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:DeadlineGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:CommentType" name="Comments" minOccurs="0"/>
     <xs:element type="ns:ParagraphType" name="GuaranteeDescription" minOccurs="0" maxOccurs="9"/>
   </xs:sequence>
   <xs:attribute use="optional" name="RetributionType">
     <xs:simpleType>
       <!-- Reference to inner class Retribution -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:string" use="optional" name="GuaranteeCode"/>
   <xs:attribute use="optional" name="GuaranteeType">
     <xs:simpleType>
       <!-- Reference to inner class GuaranteeInner -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:time" use="optional" name="HoldTime"/>
 </xs:complexType>
 


Nested Class Summary
static class Guarantee.GuaranteeInner
          Schema fragment(s) for this class:
static class Guarantee.GuaranteesAccepted
          Schema fragment(s) for this class:
static class Guarantee.Retribution
          Schema fragment(s) for this class:
 
Constructor Summary
Guarantee()
           
 
Method Summary
 void addGuaranteeDescription(Paragraph item)
          Add a 'GuaranteeDescription' element item.
 void clearGuaranteeDescriptions()
          Remove all 'GuaranteeDescription' element items.
 Comment getComments()
          Get the 'Comments' element value.
 DeadlineGroup getDeadline()
          Get the 'DeadlineGroup' attributeGroup value.
 Guarantee.GuaranteeInner getGuarantee()
          Get the 'GuaranteeType' attribute value.
 java.lang.String getGuaranteeCode()
          Get the 'GuaranteeCode' attribute value.
 Paragraph getGuaranteeDescription(int index)
          Get 'GuaranteeDescription' element item by position.
 java.util.List<Paragraph> getGuaranteeDescriptions()
          Get the list of 'GuaranteeDescription' element items.
 Guarantee.GuaranteesAccepted getGuaranteesAccepted()
          Get the 'GuaranteesAccepted' element value.
 java.sql.Time getHoldTime()
          Get the 'HoldTime' attribute value.
 Guarantee.Retribution getRetribution()
          Get the 'RetributionType' attribute value.
 void setComments(Comment comments)
          Set the 'Comments' element value.
 void setDeadline(DeadlineGroup deadline)
          Set the 'DeadlineGroup' attributeGroup value.
 void setGuarantee(Guarantee.GuaranteeInner guarantee)
          Set the 'GuaranteeType' attribute value.
 void setGuaranteeCode(java.lang.String guaranteeCode)
          Set the 'GuaranteeCode' attribute value.
 void setGuaranteeDescriptions(java.util.List<Paragraph> list)
          Set the list of 'GuaranteeDescription' element items.
 void setGuaranteesAccepted(Guarantee.GuaranteesAccepted guaranteesAccepted)
          Set the 'GuaranteesAccepted' element value.
 void setHoldTime(java.sql.Time holdTime)
          Set the 'HoldTime' attribute value.
 void setRetribution(Guarantee.Retribution retribution)
          Set the 'RetributionType' attribute value.
 int sizeGuaranteeDescriptions()
          Get the number of 'GuaranteeDescription' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Guarantee

public Guarantee()
Method Detail

getGuaranteesAccepted

public Guarantee.GuaranteesAccepted getGuaranteesAccepted()
Get the 'GuaranteesAccepted' element value.

Returns:
value

setGuaranteesAccepted

public void setGuaranteesAccepted(Guarantee.GuaranteesAccepted guaranteesAccepted)
Set the 'GuaranteesAccepted' element value.

Parameters:
guaranteesAccepted -

getDeadline

public DeadlineGroup getDeadline()
Get the 'DeadlineGroup' attributeGroup value. Guarantee deadline, absolute or relative

Returns:
value

setDeadline

public void setDeadline(DeadlineGroup deadline)
Set the 'DeadlineGroup' attributeGroup value. Guarantee deadline, absolute or relative

Parameters:
deadline -

getComments

public Comment getComments()
Get the 'Comments' element value.

Returns:
value

setComments

public void setComments(Comment comments)
Set the 'Comments' element value.

Parameters:
comments -

getGuaranteeDescriptions

public java.util.List<Paragraph> getGuaranteeDescriptions()
Get the list of 'GuaranteeDescription' element items. Text description of the Guarantee in a given language.

Returns:
list

setGuaranteeDescriptions

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

Parameters:
list -

sizeGuaranteeDescriptions

public int sizeGuaranteeDescriptions()
Get the number of 'GuaranteeDescription' element items.

Returns:
count

addGuaranteeDescription

public void addGuaranteeDescription(Paragraph item)
Add a 'GuaranteeDescription' element item.

Parameters:
item -

getGuaranteeDescription

public Paragraph getGuaranteeDescription(int index)
Get 'GuaranteeDescription' element item by position.

Parameters:
index -
Returns:
item

clearGuaranteeDescriptions

public void clearGuaranteeDescriptions()
Remove all 'GuaranteeDescription' element items.


getRetribution

public Guarantee.Retribution getRetribution()
Get the 'RetributionType' attribute value. An enumerated type defining the type of action taken when the deadline has been exceeded. Valid values: Res Automatically Cancelled, Res No Longer Guaranteed.

Returns:
value

setRetribution

public void setRetribution(Guarantee.Retribution retribution)
Set the 'RetributionType' attribute value. An enumerated type defining the type of action taken when the deadline has been exceeded. Valid values: Res Automatically Cancelled, Res No Longer Guaranteed.

Parameters:
retribution -

getGuaranteeCode

public java.lang.String getGuaranteeCode()
Get the 'GuaranteeCode' attribute value. Guarantee Code

Returns:
value

setGuaranteeCode

public void setGuaranteeCode(java.lang.String guaranteeCode)
Set the 'GuaranteeCode' attribute value. Guarantee Code

Parameters:
guaranteeCode -

getGuarantee

public Guarantee.GuaranteeInner getGuarantee()
Get the 'GuaranteeType' attribute value. GuaranteeType : GuaranteeType An enumerated type defining the guarantee to be applied to this reservation.

Returns:
value

setGuarantee

public void setGuarantee(Guarantee.GuaranteeInner guarantee)
Set the 'GuaranteeType' attribute value. GuaranteeType : GuaranteeType An enumerated type defining the guarantee to be applied to this reservation.

Parameters:
guarantee -

getHoldTime

public java.sql.Time getHoldTime()
Get the 'HoldTime' attribute value. The room will held up until this time without a guarantee.

Returns:
value

setHoldTime

public void setHoldTime(java.sql.Time holdTime)
Set the 'HoldTime' attribute value. The room will held up until this time without a guarantee.

Parameters:
holdTime -