Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
Defines pre/post/shorex/bus/transfers packages. 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="CruisePackageType">
   <xs:sequence>
     <xs:element name="Location" minOccurs="0" maxOccurs="16">
       <!-- Reference to inner class Location -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="required" name="PackageTypeCode"/>
   <xs:attributeGroup ref="ns:CruisePackageGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
 </xs:complexType>
 
 
 public class CruisePackage
 {
     private List<LocationlocationList = new ArrayList<Location>();
     private String packageTypeCode;
     private String status;

    
Get the list of 'Location' element items.

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

    
Set the list of 'Location' element items.

Parameters:
list
 
     public void setLocationList(List<Locationlist) {
          = list;
     }

    
Get the number of 'Location' element items.

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

    
Add a 'Location' element item.

Parameters:
item
 
     public void addLocation(Location item) {
         .add(item);
     }

    
Get 'Location' element item by position.

Parameters:
index
Returns:
item
 
     public Location getLocation(int index) {
         return .get(index);
     }

    
Remove all 'Location' element items.
 
     public void clearLocationList() {
         .clear();
     }

    
Get the 'PackageTypeCode' attribute value. Specifies the type of the package. Refer to OpenTravel Codelist Cruise Package Type (CPK).

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

    
Set the 'PackageTypeCode' attribute value. Specifies the type of the package. Refer to OpenTravel Codelist Cruise Package Type (CPK).

Parameters:
packageTypeCode
 
     public void setPackageTypeCode(String packageTypeCode) {
        this. = packageTypeCode;
    }

    
Get the 'CruisePackageGroup' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'CruisePackageGroup' attributeGroup value.

Parameters:
cruisePackageGroup
    public void setCruisePackageGroup(CruisePackageGroup cruisePackageGroup) {
        this. = cruisePackageGroup;
    }

    
Get the 'Status' attribute value. Specifies the Status of the package. Refer to OpenTravel Code table Status (STS).

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

    
Set the 'Status' attribute value. Specifies the Status of the package. Refer to OpenTravel Code table Status (STS).

Parameters:
status
    public void setStatus(String status) {
        this. = status;
    }
    
Specifies the activity location (e.g., port city for excursion, bus stop for transfer). 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="Location" minOccurs="0" maxOccurs="16">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:LocationGeneralType">
         <xs:sequence>
           <xs:element type="ns:ParagraphType" name="Information" minOccurs="0"/>
         </xs:sequence>
         <xs:attributeGroup ref="ns:LocationGroup"/>
         <xs:attribute type="xs:string" use="optional" name="LocationName"/>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class Location extends LocationGeneral
    {
        private Paragraph information;
        private LocationGroup locationGroup;
        private String locationName;
        private DateTimeSpanGroup dateTimeSpanGroup;

        
Get the 'Information' element value. Provides additional information pertaining to the location or cruise package.

Returns:
value
        public Paragraph getInformation() {
            return ;
        }

        
Set the 'Information' element value. Provides additional information pertaining to the location or cruise package.

Parameters:
information
        public void setInformation(Paragraph information) {
            this. = information;
        }

        
Get the 'LocationGroup' attributeGroup value.

Returns:
value
        public LocationGroup getLocationGroup() {
            return ;
        }

        
Set the 'LocationGroup' attributeGroup value.

Parameters:
locationGroup
        public void setLocationGroup(LocationGroup locationGroup) {
            this. = locationGroup;
        }

        
Get the 'LocationName' attribute value. Specifies the full name of the port city.

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

        
Set the 'LocationName' attribute value. Specifies the full name of the port city.

Parameters:
locationName
        public void setLocationName(String locationName) {
            this. = locationName;
        }

        
Get the 'DateTimeSpanGroup' attributeGroup value. Period of time for which you'll be at a particular location. Typically when a hotel, this is the check-in date and time and check-out date and time or if this is a bus stop, it will be the date and time of pick-up and date and time for drop-off .

Returns:
value
        public DateTimeSpanGroup getDateTimeSpanGroup() {
            return ;
        }

        
Set the 'DateTimeSpanGroup' attributeGroup value. Period of time for which you'll be at a particular location. Typically when a hotel, this is the check-in date and time and check-out date and time or if this is a bus stop, it will be the date and time of pick-up and date and time for drop-off .

Parameters:
dateTimeSpanGroup
        public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
            this. = dateTimeSpanGroup;
        }
    }
New to GrepCode? Check out our FAQ X