org.ota.pkg
Class PkgFlightSegment.CabinAvailability

java.lang.Object
  extended by org.ota.pkg.PkgFlightSegment.CabinAvailability
Enclosing class:
PkgFlightSegment

public static class PkgFlightSegment.CabinAvailability
extends java.lang.Object

Identifies a section of an aircraft, possibly providing extra services. 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:CabinAvailType" name="CabinAvailability" minOccurs="0" maxOccurs="5"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CabinAvailType">
   <xs:sequence>
     <xs:element type="ns:SeatAvailabilityType" name="Seat" maxOccurs="26"/>
     <xs:element name="BaggageAllowance" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:UnitsOfMeasureGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:OptionalCodeOptionalNameGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Meal"/>
 </xs:complexType>
 


Constructor Summary
PkgFlightSegment.CabinAvailability()
           
 
Method Summary
 void addSeat(SeatAvailability item)
          Add a 'Seat' element item.
 void clearSeats()
          Remove all 'Seat' element items.
 UnitsOfMeasureGroup getBaggageAllowance()
          Get the 'UnitsOfMeasureGroup' attributeGroup value.
 java.lang.String getMeal()
          Get the 'Meal' attribute value.
 OptionalCodeOptionalNameGroup getOptionalCodeOptionalNameGroup()
          Get the 'OptionalCodeOptionalNameGroup' attributeGroup value.
 SeatAvailability getSeat(int index)
          Get 'Seat' element item by position.
 java.util.List<SeatAvailability> getSeats()
          Get the list of 'Seat' element items.
 void setBaggageAllowance(UnitsOfMeasureGroup baggageAllowance)
          Set the 'UnitsOfMeasureGroup' attributeGroup value.
 void setMeal(java.lang.String meal)
          Set the 'Meal' attribute value.
 void setOptionalCodeOptionalNameGroup(OptionalCodeOptionalNameGroup optionalCodeOptionalNameGroup)
          Set the 'OptionalCodeOptionalNameGroup' attributeGroup value.
 void setSeats(java.util.List<SeatAvailability> list)
          Set the list of 'Seat' element items.
 int sizeSeats()
          Get the number of 'Seat' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgFlightSegment.CabinAvailability

public PkgFlightSegment.CabinAvailability()
Method Detail

getSeats

public java.util.List<SeatAvailability> getSeats()
Get the list of 'Seat' element items. Specifies seat availability by class withn a cabin

Returns:
list

setSeats

public void setSeats(java.util.List<SeatAvailability> list)
Set the list of 'Seat' element items. Specifies seat availability by class withn a cabin

Parameters:
list -

sizeSeats

public int sizeSeats()
Get the number of 'Seat' element items.

Returns:
count

addSeat

public void addSeat(SeatAvailability item)
Add a 'Seat' element item.

Parameters:
item -

getSeat

public SeatAvailability getSeat(int index)
Get 'Seat' element item by position.

Parameters:
index -
Returns:
item

clearSeats

public void clearSeats()
Remove all 'Seat' element items.


getBaggageAllowance

public UnitsOfMeasureGroup getBaggageAllowance()
Get the 'UnitsOfMeasureGroup' attributeGroup value. Specifies the weight and measurement units for baggage.

Returns:
value

setBaggageAllowance

public void setBaggageAllowance(UnitsOfMeasureGroup baggageAllowance)
Set the 'UnitsOfMeasureGroup' attributeGroup value. Specifies the weight and measurement units for baggage.

Parameters:
baggageAllowance -

getOptionalCodeOptionalNameGroup

public OptionalCodeOptionalNameGroup getOptionalCodeOptionalNameGroup()
Get the 'OptionalCodeOptionalNameGroup' attributeGroup value. Provides a code and/or name for a cabin.

Returns:
value

setOptionalCodeOptionalNameGroup

public void setOptionalCodeOptionalNameGroup(OptionalCodeOptionalNameGroup optionalCodeOptionalNameGroup)
Set the 'OptionalCodeOptionalNameGroup' attributeGroup value. Provides a code and/or name for a cabin.

Parameters:
optionalCodeOptionalNameGroup -

getMeal

public java.lang.String getMeal()
Get the 'Meal' attribute value. Specifies the meal provided.

Returns:
value

setMeal

public void setMeal(java.lang.String meal)
Set the 'Meal' attribute value. Specifies the meal provided.

Parameters:
meal -