Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2011B.pkg;
  
  import java.util.List;
Identifies a section of an aircraft, possibly providing extra services. 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="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>
 
 
 public class CabinAvail
 {
     private List<SeatAvailabilityseatList = new ArrayList<SeatAvailability>();
     private String meal;

    
Get the list of 'Seat' element items. Specifies seat availability by class withn a cabin

Returns:
list
 
     public List<SeatAvailabilitygetSeatList() {
         return ;
     }

    
Set the list of 'Seat' element items. Specifies seat availability by class withn a cabin

Parameters:
list
 
     public void setSeatList(List<SeatAvailabilitylist) {
          = list;
     }

    
Get the number of 'Seat' element items.

Returns:
count
 
     public int sizeSeatList() {
         return .size();
     }

    
Add a 'Seat' element item.

Parameters:
item
 
     public void addSeat(SeatAvailability item) {
         .add(item);
     }

    
Get 'Seat' element item by position.

Parameters:
index
Returns:
item
 
     public SeatAvailability getSeat(int index) {
         return .get(index);
     }

    
Remove all 'Seat' element items.
 
     public void clearSeatList() {
         .clear();
     }

    
Get the 'UnitsOfMeasureGroup' attributeGroup value. Specifies the weight and measurement units for baggage.

Returns:
value
 
         return ;
     }

    
Set the 'UnitsOfMeasureGroup' attributeGroup value. Specifies the weight and measurement units for baggage.

Parameters:
baggageAllowance
 
     public void setBaggageAllowance(UnitsOfMeasureGroup baggageAllowance) {
        this. = baggageAllowance;
    }

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

Returns:
value
        return ;
    }

    
Set the 'OptionalCodeOptionalNameGroup' attributeGroup value. Provides a code and/or name for a cabin.

Parameters:
optionalCodeOptionalNameGroup
            OptionalCodeOptionalNameGroup optionalCodeOptionalNameGroup) {
        this. = optionalCodeOptionalNameGroup;
    }

    
Get the 'Meal' attribute value. Specifies the meal provided.

Returns:
value
    public String getMeal() {
        return ;
    }

    
Set the 'Meal' attribute value. Specifies the meal provided.

Parameters:
meal
    public void setMeal(String meal) {
        this. = meal;
    }
New to GrepCode? Check out our FAQ X