org.ota.cruise
Class DiningAvailRQ.DiningRoom

java.lang.Object
  extended by org.ota.shared.Restaurant
      extended by org.ota.cruise.DiningAvailRQ.DiningRoom
Enclosing class:
DiningAvailRQ

public static class DiningAvailRQ.DiningRoom
extends Restaurant

Specifies the requested dining room options . 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="DiningRoom" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RestaurantType">
         <xs:sequence>
           <xs:element name="Seating" minOccurs="0" maxOccurs="3">
             <!-- Reference to inner class Seating -->
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="SmokingCode"/>
         <xs:attribute type="xs:string" use="optional" name="DeckName"/>
         <xs:attributeGroup ref="ns:SmokingIndicatorGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SmokingIndicatorGroup">
   <xs:attribute type="xs:boolean" use="optional" name="SmokingAllowed"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class DiningAvailRQ.DiningRoom.Seating
          Specifies the table size and age categories.
 
Nested classes/interfaces inherited from class org.ota.shared.Restaurant
Restaurant.CuisineCodes, Restaurant.InfoCodes, Restaurant.MultimediaDescriptions
 
Constructor Summary
DiningAvailRQ.DiningRoom()
           
 
Method Summary
 void addSeating(DiningAvailRQ.DiningRoom.Seating item)
          Add a 'Seating' element item.
 void clearSeatings()
          Remove all 'Seating' element items.
 java.lang.String getDeckName()
          Get the 'DeckName' attribute value.
 DiningAvailRQ.DiningRoom.Seating getSeating(int index)
          Get 'Seating' element item by position.
 java.util.List<DiningAvailRQ.DiningRoom.Seating> getSeatings()
          Get the list of 'Seating' element items.
 java.lang.Boolean getSmokingAllowed()
          Get the 'SmokingAllowed' attribute value.
 java.lang.String getSmokingCode()
          Get the 'SmokingCode' attribute value.
 void setDeckName(java.lang.String deckName)
          Set the 'DeckName' attribute value.
 void setSeatings(java.util.List<DiningAvailRQ.DiningRoom.Seating> list)
          Set the list of 'Seating' element items.
 void setSmokingAllowed(java.lang.Boolean smokingAllowed)
          Set the 'SmokingAllowed' attribute value.
 void setSmokingCode(java.lang.String smokingCode)
          Set the 'SmokingCode' attribute value.
 int sizeSeatings()
          Get the number of 'Seating' element items.
 
Methods inherited from class org.ota.shared.Restaurant
getCuisineCodes, getDescriptiveText, getID, getInfoCodes, getInvCode, getMaxSeatingCapacity, getMaxSingleParty, getMultimediaDescriptions, getOfferBreakfast, getOfferBrunch, getOfferDinner, getOfferLunch, getOperationSchedules, getProximityCode, getRelativePosition, getRestaurantName, getSort, setCuisineCodes, setDescriptiveText, setID, setInfoCodes, setInvCode, setMaxSeatingCapacity, setMaxSingleParty, setMultimediaDescriptions, setOfferBreakfast, setOfferBrunch, setOfferDinner, setOfferLunch, setOperationSchedules, setProximityCode, setRelativePosition, setRestaurantName, setSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiningAvailRQ.DiningRoom

public DiningAvailRQ.DiningRoom()
Method Detail

getSeatings

public java.util.List<DiningAvailRQ.DiningRoom.Seating> getSeatings()
Get the list of 'Seating' element items.

Returns:
list

setSeatings

public void setSeatings(java.util.List<DiningAvailRQ.DiningRoom.Seating> list)
Set the list of 'Seating' element items.

Parameters:
list -

sizeSeatings

public int sizeSeatings()
Get the number of 'Seating' element items.

Returns:
count

addSeating

public void addSeating(DiningAvailRQ.DiningRoom.Seating item)
Add a 'Seating' element item.

Parameters:
item -

getSeating

public DiningAvailRQ.DiningRoom.Seating getSeating(int index)
Get 'Seating' element item by position.

Parameters:
index -
Returns:
item

clearSeatings

public void clearSeatings()
Remove all 'Seating' element items.


getSmokingCode

public java.lang.String getSmokingCode()
Get the 'SmokingCode' attribute value. Indicates the guest smoking preference. Refer to OpenTravel Code table Option Type Code (OTC).

Returns:
value

setSmokingCode

public void setSmokingCode(java.lang.String smokingCode)
Set the 'SmokingCode' attribute value. Indicates the guest smoking preference. Refer to OpenTravel Code table Option Type Code (OTC).

Parameters:
smokingCode -

getDeckName

public java.lang.String getDeckName()
Get the 'DeckName' attribute value. Name of the deck on the ship where the dining room is located.

Returns:
value

setDeckName

public void setDeckName(java.lang.String deckName)
Set the 'DeckName' attribute value. Name of the deck on the ship where the dining room is located.

Parameters:
deckName -

getSmokingAllowed

public java.lang.Boolean getSmokingAllowed()
Get the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. false

Returns:
value

setSmokingAllowed

public void setSmokingAllowed(java.lang.Boolean smokingAllowed)
Set the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. false

Parameters:
smokingAllowed -