Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012A.pkg;
   
   import java.util.ArrayList;
   import java.util.List;
The message details the availability of a requested package. 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_PkgAvailRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="Package" minOccurs="0">
           <!-- Reference to inner class _Package -->
         </xs:element>
         <xs:element name="TravelChoices" minOccurs="0">
           <!-- Reference to inner class TravelChoices -->
         </xs:element>
         <xs:element name="AccommodationChoices" minOccurs="0">
           <!-- Reference to inner class AccommodationChoices -->
         </xs:element>
         <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:CompanyID_AttributesGroup"/>
     <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
   </xs:complexType>
 </xs:element>
 
  
  public class AvailRS
  {
      private int choiceSelect = -1;
      private static final int SUCCESS_CHOICE = 0;
      private static final int ERRORS_CHOICE = 1;
      private Success success;
      private Warnings warnings;
      private _Package _package;
      private TravelChoices travelChoices;
      private TPAExtensions TPAExtensions;
      private Errors errors;
      private CurrencyCodeGroup currencyCodeGroup;
  
      private void setChoiceSelect(int choice) {
          if ( == -1) {
               = choice;
          } else if ( != choice) {
              throw new IllegalStateException(
                      "Need to call clearChoiceSelect() before changing existing choice");
          }
      }

    
Clear the choice selection.
  
      public void clearChoiceSelect() {
           = -1;
      }

    
Check if Success is current selection for choice.

Returns:
true if selection, false if not
  
      public boolean ifSuccess() {
          return  == ;
      }

    
Get the 'Success' element value. The presence of this element indicates that the receiving system has successfully processed the preceding request message.

Returns:
value
 
     public Success getSuccess() {
         return ;
     }

    
Set the 'Success' element value. The presence of this element indicates that the receiving system has successfully processed the preceding request message.

Parameters:
success
 
     public void setSuccess(Success success) {
         this. = success;
     }

    
Get the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

Returns:
value
 
     public Warnings getWarnings() {
         return ;
     }

    
Set the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

Parameters:
warnings
 
     public void setWarnings(Warnings warnings) {
         this. = warnings;
     }

    
Get the 'Package' element value.

Returns:
value
 
     public _Package getPackage() {
         return ;
     }

    
Set the 'Package' element value.

Parameters:
_package
 
     public void setPackage(_Package _package) {
         this. = _package;
     }

    
Get the 'TravelChoices' element value.

Returns:
value
 
     public TravelChoices getTravelChoices() {
         return ;
     }

    
Set the 'TravelChoices' element value.

Parameters:
travelChoices
 
     public void setTravelChoices(TravelChoices travelChoices) {
         this. = travelChoices;
     }

    
Get the 'AccommodationChoices' element value.

Returns:
value
 
         return ;
     }

    
Set the 'AccommodationChoices' element value.

Parameters:
accommodationChoices
 
     public void setAccommodationChoices(
             AccommodationChoices accommodationChoices) {
         this. = accommodationChoices;
     }

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

    
Check if Errors is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifErrors() {
         return  == ;
     }

    
Get the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

Returns:
value
 
     public Errors getErrors() {
         return ;
     }

    
Set the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

Parameters:
errors
 
     public void setErrors(Errors errors) {
         setChoiceSelect();
         this. = errors;
     }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes
 
     public void setOTAPayloadStdAttributes(
             OTAPayloadStdAttributes OTAPayloadStdAttributes) {
         this. = OTAPayloadStdAttributes;
     }

    
Get the 'CompanyID_AttributesGroup' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'CompanyID_AttributesGroup' attributeGroup value.

Parameters:
companyIDAttributesGroup
 
     public void setCompanyIDAttributesGroup(
             CompanyIDAttributesGroup companyIDAttributesGroup) {
         this. = companyIDAttributesGroup;
     }

    
Get the 'CurrencyCodeGroup' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'CurrencyCodeGroup' attributeGroup value.

Parameters:
currencyCodeGroup
 
     public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup) {
         this. = currencyCodeGroup;
     }
    
