org.ota.hotel
Class HotelDescriptiveContent.FacilityInfo.Restaurants

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.FacilityInfo.Restaurants
Enclosing class:
HotelDescriptiveContent.FacilityInfo

public static class HotelDescriptiveContent.FacilityInfo.Restaurants
extends java.lang.Object

Collection of restaurants offered by hotel. 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:RestaurantsType" name="Restaurants" minOccurs="0"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RestaurantsType">
   <xs:sequence>
     <xs:element name="Restaurant" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Restaurant -->
     </xs:element>
     <xs:element name="SrvcInfoCodes" minOccurs="0">
       <!-- Reference to inner class SrvcInfoCodes -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:int" use="optional" name="Quantity"/>
 </xs:complexType>
 


Nested Class Summary
static class HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant
          Details of a specific restaurant such as type of restaurant, directions, schedules, etc.
static class HotelDescriptiveContent.FacilityInfo.Restaurants.SrvcInfoCodes
          Collection of type of restaurant offered.
 
Constructor Summary
HotelDescriptiveContent.FacilityInfo.Restaurants()
           
 
Method Summary
 void addRestaurant(HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant item)
          Add a 'Restaurant' element item.
 void clearRestaurants()
          Remove all 'Restaurant' element items.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant getRestaurant(int index)
          Get 'Restaurant' element item by position.
 java.util.List<HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant> getRestaurants()
          Get the list of 'Restaurant' element items.
 HotelDescriptiveContent.FacilityInfo.Restaurants.SrvcInfoCodes getSrvcInfoCodes()
          Get the 'SrvcInfoCodes' element value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setRestaurants(java.util.List<HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant> list)
          Set the list of 'Restaurant' element items.
 void setSrvcInfoCodes(HotelDescriptiveContent.FacilityInfo.Restaurants.SrvcInfoCodes srvcInfoCodes)
          Set the 'SrvcInfoCodes' element value.
 int sizeRestaurants()
          Get the number of 'Restaurant' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.FacilityInfo.Restaurants

public HotelDescriptiveContent.FacilityInfo.Restaurants()
Method Detail

getRestaurants

public java.util.List<HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant> getRestaurants()
Get the list of 'Restaurant' element items. Provides detailed information regarding restaurants.

Returns:
list

setRestaurants

public void setRestaurants(java.util.List<HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant> list)
Set the list of 'Restaurant' element items. Provides detailed information regarding restaurants.

Parameters:
list -

sizeRestaurants

public int sizeRestaurants()
Get the number of 'Restaurant' element items.

Returns:
count

addRestaurant

public void addRestaurant(HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant item)
Add a 'Restaurant' element item.

Parameters:
item -

getRestaurant

public HotelDescriptiveContent.FacilityInfo.Restaurants.Restaurant getRestaurant(int index)
Get 'Restaurant' element item by position.

Parameters:
index -
Returns:
item

clearRestaurants

public void clearRestaurants()
Remove all 'Restaurant' element items.


getSrvcInfoCodes

public HotelDescriptiveContent.FacilityInfo.Restaurants.SrvcInfoCodes getSrvcInfoCodes()
Get the 'SrvcInfoCodes' element value. Provides detailed information regarding restaurants.

Returns:
value

setSrvcInfoCodes

public void setSrvcInfoCodes(HotelDescriptiveContent.FacilityInfo.Restaurants.SrvcInfoCodes srvcInfoCodes)
Set the 'SrvcInfoCodes' element value. Provides detailed information regarding restaurants.

Parameters:
srvcInfoCodes -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. Identifies the total number of food and beverage outlets for a property.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. Identifies the total number of food and beverage outlets for a property.

Parameters:
quantity -