Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
The Dining Availability Request message requests Dining Availability for a given sailing and for selected fares (depending on the cruise line). 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="OTA_CruiseDiningAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:GuestType" name="Guest" minOccurs="0" maxOccurs="9"/>
       <xs:element name="GuestCounts">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="GuestCount" maxOccurs="9">
               <xs:complexType>
                 <xs:attributeGroup ref="ns:TravelerCountGroup"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:SailingInfoType" name="SailingInfo"/>
       <xs:element name="DiningRoom" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class DiningRoom -->
       </xs:element>
       <xs:element name="SelectedFare" maxOccurs="5">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FareGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class DiningAvailRQ
 {
     private POS POS;
     private List<GuestguestList = new ArrayList<Guest>();
     private SailingInfo sailingInfo;
     private List<DiningRoomdiningRoomList = new ArrayList<DiningRoom>();
     private List<FareGroupselectedFareList = new ArrayList<FareGroup>();
     private TPAExtensions TPAExtensions;
Get the 'POS' element value. Point of sale object.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of sale object.

Parameters:
POS
 
     public void setPOS(POS POS) {
         this. = POS;
     }

    
Get the list of 'Guest' element items. Specifies guest names and/or their transportation.

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

    
Set the list of 'Guest' element items. Specifies guest names and/or their transportation.

Parameters:
list
 
     public void setGuestList(List<Guestlist) {
          = list;
     }

    
Get the number of 'Guest' element items.

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

    
Add a 'Guest' element item.

Parameters:
item
    public void addGuest(Guest item) {
        .add(item);
    }

    
Get 'Guest' element item by position.

Parameters:
index
Returns:
item
    public Guest getGuest(int index) {
        return .get(index);
    }

    
Remove all 'Guest' element items.
    public void clearGuestList() {
        .clear();
    }

    
Get the list of 'GuestCount' element items. Specifies guest quantity and guest types.

Returns:
list
        return ;
    }

    
Set the list of 'GuestCount' element items. Specifies guest quantity and guest types.

Parameters:
list
    public void setGuestCountList(List<TravelerCountGrouplist) {
         = list;
    }

    
Get the number of 'GuestCount' element items.

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

    
Add a 'GuestCount' element item.

Parameters:
item
    public void addGuestCount(TravelerCountGroup item) {
        .add(item);
    }

    
Get 'GuestCount' element item by position.

Parameters:
index
Returns:
item
    public TravelerCountGroup getGuestCount(int index) {
        return .get(index);
    }

    
Remove all 'GuestCount' element items.
    public void clearGuestCountList() {
        .clear();
    }

    
Get the 'SailingInfo' element value. Contains information related to the selected sailing.Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Returns:
value
    public SailingInfo getSailingInfo() {
        return ;
    }

    
Set the 'SailingInfo' element value. Contains information related to the selected sailing.Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Parameters:
sailingInfo
    public void setSailingInfo(SailingInfo sailingInfo) {
        this. = sailingInfo;
    }

    
Get the list of 'DiningRoom' element items.

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

    
Set the list of 'DiningRoom' element items.

Parameters:
list
    public void setDiningRoomList(List<DiningRoomlist) {
         = list;
    }

    
Get the number of 'DiningRoom' element items.

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

    
Add a 'DiningRoom' element item.

Parameters:
item
    public void addDiningRoom(DiningRoom item) {
        .add(item);
    }

    
Get 'DiningRoom' element item by position.

Parameters:
index
Returns:
item
    public DiningRoom getDiningRoom(int index) {
        return .get(index);
    }

    
Remove all 'DiningRoom' element items.
    public void clearDiningRoomList() {
        .clear();
    }

    
Get the list of 'SelectedFare' element items. Specifies the fare code and the group code.

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

    
Set the list of 'SelectedFare' element items. Specifies the fare code and the group code.

Parameters:
list
    public void setSelectedFareList(List<FareGrouplist) {
         = list;
    }

    
Get the number of 'SelectedFare' element items.

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

    
Add a 'SelectedFare' element item.

Parameters:
item
    public void addSelectedFare(FareGroup item) {
        .add(item);
    }

    
Get 'SelectedFare' element item by position.

Parameters:
index
Returns:
item
    public FareGroup getSelectedFare(int index) {
        return .get(index);
    }

    
Remove all 'SelectedFare' element items.
    public void clearSelectedFareList() {
        .clear();
    }

    
Get the 'TPA_Extensions' element value.

Returns:
value
    public TPAExtensions getTPAExtensions() {
        return ;
    }

    
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
    public void setTPAExtensions(TPAExtensions TPAExtensions) {
        this. = TPAExtensions;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }
    
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>
 
    public static class DiningRoom extends Restaurant
    {
        private List<SeatingseatingList = new ArrayList<Seating>();
        private String smokingCode;
        private String deckName;
        private Boolean smokingAllowed;

        
Get the list of 'Seating' element items.

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

        
Set the list of 'Seating' element items.

Parameters:
list
        public void setSeatingList(List<Seatinglist) {
             = list;
        }

        
Get the number of 'Seating' element items.

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

        
Add a 'Seating' element item.

Parameters:
item
        public void addSeating(Seating item) {
            .add(item);
        }

        
Get 'Seating' element item by position.

Parameters:
index
Returns:
item
        public Seating getSeating(int index) {
            return .get(index);
        }

        
Remove all 'Seating' element items.
        public void clearSeatingList() {
            .clear();
        }

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

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

        
Set the 'SmokingCode' attribute value. Indicates the guest smoking preference. Refer to OpenTravel Code table Option Type Code (OTC).

Parameters:
smokingCode
        public void setSmokingCode(String smokingCode) {
            this. = smokingCode;
        }

        
Get the 'DeckName' attribute value. Name of the deck on the ship where the dining room is located.

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

        
Set the 'DeckName' attribute value. Name of the deck on the ship where the dining room is located.

Parameters:
deckName
        public void setDeckName(String deckName) {
            this. = deckName;
        }

        
Get the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. <LegacyDefaultValue>false</LegacyDefaultValue>

Returns:
value
        public Boolean getSmokingAllowed() {
            return ;
        }

        
Set the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. <LegacyDefaultValue>false</LegacyDefaultValue>

Parameters:
smokingAllowed
        public void setSmokingAllowed(Boolean smokingAllowed) {
            this. = smokingAllowed;
        }
        
Specifies the table size and age categories. 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="Seating" minOccurs="0" maxOccurs="3">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="TableSize"/>
     <xs:attribute type="xs:string" use="optional" name="AgeCode"/>
     <xs:attribute type="xs:string" use="optional" name="Sitting"/>
   </xs:complexType>
 </xs:element>
 
        public static class Seating
        {
            private String tableSize;
            private String ageCode;
            private String sitting;

            
Get the 'TableSize' attribute value. Specifies the table size of the dining room.

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

            
Set the 'TableSize' attribute value. Specifies the table size of the dining room.

Parameters:
tableSize
            public void setTableSize(String tableSize) {
                this. = tableSize;
            }

            
Get the 'AgeCode' attribute value. Refer to OpenTravel Code List Age Qualifying Code (AQC).

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

            
Set the 'AgeCode' attribute value. Refer to OpenTravel Code List Age Qualifying Code (AQC).

Parameters:
ageCode
            public void setAgeCode(String ageCode) {
                this. = ageCode;
            }

            
Get the 'Sitting' attribute value. Dining service. Typical values are: first, second, third, open.

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

            
Set the 'Sitting' attribute value. Dining service. Typical values are: first, second, third, open.

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