Details of the requested package. 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="Package" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:URL_Type" name="URL" minOccurs="0"/>
       <xs:element type="ns:CompanyNameType" name="CompanyName" minOccurs="0"/>
       <xs:element name="DateRange" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="PriceInfo" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class PriceInfo -->
       </xs:element>
       <xs:element name="ItineraryItems" minOccurs="0">
         <!-- Reference to inner class ItineraryItems -->
       </xs:element>
       <xs:element name="Cautions" minOccurs="0">
         <!-- Reference to inner class Cautions -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:ID_OptionalGroup"/>
     <xs:attribute type="xs:string" use="optional" name="Type"/>
     <xs:attribute type="xs:string" use="optional" name="TravelCode"/>
     <xs:attribute type="xs:string" use="optional" name="TourCode"/>
     <xs:attribute type="xs:string" use="optional" name="ShortDescription"/>
     <xs:attribute type="xs:string" use="optional" name="BoardCode"/>
     <xs:attribute type="xs:string" use="optional" name="PromotionCode"/>
     <xs:attribute type="xs:string" use="optional" name="BrandCode"/>
     <xs:attribute type="xs:string" use="optional" name="ProductCode"/>
     <xs:attribute type="xs:boolean" use="optional" name="ExtrasInd"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ID_OptionalGroup">
   <xs:attribute type="xs:string" use="optional" name="ID"/>
 </xs:attributeGroup>
 
 
     public static class _Package
     {
         private URL URL;
         private CompanyName companyName;
         private DateTimeSpanGroup dateRange;
         private List<PriceInfopriceInfoList = new ArrayList<PriceInfo>();
         private ItineraryItems itineraryItems;
         private Cautions cautions;
         private String ID;
         private String type;
         private String travelCode;
         private String tourCode;
         private String shortDescription;
         private String boardCode;
         private String promotionCode;
         private String brandCode;
         private String productCode;
         private Boolean extrasInd;

        
Get the 'URL' element value. A link to details of a package.

Returns:
value
 
         public URL getURL() {
             return ;
         }

        
Set the 'URL' element value. A link to details of a package.

Parameters:
URL
 
         public void setURL(URL URL) {
             this. = URL;
         }

        
Get the 'CompanyName' element value. Identifies the company supplying the package.

Returns:
value
 
         public CompanyName getCompanyName() {
             return ;
         }

        
Set the 'CompanyName' element value. Identifies the company supplying the package.

Parameters:
companyName
 
         public void setCompanyName(CompanyName companyName) {
             this. = companyName;
         }

        
Get the 'DateTimeSpanGroup' attributeGroup value. The Start date and Duration or End Date of the package.

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

        
Set the 'DateTimeSpanGroup' attributeGroup value. The Start date and Duration or End Date of the package.

Parameters:
dateRange
 
         public void setDateRange(DateTimeSpanGroup dateRange) {
             this. = dateRange;
         }

        
Get the list of 'PriceInfo' element items.

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

        
Set the list of 'PriceInfo' element items.

Parameters:
list
 
         public void setPriceInfoList(List<PriceInfolist) {
              = list;
         }

        
Get the number of 'PriceInfo' element items.

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

        
Add a 'PriceInfo' element item.

Parameters:
item
 
         public void addPriceInfo(PriceInfo item) {
             .add(item);
         }

        
Get 'PriceInfo' element item by position.

Parameters:
index
Returns:
item
 
         public PriceInfo getPriceInfo(int index) {
             return .get(index);
         }

        
Remove all 'PriceInfo' element items.
 
         public void clearPriceInfoList() {
             .clear();
         }

        
Get the 'ItineraryItems' element value.

Returns:
value
 
         public ItineraryItems getItineraryItems() {
             return ;
         }

        
Set the 'ItineraryItems' element value.

Parameters:
itineraryItems
 
         public void setItineraryItems(ItineraryItems itineraryItems) {
             this. = itineraryItems;
         }

        
Get the 'Cautions' element value.

Returns:
value
 
         public Cautions getCautions() {
             return ;
         }

        
Set the 'Cautions' element value.

Parameters:
cautions
 
         public void setCautions(Cautions cautions) {
             this. = cautions;
         }

        
Get the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

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

        
Set the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Parameters:
ID
 
         public void setID(String ID) {
             this. = ID;
         }

        
Get the 'Type' attribute value. Refer to OpenTravel Code List Package Type (PKG).

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

        
Set the 'Type' attribute value. Refer to OpenTravel Code List Package Type (PKG).

Parameters:
type
 
         public void setType(String type) {
             this. = type;
         }

        
Get the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for a package.

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

        
Set the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for a package.

Parameters:
travelCode
 
         public void setTravelCode(String travelCode) {
             this. = travelCode;
         }

        
Get the 'TourCode' attribute value. The supplier's code to identify the accommodation/tour arrangement for a package.

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

        
Set the 'TourCode' attribute value. The supplier's code to identify the accommodation/tour arrangement for a package.

Parameters:
tourCode
 
         public void setTourCode(String tourCode) {
             this. = tourCode;
         }

        
Get the 'ShortDescription' attribute value. A short description of the package tour.

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

        
Set the 'ShortDescription' attribute value. A short description of the package tour.

Parameters:
shortDescription
 
         public void setShortDescription(String shortDescription) {
             this. = shortDescription;
         }

        
Get the 'BoardCode' attribute value. The code for a meal plan e.g. AB- as brochure, AI- all inclusive, BB- bed and breakfast, FB- full board, HB- Half Board, RO- room only,SC- self catering.

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

        
Set the 'BoardCode' attribute value. The code for a meal plan e.g. AB- as brochure, AI- all inclusive, BB- bed and breakfast, FB- full board, HB- Half Board, RO- room only,SC- self catering.

Parameters:
boardCode
 
         public void setBoardCode(String boardCode) {
             this. = boardCode;
         }

        
Get the 'PromotionCode' attribute value. A code to request a specific promotional price.

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

        
Set the 'PromotionCode' attribute value. A code to request a specific promotional price.

Parameters:
promotionCode
 
         public void setPromotionCode(String promotionCode) {
             this. = promotionCode;
         }

        
Get the 'BrandCode' attribute value. The code for the tour operator's product brand e.g. Thomascook, JMC, Sunset etc.

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

        
Set the 'BrandCode' attribute value. The code for the tour operator's product brand e.g. Thomascook, JMC, Sunset etc.

Parameters:
brandCode
 
         public void setBrandCode(String brandCode) {
             this. = brandCode;
         }

        
Get the 'ProductCode' attribute value. The tour operator's code for the product within the brand e.g. Summersun, Greece etc.

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

        
Set the 'ProductCode' attribute value. The tour operator's code for the product within the brand e.g. Summersun, Greece etc.

Parameters:
productCode
 
         public void setProductCode(String productCode) {
             this. = productCode;
         }

        
Get the 'ExtrasInd' attribute value. When 'true', Extras are available with this package; when 'false', no Extras are available.

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

        
Set the 'ExtrasInd' attribute value. When 'true', Extras are available with this package; when 'false', no Extras are available.

Parameters:
extrasInd
 
         public void setExtrasInd(Boolean extrasInd) {
             this. = extrasInd;
         }
        
Contains a guide price for the package and the occupancy level to which it applies. Can be used to supply both adult and child guide prices. 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="PriceInfo" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PkgPriceType">
         <xs:attribute type="xs:float" use="optional" name="OtherPrice"/>
         <xs:attribute type="xs:string" use="optional" name="OtherPriceDescription"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 
         public static class PriceInfo extends PkgPrice
         {
             private Float otherPrice;
             private String otherPriceDescription;

            
Get the 'OtherPrice' attribute value. This attribute alllows for the inclusion of memorandum price information (e.g., the previous or brochure price for comparison when the guide price reflects a recent change).

Returns:
value
 
             public Float getOtherPrice() {
                 return ;
             }

            
Set the 'OtherPrice' attribute value. This attribute alllows for the inclusion of memorandum price information (e.g., the previous or brochure price for comparison when the guide price reflects a recent change).

Parameters:
otherPrice
 
             public void setOtherPrice(Float otherPrice) {
                 this. = otherPrice;
             }

            
Get the 'OtherPriceDescription' attribute value. A description for the 'Other Price'.

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

            
Set the 'OtherPriceDescription' attribute value. A description for the 'Other Price'.

Parameters:
otherPriceDescription
 
             public void setOtherPriceDescription(String otherPriceDescription) {
                 this. = otherPriceDescription;
             }
         }
        
A collection of elements to allow any item of inventory to be requested for a package. Normal usage is for the items to be presented in chronological sequence. 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="ItineraryItems" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ItineraryItemResponseType" name="ItineraryItem" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
         public static class ItineraryItems
         {
             private List<ItineraryItemResponseitineraryItemList = new ArrayList<ItineraryItemResponse>();

            
Get the list of 'ItineraryItem' element items. Details of the requested package.

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

            
Set the list of 'ItineraryItem' element items. Details of the requested package.

Parameters:
list
 
             public void setItineraryItemList(List<ItineraryItemResponselist) {
                  = list;
             }

            
Get the number of 'ItineraryItem' element items.

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

            
Add a 'ItineraryItem' element item.

Parameters:
item
 
             public void addItineraryItem(ItineraryItemResponse item) {
                 .add(item);
             }

            
Get 'ItineraryItem' element item by position.

Parameters:
index
Returns:
item
 
             public ItineraryItemResponse getItineraryItem(int index) {
                 return .get(index);
             }

            
Remove all 'ItineraryItem' element items.
 
             public void clearItineraryItemList() {
                 .clear();
             }
         }
        
A collection of items of essential information relating to components of a package itinerary. 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="Cautions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:PkgCautionType" name="Caution" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
         public static class Cautions
         {
             private List<PkgCautioncautionList = new ArrayList<PkgCaution>();

            
Get the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

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

            
Set the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

Parameters:
list
 
             public void setCautionList(List<PkgCautionlist) {
                  = list;
             }

            
Get the number of 'Caution' element items.

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

            
Add a 'Caution' element item.

Parameters:
item
 
             public void addCaution(PkgCaution item) {
                 .add(item);
             }

            
Get 'Caution' element item by position.

Parameters:
index
Returns:
item
 
             public PkgCaution getCaution(int index) {
                 return .get(index);
             }

            
Remove all 'Caution' element items.
 
             public void clearCautionList() {
                 .clear();
             }
         }
     }
    
