org.ota.hotel
Class AvailRS.HotelStays.HotelStay.Availability.Restriction

java.lang.Object
  extended by org.ota.hotel.AvailRS.HotelStays.HotelStay.Availability.Restriction
Enclosing class:
AvailRS.HotelStays.HotelStay.Availability

public static class AvailRS.HotelStays.HotelStay.Availability.Restriction
extends java.lang.Object

Restrictions pertaining to the availability. 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="Restriction" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute use="optional" name="RestrictionType">
       <xs:simpleType>
         <!-- Reference to inner class RestrictionInner -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:int" use="optional" name="Time"/>
     <xs:attribute type="ns:TimeUnitType" use="optional" name="TimeUnit"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AvailRS.HotelStays.HotelStay.Availability.Restriction.RestrictionInner
          Schema fragment(s) for this class:
 
Constructor Summary
AvailRS.HotelStays.HotelStay.Availability.Restriction()
           
 
Method Summary
 AvailRS.HotelStays.HotelStay.Availability.Restriction.RestrictionInner getRestriction()
          Get the 'RestrictionType' attribute value.
 java.lang.Integer getTime()
          Get the 'Time' attribute value.
 TimeUnit getTimeUnit()
          Get the 'TimeUnit' attribute value.
 void setRestriction(AvailRS.HotelStays.HotelStay.Availability.Restriction.RestrictionInner restriction)
          Set the 'RestrictionType' attribute value.
 void setTime(java.lang.Integer time)
          Set the 'Time' attribute value.
 void setTimeUnit(TimeUnit timeUnit)
          Set the 'TimeUnit' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS.HotelStays.HotelStay.Availability.Restriction

public AvailRS.HotelStays.HotelStay.Availability.Restriction()
Method Detail

getRestriction

public AvailRS.HotelStays.HotelStay.Availability.Restriction.RestrictionInner getRestriction()
Get the 'RestrictionType' attribute value. Stay restriction that applies to the availability.

Returns:
value

setRestriction

public void setRestriction(AvailRS.HotelStays.HotelStay.Availability.Restriction.RestrictionInner restriction)
Set the 'RestrictionType' attribute value. Stay restriction that applies to the availability.

Parameters:
restriction -

getTime

public java.lang.Integer getTime()
Get the 'Time' attribute value. Used in conjunction with the RestrictionType and the TimeUnit to define the restriction length.

Returns:
value

setTime

public void setTime(java.lang.Integer time)
Set the 'Time' attribute value. Used in conjunction with the RestrictionType and the TimeUnit to define the restriction length.

Parameters:
time -

getTimeUnit

public TimeUnit getTimeUnit()
Get the 'TimeUnit' attribute value. A time unit used to apply this status message to other inventory, and with more granularity than daily. Values: Year, Month, Week, Day, Hour, Minute, Second.

Returns:
value

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)
Set the 'TimeUnit' attribute value. A time unit used to apply this status message to other inventory, and with more granularity than daily. Values: Year, Month, Week, Day, Hour, Minute, Second.

Parameters:
timeUnit -