org.ota.hotel
Class Offer.OfferRules.OfferRule.DateRestriction

java.lang.Object
  extended by org.ota.hotel.Offer.OfferRules.OfferRule.DateRestriction
Enclosing class:
Offer.OfferRules.OfferRule

public static class Offer.OfferRules.OfferRule.DateRestriction
extends java.lang.Object

Defines date restrictions for booking and/or stays with this offer. 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="DateRestriction" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
     <xs:attribute use="optional" name="RestrictionType">
       <xs:simpleType>
         <!-- Reference to inner class Restriction -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class Offer.OfferRules.OfferRule.DateRestriction.Restriction
          Schema fragment(s) for this class:
 
Constructor Summary
Offer.OfferRules.OfferRule.DateRestriction()
           
 
Method Summary
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 Offer.OfferRules.OfferRule.DateRestriction.Restriction getRestriction()
          Get the 'RestrictionType' attribute value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setRestriction(Offer.OfferRules.OfferRule.DateRestriction.Restriction restriction)
          Set the 'RestrictionType' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Offer.OfferRules.OfferRule.DateRestriction

public Offer.OfferRules.OfferRule.DateRestriction()
Method Detail

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. The date or date range to which the date restriction applies.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. The date or date range to which the date restriction applies.

Parameters:
dateTimeSpanGroup -

getRestriction

public Offer.OfferRules.OfferRule.DateRestriction.Restriction getRestriction()
Get the 'RestrictionType' attribute value. The type of date restriction being defined.

Returns:
value

setRestriction

public void setRestriction(Offer.OfferRules.OfferRule.DateRestriction.Restriction restriction)
Set the 'RestrictionType' attribute value. The type of date restriction being defined.

Parameters:
restriction -