Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
Specifies sailing information. 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="SailingType">
   <xs:complexContent>
     <xs:extension base="ns:SailingInfoType">
       <xs:sequence>
         <xs:element name="Dining" minOccurs="0" maxOccurs="3">
           <!-- Reference to inner class Dining -->
         </xs:element>
         <xs:element type="ns:GuestTransportationType" name="Transportation" minOccurs="0" maxOccurs="5"/>
         <xs:element type="ns:ParagraphType" name="Information" minOccurs="0" maxOccurs="5"/>
       </xs:sequence>
       <xs:attribute type="xs:int" use="optional" name="MaxCabinOccupancy"/>
       <xs:attribute type="ns:CategoryLocationType" use="optional" name="CategoryLocation"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 
 
 public class Sailing extends SailingInfo
 {
     private List<DiningdiningList = new ArrayList<Dining>();
     private List<ParagraphinformationList = new ArrayList<Paragraph>();
     private Integer maxCabinOccupancy;
     private CategoryLocation categoryLocation;

    
Get the list of 'Dining' element items.

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

    
Set the list of 'Dining' element items.

Parameters:
list
 
     public void setDiningList(List<Dininglist) {
          = list;
     }

    
Get the number of 'Dining' element items.

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

    
Add a 'Dining' element item.

Parameters:
item
 
     public void addDining(Dining item) {
         .add(item);
     }

    
Get 'Dining' element item by position.

Parameters:
index
Returns:
item
 
     public Dining getDining(int index) {
         return .get(index);
     }

    
Remove all 'Dining' element items.
 
     public void clearDiningList() {
         .clear();
     }

    
Get the list of 'Transportation' element items. Specifies the mode of the transportation from the guest location to the cruise port of departure.

Returns:
list
 
         return ;
     }

    
Set the list of 'Transportation' element items. Specifies the mode of the transportation from the guest location to the cruise port of departure.

Parameters:
list
    public void setTransportationList(List<GuestTransportationlist) {
         = list;
    }

    
Get the number of 'Transportation' element items.

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

    
Add a 'Transportation' element item.

Parameters:
item
    public void addTransportation(GuestTransportation item) {
        .add(item);
    }

    
Get 'Transportation' element item by position.

Parameters:
index
Returns:
item
    public GuestTransportation getTransportation(int index) {
        return .get(index);
    }

    
Remove all 'Transportation' element items.
    public void clearTransportationList() {
        .clear();
    }

    
Get the list of 'Information' element items. Specifies cruise line registration procedures and other free text information. The name attribute is used to define the type of information. Registration procedures are messages that advise customers who are not registered with the cruise line how to do so. Usually non registered customers cannot get access to the cruise line inventory.

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

    
Set the list of 'Information' element items. Specifies cruise line registration procedures and other free text information. The name attribute is used to define the type of information. Registration procedures are messages that advise customers who are not registered with the cruise line how to do so. Usually non registered customers cannot get access to the cruise line inventory.

Parameters:
list
    public void setInformationList(List<Paragraphlist) {
         = list;
    }

    
Get the number of 'Information' element items.

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

    
Add a 'Information' element item.

Parameters:
item
    public void addInformation(Paragraph item) {
        .add(item);
    }

    
Get 'Information' element item by position.

Parameters:
index
Returns:
item
    public Paragraph getInformation(int index) {
        return .get(index);
    }

    
Remove all 'Information' element items.
    public void clearInformationList() {
        .clear();
    }

    
Get the 'MaxCabinOccupancy' attribute value. Maximum cabin occupancy available on this specific sailing (ship).

Returns:
value
    public Integer getMaxCabinOccupancy() {
        return ;
    }

    
Set the 'MaxCabinOccupancy' attribute value. Maximum cabin occupancy available on this specific sailing (ship).

Parameters:
maxCabinOccupancy
    public void setMaxCabinOccupancy(Integer maxCabinOccupancy) {
        this. = maxCabinOccupancy;
    }

    
Get the 'CategoryLocation' attribute value. Specifies the different category locations available on the ship.

Returns:
value
        return ;
    }

    
Set the 'CategoryLocation' attribute value. Specifies the different category locations available on the ship.

Parameters:
categoryLocation
    public void setCategoryLocation(CategoryLocation categoryLocation) {
        this. = categoryLocation;
    }
    
Identifies the availability of the particular sitting. 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="Dining" minOccurs="0" maxOccurs="3">
   <xs:complexType>
     <xs:attribute type="xs:string" use="required" name="Sitting"/>
     <xs:attribute type="xs:string" use="optional" name="Status"/>
   </xs:complexType>
 </xs:element>
 
    public static class Dining
    {
        private String sitting;
        private String status;

        
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;
        }

        
Get the 'Status' attribute value. Indicates the dining status. Refer to OpenTravel Code table Status (STS).

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

        
Set the 'Status' attribute value. Indicates the dining status. Refer to OpenTravel Code table Status (STS).

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