|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.ota.hotel.Offer.OfferRules.OfferRule
public static class Offer.OfferRules.OfferRule
Defines conditions for which the offer applies. 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="OfferRule" maxOccurs="99">
<xs:complexType>
<xs:sequence>
<xs:element name="DateRestriction" minOccurs="0" maxOccurs="5">
<!-- Reference to inner class DateRestriction -->
</xs:element>
<xs:element type="ns:LengthsOfStayType" name="LengthsOfStay" minOccurs="0"/>
<xs:element type="ns:DOW_RestrictionsType" name="DOW_Restrictions" minOccurs="0"/>
<xs:element name="Occupancy" minOccurs="0" maxOccurs="5">
<!-- Reference to inner class Occupancy -->
</xs:element>
<xs:element name="Inventories" minOccurs="0">
<!-- Reference to inner class Inventories -->
</xs:element>
</xs:sequence>
<xs:attribute type="ns:DayOfWeekType" use="optional" name="StayOverDate"/>
<xs:attribute type="xs:int" use="optional" name="MinTotalOccupancy"/>
<xs:attribute type="xs:int" use="optional" name="MaxTotalOccupancy"/>
<xs:attribute type="xs:int" use="optional" name="MaxContiguousBookings"/>
<xs:attribute type="xs:string" use="optional" name="MaxAdvancedBookingOffset"/>
<xs:attribute type="xs:string" use="optional" name="MinAdvancedBookingOffset"/>
</xs:complexType>
</xs:element>
| Nested Class Summary | |
|---|---|
static class |
Offer.OfferRules.OfferRule.DateRestriction
Defines date restrictions for booking and/or stays with this offer. |
static class |
Offer.OfferRules.OfferRule.Inventories
Collection of inventory. |
static class |
Offer.OfferRules.OfferRule.Occupancy
Provides parameters of occupancy limits. |
| Constructor Summary | |
|---|---|
Offer.OfferRules.OfferRule()
|
|
| Method Summary | |
|---|---|
void |
addDateRestriction(Offer.OfferRules.OfferRule.DateRestriction item)
Add a 'DateRestriction' element item. |
void |
addOccupancy(Offer.OfferRules.OfferRule.Occupancy item)
Add a 'Occupancy' element item. |
void |
clearDateRestrictions()
Remove all 'DateRestriction' element items. |
void |
clearOccupancies()
Remove all 'Occupancy' element items. |
Offer.OfferRules.OfferRule.DateRestriction |
getDateRestriction(int index)
Get 'DateRestriction' element item by position. |
java.util.List<Offer.OfferRules.OfferRule.DateRestriction> |
getDateRestrictions()
Get the list of 'DateRestriction' element items. |
DOWRestrictions |
getDOWRestrictions()
Get the 'DOW_Restrictions' element value. |
Offer.OfferRules.OfferRule.Inventories |
getInventories()
Get the 'Inventories' element value. |
LengthsOfStay |
getLengthsOfStay()
Get the 'LengthsOfStay' element value. |
java.lang.String |
getMaxAdvancedBookingOffset()
Get the 'MaxAdvancedBookingOffset' attribute value. |
java.lang.Integer |
getMaxContiguousBookings()
Get the 'MaxContiguousBookings' attribute value. |
java.lang.Integer |
getMaxTotalOccupancy()
Get the 'MaxTotalOccupancy' attribute value. |
java.lang.String |
getMinAdvancedBookingOffset()
Get the 'MinAdvancedBookingOffset' attribute value. |
java.lang.Integer |
getMinTotalOccupancy()
Get the 'MinTotalOccupancy' attribute value. |
java.util.List<Offer.OfferRules.OfferRule.Occupancy> |
getOccupancies()
Get the list of 'Occupancy' element items. |
Offer.OfferRules.OfferRule.Occupancy |
getOccupancy(int index)
Get 'Occupancy' element item by position. |
DayOfWeek |
getStayOverDate()
Get the 'StayOverDate' attribute value. |
void |
setDateRestrictions(java.util.List<Offer.OfferRules.OfferRule.DateRestriction> list)
Set the list of 'DateRestriction' element items. |
void |
setDOWRestrictions(DOWRestrictions DOWRestrictions)
Set the 'DOW_Restrictions' element value. |
void |
setInventories(Offer.OfferRules.OfferRule.Inventories inventories)
Set the 'Inventories' element value. |
void |
setLengthsOfStay(LengthsOfStay lengthsOfStay)
Set the 'LengthsOfStay' element value. |
void |
setMaxAdvancedBookingOffset(java.lang.String maxAdvancedBookingOffset)
Set the 'MaxAdvancedBookingOffset' attribute value. |
void |
setMaxContiguousBookings(java.lang.Integer maxContiguousBookings)
Set the 'MaxContiguousBookings' attribute value. |
void |
setMaxTotalOccupancy(java.lang.Integer maxTotalOccupancy)
Set the 'MaxTotalOccupancy' attribute value. |
void |
setMinAdvancedBookingOffset(java.lang.String minAdvancedBookingOffset)
Set the 'MinAdvancedBookingOffset' attribute value. |
void |
setMinTotalOccupancy(java.lang.Integer minTotalOccupancy)
Set the 'MinTotalOccupancy' attribute value. |
void |
setOccupancies(java.util.List<Offer.OfferRules.OfferRule.Occupancy> list)
Set the list of 'Occupancy' element items. |
void |
setStayOverDate(DayOfWeek stayOverDate)
Set the 'StayOverDate' attribute value. |
int |
sizeDateRestrictions()
Get the number of 'DateRestriction' element items. |
int |
sizeOccupancies()
Get the number of 'Occupancy' element items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Offer.OfferRules.OfferRule()
| Method Detail |
|---|
public java.util.List<Offer.OfferRules.OfferRule.DateRestriction> getDateRestrictions()
public void setDateRestrictions(java.util.List<Offer.OfferRules.OfferRule.DateRestriction> list)
list - public int sizeDateRestrictions()
public void addDateRestriction(Offer.OfferRules.OfferRule.DateRestriction item)
item - public Offer.OfferRules.OfferRule.DateRestriction getDateRestriction(int index)
index -
public void clearDateRestrictions()
public LengthsOfStay getLengthsOfStay()
public void setLengthsOfStay(LengthsOfStay lengthsOfStay)
lengthsOfStay - public DOWRestrictions getDOWRestrictions()
public void setDOWRestrictions(DOWRestrictions DOWRestrictions)
DOWRestrictions - public java.util.List<Offer.OfferRules.OfferRule.Occupancy> getOccupancies()
public void setOccupancies(java.util.List<Offer.OfferRules.OfferRule.Occupancy> list)
list - public int sizeOccupancies()
public void addOccupancy(Offer.OfferRules.OfferRule.Occupancy item)
item - public Offer.OfferRules.OfferRule.Occupancy getOccupancy(int index)
index -
public void clearOccupancies()
public Offer.OfferRules.OfferRule.Inventories getInventories()
public void setInventories(Offer.OfferRules.OfferRule.Inventories inventories)
inventories - public DayOfWeek getStayOverDate()
public void setStayOverDate(DayOfWeek stayOverDate)
stayOverDate - public java.lang.Integer getMinTotalOccupancy()
public void setMinTotalOccupancy(java.lang.Integer minTotalOccupancy)
minTotalOccupancy - public java.lang.Integer getMaxTotalOccupancy()
public void setMaxTotalOccupancy(java.lang.Integer maxTotalOccupancy)
maxTotalOccupancy - public java.lang.Integer getMaxContiguousBookings()
public void setMaxContiguousBookings(java.lang.Integer maxContiguousBookings)
maxContiguousBookings - public java.lang.String getMaxAdvancedBookingOffset()
public void setMaxAdvancedBookingOffset(java.lang.String maxAdvancedBookingOffset)
maxAdvancedBookingOffset - public java.lang.String getMinAdvancedBookingOffset()
public void setMinAdvancedBookingOffset(java.lang.String minAdvancedBookingOffset)
minAdvancedBookingOffset -
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||