org.ota.cruise
Class CruisePackage

java.lang.Object
  extended by org.ota.cruise.CruisePackage
Direct Known Subclasses:
CruiseGuestInfo.GuestDetail.SelectedPackages.SelectedPackage, PkgAvailRS.CruisePackages.CruisePackage, ShorexAvailRS.ShorexPackages.ShorexPackage

public class CruisePackage
extends java.lang.Object

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>
 


Nested Class Summary
static class CruisePackage.Location
          Specifies the activity location (e.g., port city for excursion, bus stop for transfer).
 
Constructor Summary
CruisePackage()
           
 
Method Summary
 void addLocation(CruisePackage.Location item)
          Add a 'Location' element item.
 void clearLocations()
          Remove all 'Location' element items.
 CruisePackageGroup getCruisePackageGroup()
          Get the 'CruisePackageGroup' attributeGroup value.
 CruisePackage.Location getLocation(int index)
          Get 'Location' element item by position.
 java.util.List<CruisePackage.Location> getLocations()
          Get the list of 'Location' element items.
 java.lang.String getPackageTypeCode()
          Get the 'PackageTypeCode' attribute value.
 java.lang.String getStatus()
          Get the 'Status' attribute value.
 void setCruisePackageGroup(CruisePackageGroup cruisePackageGroup)
          Set the 'CruisePackageGroup' attributeGroup value.
 void setLocations(java.util.List<CruisePackage.Location> list)
          Set the list of 'Location' element items.
 void setPackageTypeCode(java.lang.String packageTypeCode)
          Set the 'PackageTypeCode' attribute value.
 void setStatus(java.lang.String status)
          Set the 'Status' attribute value.
 int sizeLocations()
          Get the number of 'Location' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CruisePackage

public CruisePackage()
Method Detail

getLocations

public java.util.List<CruisePackage.Location> getLocations()
Get the list of 'Location' element items.

Returns:
list

setLocations

public void setLocations(java.util.List<CruisePackage.Location> list)
Set the list of 'Location' element items.

Parameters:
list -

sizeLocations

public int sizeLocations()
Get the number of 'Location' element items.

Returns:
count

addLocation

public void addLocation(CruisePackage.Location item)
Add a 'Location' element item.

Parameters:
item -

getLocation

public CruisePackage.Location getLocation(int index)
Get 'Location' element item by position.

Parameters:
index -
Returns:
item

clearLocations

public void clearLocations()
Remove all 'Location' element items.


getPackageTypeCode

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

Returns:
value

setPackageTypeCode

public void setPackageTypeCode(java.lang.String packageTypeCode)
Set the 'PackageTypeCode' attribute value. Specifies the type of the package. Refer to OpenTravel Codelist Cruise Package Type (CPK).

Parameters:
packageTypeCode -

getCruisePackageGroup

public CruisePackageGroup getCruisePackageGroup()
Get the 'CruisePackageGroup' attributeGroup value.

Returns:
value

setCruisePackageGroup

public void setCruisePackageGroup(CruisePackageGroup cruisePackageGroup)
Set the 'CruisePackageGroup' attributeGroup value.

Parameters:
cruisePackageGroup -

getStatus

public java.lang.String getStatus()
Get the 'Status' attribute value. Specifies the Status of the package. Refer to OpenTravel Code table Status (STS).

Returns:
value

setStatus

public void setStatus(java.lang.String status)
Set the 'Status' attribute value. Specifies the Status of the package. Refer to OpenTravel Code table Status (STS).

Parameters:
status -