Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Defines base 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="SailingBaseType">
   <xs:sequence>
     <xs:element name="CruiseLine">
       <xs:complexType>
         <xs:attributeGroup ref="ns:ShipReferenceGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Region" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:RegionGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="DeparturePort" minOccurs="0">
       <!-- Reference to inner class DeparturePort -->
     </xs:element>
     <xs:element name="ArrivalPort" minOccurs="0">
       <!-- Reference to inner class ArrivalPort -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="ListOfSailingDescriptionCode"/>
 </xs:complexType>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class SailingBase
 {
     private ShipReferenceGroup cruiseLine;
     private RegionGroup region;
     private DeparturePort departurePort;
     private ArrivalPort arrivalPort;
     private java.util.List<StringlistOfSailingDescriptionCodes = new java.util.ArrayList<String>();

    
Get the 'ShipReferenceGroup' attributeGroup value. Contains cruise line specific information.

Returns:
value
 
     public ShipReferenceGroup getCruiseLine() {
         return ;
     }

    
Set the 'ShipReferenceGroup' attributeGroup value. Contains cruise line specific information.

Parameters:
cruiseLine
 
     public void setCruiseLine(ShipReferenceGroup cruiseLine) {
         this. = cruiseLine;
     }

    
Get the 'RegionGroup' attributeGroup value. Contains region specific information.

Returns:
value
 
     public RegionGroup getRegion() {
         return ;
     }

    
Set the 'RegionGroup' attributeGroup value. Contains region specific information.

Parameters:
region
 
     public void setRegion(RegionGroup region) {
         this. = region;
     }

    
Get the 'DeparturePort' element value.

Returns:
value
 
     public DeparturePort getDeparturePort() {
         return ;
     }

    
Set the 'DeparturePort' element value.

Parameters:
departurePort
 
     public void setDeparturePort(DeparturePort departurePort) {
         this. = departurePort;
    }

    
Get the 'ArrivalPort' element value.

Returns:
value
    public ArrivalPort getArrivalPort() {
        return ;
    }

    
Set the 'ArrivalPort' element value.

Parameters:
arrivalPort
    public void setArrivalPort(ArrivalPort arrivalPort) {
        this. = arrivalPort;
    }

    
Get the list of 'ListOfSailingDescriptionCode' attribute items. Different qualifiers of the sailing (e.g., groups exist on this sailing; inclusive packages available; or no itinerary description available). Refer to OpenTravel Code Table Sailing Description Code (SAI).

Returns:
list
        return ;
    }

    
Set the list of 'ListOfSailingDescriptionCode' attribute items. Different qualifiers of the sailing (e.g., groups exist on this sailing; inclusive packages available; or no itinerary description available). Refer to OpenTravel Code Table Sailing Description Code (SAI).

Parameters:
list
    public void setListOfSailingDescriptionCodes(java.util.List<Stringlist) {
         = list;
    }

    
Serializer for 'ListOfSailingDescriptionCode' attribute list.

Parameters:
values
Returns:
text
            java.util.List<Stringvalues) {
        if (values == null) {
            return null;
        } else {
            java.lang.StringBuffer buff = new java.lang.StringBuffer();
            for (java.util.Iterator<Stringiter = values.iterator(); iter
                    .hasNext();) {
                if (buff.length() > 0) {
                    buff.append(' ');
                }
                String value = iter.next();
                buff.append(value);
            }
            return buff.toString();
        }
    }

    
Deserializer for 'ListOfSailingDescriptionCode' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            String textthrows org.jibx.runtime.JiBXException {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (java.util.List<String>) org.jibx.runtime.Utility
                .deserializeList(textldser);
    }

    
Get the number of 'ListOfSailingDescriptionCode' attribute items.

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

    
Add a 'ListOfSailingDescriptionCode' attribute item.

Parameters:
item
    public void addListOfSailingDescriptionCode(String item) {
        .add(item);
    }

    
Get 'ListOfSailingDescriptionCode' attribute item by position.

Parameters:
index
Returns:
item
    public String getListOfSailingDescriptionCode(int index) {
        return .get(index);
    }

    
Remove all 'ListOfSailingDescriptionCode' attribute items.
    public void clearListOfSailingDescriptionCodes() {
    }
    
Contains cruise departure port information. Departure port defines the start place of the cruise sailing. 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="DeparturePort" minOccurs="0">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="ns:LocationType">
         <xs:attribute type="xs:dateTime" use="optional" name="EmbarkationTime"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
    public static class DeparturePort
    {
        private Location location;
        private DateTime embarkationTime;

        
Get the extension value.

Returns:
value
        public Location getLocation() {
            return ;
        }

        
Set the extension value.

Parameters:
location
        public void setLocation(Location location) {
            this. = location;
        }

        
Get the 'EmbarkationTime' attribute value.

Returns:
value
        public DateTime getEmbarkationTime() {
            return ;
        }

        
Set the 'EmbarkationTime' attribute value.

Parameters:
embarkationTime
        public void setEmbarkationTime(DateTime embarkationTime) {
            this. = embarkationTime;
        }
    }
    
Contains cruise arrival port information. Arrival port defines the end place of the cruise sailing. 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="ArrivalPort" minOccurs="0">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="ns:LocationType">
         <xs:attribute type="xs:dateTime" name="DebarkationDateTime"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
    public static class ArrivalPort
    {
        private Location location;
        private DateTime debarkationDateTime;

        
Get the extension value.

Returns:
value
        public Location getLocation() {
            return ;
        }

        
Set the extension value.

Parameters:
location
        public void setLocation(Location location) {
            this. = location;
        }

        
Get the 'DebarkationDateTime' attribute value.

Returns:
value
        public DateTime getDebarkationDateTime() {
            return ;
        }

        
Set the 'DebarkationDateTime' attribute value.

Parameters:
debarkationDateTime
        public void setDebarkationDateTime(DateTime debarkationDateTime) {
            this. = debarkationDateTime;
        }
    }
New to GrepCode? Check out our FAQ X