A collection of TravelItem elements. Used by some operators when the requested travel item for the package is not available. 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="TravelChoices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="TravelItem" maxOccurs="99">
         <!-- Reference to inner class TravelItem -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
     public static class TravelChoices
     {
         private List<TravelItemtravelItemList = new ArrayList<TravelItem>();

        
Get the list of 'TravelItem' element items.

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

        
Set the list of 'TravelItem' element items.

Parameters:
list
 
         public void setTravelItemList(List<TravelItemlist) {
              = list;
         }

        
Get the number of 'TravelItem' element items.

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

        
Add a 'TravelItem' element item.

Parameters:
item
 
         public void addTravelItem(TravelItem item) {
             .add(item);
         }

        
Get 'TravelItem' element item by position.

Parameters:
index
Returns:
item
 
         public TravelItem getTravelItem(int index) {
             return .get(index);
         }

        
Remove all 'TravelItem' element items.
 
         public void clearTravelItemList() {
             .clear();
         }
        
Details of a travel choice. 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="TravelItem" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:choice>
         <xs:element name="TravelDetail" minOccurs="0" maxOccurs="9">
           <!-- Reference to inner class TravelDetail -->
         </xs:element>
         <xs:element name="TravelJourney" minOccurs="0">
           <xs:complexType>
             <xs:attributeGroup ref="ns:PkgTravelJourneyGroup"/>
           </xs:complexType>
         </xs:element>
       </xs:choice>
       <xs:sequence>
         <xs:element name="SupplementCharges" minOccurs="0">
           <!-- Reference to inner class SupplementCharges -->
         </xs:element>
         <xs:element name="Cautions" minOccurs="0">
           <!-- Reference to inner class Cautions -->
         </xs:element>
       </xs:sequence>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="AccomOKFlag"/>
   </xs:complexType>
 </xs:element>
 
 
         public static class TravelItem
         {
             private int choiceSelect = -1;
             private static final int TRAVEL_DETAIL_LIST_CHOICE = 0;
             private static final int TRAVEL_JOURNEY_CHOICE = 1;
             private List<TravelDetailtravelDetailList = new ArrayList<TravelDetail>();
             private PkgTravelJourneyGroup travelJourney;
             private SupplementCharges supplementCharges;
             private Cautions cautions;
             private Boolean accomOKFlag;
 
             private void setChoiceSelect(int choice) {
                 if ( == -1) {
                      = choice;
                 } else if ( != choice) {
                     throw new IllegalStateException(
                             "Need to call clearChoiceSelect() before changing existing choice");
                 }
             }

            
Clear the choice selection.
 
             public void clearChoiceSelect() {
                  = -1;
             }

            
Check if TravelDetailList is current selection for choice.

Returns:
true if selection, false if not
            public boolean ifTravelDetailList() {
                return  == ;
            }

            
Get the list of 'TravelDetail' element items.

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

            
Set the list of 'TravelDetail' element items.

Parameters:
list
            public void setTravelDetailList(List<TravelDetaillist) {
                setChoiceSelect();
                 = list;
            }

            
Get the number of 'TravelDetail' element items.

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

            
Add a 'TravelDetail' element item.

Parameters:
item
            public void addTravelDetail(TravelDetail item) {
                .add(item);
            }

            
Get 'TravelDetail' element item by position.

Parameters:
index
Returns:
item
            public TravelDetail getTravelDetail(int index) {
                return .get(index);
            }

            
Remove all 'TravelDetail' element items.
            public void clearTravelDetailList() {
                .clear();
            }

            
Check if TravelJourney is current selection for choice.

Returns:
true if selection, false if not
            public boolean ifTravelJourney() {
                return  == ;
            }

            
Get the 'PkgTravelJourneyGroup' attributeGroup value. Provides information on a complete travel journey.

Returns:
value
            public PkgTravelJourneyGroup getTravelJourney() {
                return ;
            }

            
Set the 'PkgTravelJourneyGroup' attributeGroup value. Provides information on a complete travel journey.

Parameters:
travelJourney
            public void setTravelJourney(PkgTravelJourneyGroup travelJourney) {
                setChoiceSelect();
                this. = travelJourney;
            }

            
Get the 'SupplementCharges' element value.

Returns:
value
            public SupplementCharges getSupplementCharges() {
                return ;
            }

            
Set the 'SupplementCharges' element value.

Parameters:
supplementCharges
            public void setSupplementCharges(SupplementCharges supplementCharges) {
                this. = supplementCharges;
            }

            
Get the 'Cautions' element value.

Returns:
value
            public Cautions getCautions() {
                return ;
            }

            
Set the 'Cautions' element value.

Parameters:
cautions
            public void setCautions(Cautions cautions) {
                this. = cautions;
            }

            
Get the 'AccomOKFlag' attribute value. Used to indicate whether or not the accommodation associated with the package is available with this travel journey.

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

            
Set the 'AccomOKFlag' attribute value. Used to indicate whether or not the accommodation associated with the package is available with this travel journey.

Parameters:
accomOKFlag
            public void setAccomOKFlag(Boolean accomOKFlag) {
                this. = accomOKFlag;
            }
            
Provides details of travel arrangements by segment. 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="TravelDetail" minOccurs="0" maxOccurs="9">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:PkgTravelSegment" name="OutwardTravel" maxOccurs="5"/>
       <xs:element type="ns:PkgTravelSegment" name="ReturnTravel" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
            public static class TravelDetail
            {
                private List<PkgTravelSegmentoutwardTravelList = new ArrayList<PkgTravelSegment>();
                private List<PkgTravelSegmentreturnTravelList = new ArrayList<PkgTravelSegment>();

                
Get the list of 'OutwardTravel' element items.

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

                
Set the list of 'OutwardTravel' element items.

Parameters:
list
                public void setOutwardTravelList(List<PkgTravelSegmentlist) {
                     = list;
                }

                
Get the number of 'OutwardTravel' element items.

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

                
Add a 'OutwardTravel' element item.

Parameters:
item
                public void addOutwardTravel(PkgTravelSegment item) {
                    .add(item);
                }

                
Get 'OutwardTravel' element item by position.

Parameters:
index
Returns:
item
                public PkgTravelSegment getOutwardTravel(int index) {
                    return .get(index);
                }

                
Remove all 'OutwardTravel' element items.
                public void clearOutwardTravelList() {
                    .clear();
                }

                
Get the list of 'ReturnTravel' element items.

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

                
Set the list of 'ReturnTravel' element items.

Parameters:
list
                public void setReturnTravelList(List<PkgTravelSegmentlist) {
                     = list;
                }

                
Get the number of 'ReturnTravel' element items.

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

                
Add a 'ReturnTravel' element item.

Parameters:
item
                public void addReturnTravel(PkgTravelSegment item) {
                    .add(item);
                }

                
Get 'ReturnTravel' element item by position.

Parameters:
index
Returns:
item
                public PkgTravelSegment getReturnTravel(int index) {
                    return .get(index);
                }

                
Remove all 'ReturnTravel' element items.
                public void clearReturnTravelList() {
                    .clear();
                }
            }
            
A collection of supplementary charges. 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="SupplementCharges" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FeeType" name="SupplementCharge" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
            public static class SupplementCharges
            {
                private List<FeesupplementChargeList = new ArrayList<Fee>();

                
Get the list of 'SupplementCharge' element items. A value representing a supplement for this journey (e.g., Aberdeen to Palma) over the cost of the journey on which package basic price is calculated (e.g., Gatwick to Palma).

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

                
Set the list of 'SupplementCharge' element items. A value representing a supplement for this journey (e.g., Aberdeen to Palma) over the cost of the journey on which package basic price is calculated (e.g., Gatwick to Palma).

Parameters:
list
                public void setSupplementChargeList(List<Feelist) {
                     = list;
                }

                
Get the number of 'SupplementCharge' element items.

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

                
Add a 'SupplementCharge' element item.

Parameters:
item
                public void addSupplementCharge(Fee item) {
                    .add(item);
                }

                
Get 'SupplementCharge' element item by position.

Parameters:
index
Returns:
item
                public Fee getSupplementCharge(int index) {
                    return .get(index);
                }

                
Remove all 'SupplementCharge' element items.
                public void clearSupplementChargeList() {
                    .clear();
                }
            }
            
A collection of items of essential information relating to travel items. 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="Cautions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:PkgCautionType" name="Caution" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
            public static class Cautions
            {
                private List<PkgCautioncautionList = new ArrayList<PkgCaution>();

                
Get the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

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

                
Set the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

Parameters:
list
                public void setCautionList(List<PkgCautionlist) {
                     = list;
                }

                
Get the number of 'Caution' element items.

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

                
Add a 'Caution' element item.

Parameters:
item
                public void addCaution(PkgCaution item) {
                    .add(item);
                }

                
Get 'Caution' element item by position.

Parameters:
index
Returns:
item
                public PkgCaution getCaution(int index) {
                    return .get(index);
                }

                
Remove all 'Caution' element items.
                public void clearCautionList() {
                    .clear();
                }
            }
        }
    }
    
A collection of available properties. Used by some operators when the requested accommodation item for the package is not available. 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="AccommodationChoices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:AccommodationDetailType" name="AvailableProperty" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class AccommodationChoices
    {
        private List<AccommodationDetailavailablePropertyList = new ArrayList<AccommodationDetail>();

        
Get the list of 'AvailableProperty' element items. Details of a property available for the request date and duration

Returns:
list
            return ;
        }

        
Set the list of 'AvailableProperty' element items. Details of a property available for the request date and duration

Parameters:
list
        public void setAvailablePropertyList(List<AccommodationDetaillist) {
             = list;
        }

        
Get the number of 'AvailableProperty' element items.

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

        
Add a 'AvailableProperty' element item.

Parameters:
item
        public void addAvailableProperty(AccommodationDetail item) {
            .add(item);
        }

        
Get 'AvailableProperty' element item by position.

Parameters:
index
Returns:
item
        public AccommodationDetail getAvailableProperty(int index) {
            return .get(index);
        }

        
Remove all 'AvailableProperty' element items.
        public void clearAvailablePropertyList() {
            .clear();
        }
    }
New to GrepCode? Check out our FAQ X