org.ota.shared
Class MealPref

java.lang.Object
  extended by org.ota.shared.MealPref

public class MealPref
extends java.lang.Object

Identifies a food and beverage preference. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MealPrefType">
   <xs:simpleContent>
     <xs:extension base="xs:string">
       <xs:attributeGroup ref="ns:PreferLevelGroup"/>
       <xs:attribute type="ns:MealType" name="MealType"/>
       <xs:attribute type="xs:string" name="FavoriteFood"/>
       <xs:attribute type="xs:string" name="Beverage"/>
     </xs:extension>
   </xs:simpleContent>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PreferLevelGroup">
   <xs:attribute type="ns:PreferLevelType" use="optional" name="PreferLevel"/>
 </xs:attributeGroup>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MealType">
   <!-- Reference to inner class Meal -->
 </xs:simpleType>
 


Nested Class Summary
static class MealPref.Meal
          Airline meal types.
 
Constructor Summary
MealPref()
           
 
Method Summary
 java.lang.String getBeverage()
          Get the 'Beverage' attribute value.
 java.lang.String getFavoriteFood()
          Get the 'FavoriteFood' attribute value.
 MealPref.Meal getMeal()
          Get the 'MealType' attribute value.
 PreferLevel getPreferLevel()
          Get the 'PreferLevel' attribute value.
 java.lang.String getString()
          Get the extension value.
 void setBeverage(java.lang.String beverage)
          Set the 'Beverage' attribute value.
 void setFavoriteFood(java.lang.String favoriteFood)
          Set the 'FavoriteFood' attribute value.
 void setMeal(MealPref.Meal meal)
          Set the 'MealType' attribute value.
 void setPreferLevel(PreferLevel preferLevel)
          Set the 'PreferLevel' attribute value.
 void setString(java.lang.String string)
          Set the extension value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MealPref

public MealPref()
Method Detail

getString

public java.lang.String getString()
Get the extension value.

Returns:
value

setString

public void setString(java.lang.String string)
Set the extension value.

Parameters:
string -

getPreferLevel

public PreferLevel getPreferLevel()
Get the 'PreferLevel' attribute value. Used to indicate a level of preference for an associated item. Preferred

Returns:
value

setPreferLevel

public void setPreferLevel(PreferLevel preferLevel)
Set the 'PreferLevel' attribute value. Used to indicate a level of preference for an associated item. Preferred

Parameters:
preferLevel -

getMeal

public MealPref.Meal getMeal()
Get the 'MealType' attribute value. Type of meal required (e.g.,vegetarian, Kosher, low fat, etc.)

Returns:
value

setMeal

public void setMeal(MealPref.Meal meal)
Set the 'MealType' attribute value. Type of meal required (e.g.,vegetarian, Kosher, low fat, etc.)

Parameters:
meal -

getFavoriteFood

public java.lang.String getFavoriteFood()
Get the 'FavoriteFood' attribute value. Dining preferences used with this collection.

Returns:
value

setFavoriteFood

public void setFavoriteFood(java.lang.String favoriteFood)
Set the 'FavoriteFood' attribute value. Dining preferences used with this collection.

Parameters:
favoriteFood -

getBeverage

public java.lang.String getBeverage()
Get the 'Beverage' attribute value. Type of drink(s) preferred.

Returns:
value

setBeverage

public void setBeverage(java.lang.String beverage)
Set the 'Beverage' attribute value. Type of drink(s) preferred.

Parameters:
beverage -