Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.pkg;
  
  import java.util.List;
The message returns package extras and/or car rental information for a specific 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_PkgExtrasInfoRS">
   <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="PackageInfo">
           <xs:complexType>
             <xs:sequence>
               <xs:element type="ns:URL_Type" name="URL" minOccurs="0"/>
               <xs:element name="DateRange" minOccurs="0">
                 <xs:complexType>
                   <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
                 </xs:complexType>
               </xs:element>
               <xs:element name="ItineraryItems" minOccurs="0">
                 <!-- Reference to inner class ItineraryItems -->
               </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="BrandCode"/>
             <xs:attribute type="xs:string" use="optional" name="ProductCode"/>
           </xs:complexType>
         </xs:element>
         <xs:element name="ExtraGroups" minOccurs="0">
           <!-- Reference to inner class ExtraGroups -->
         </xs:element>
         <xs:element name="Extras" minOccurs="0">
           <!-- Reference to inner class Extras -->
         </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>
 
 <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 class ExtrasInfoRS
 {
     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 URL packageInfoURL;
     private ItineraryItems itineraryItems;
     private String packageInfoID;
     private String packageInfo;
     private String packageInfoTravelCode;
     private String packageInfoTourCode;
     private String packageInfoBoardCode;
     private String packageInfoBrandCode;
     private String packageInfoProductCode;
     private ExtraGroups extraGroups;
     private Extras extras;
     private TPAExtensions TPAExtensions;
     private Errors errors;
 
    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 'URL' element value. A link to details of a package.

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

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

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

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

Returns:
value
        return ;
    }

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

Parameters:
packageInfoDateRange
    public void setPackageInfoDateRange(DateTimeSpanGroup packageInfoDateRange) {
        this. = packageInfoDateRange;
    }

    
Get the 'ItineraryItems' element value. Details of the selected package.

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

    
Set the 'ItineraryItems' element value. Details of the selected package.

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

    
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 getPackageInfoID() {
        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:
packageInfoID
    public void setPackageInfoID(String packageInfoID) {
        this. = packageInfoID;
    }

    
Get the 'Type' attribute value. The type of package e.g. Flight-only, Air-Inclusive. Refer to OpenTravel Code List Package Type (PKG).

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

    
Set the 'Type' attribute value. The type of package e.g. Flight-only, Air-Inclusive. Refer to OpenTravel Code List Package Type (PKG).

Parameters:
packageInfoType
    public void setPackageInfoType(String packageInfoType) {
         = packageInfoType;
    }

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

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

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

Parameters:
packageInfoTravelCode
    public void setPackageInfoTravelCode(String packageInfoTravelCode) {
        this. = packageInfoTravelCode;
    }

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

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

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

Parameters:
packageInfoTourCode
    public void setPackageInfoTourCode(String packageInfoTourCode) {
        this. = packageInfoTourCode;
    }

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

Returns:
value
        return ;
    }

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

Parameters:
packageInfoShortDescription
    public void setPackageInfoShortDescription(
            String packageInfoShortDescription) {
        this. = packageInfoShortDescription;
    }

    
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 getPackageInfoBoardCode() {
        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:
packageInfoBoardCode
    public void setPackageInfoBoardCode(String packageInfoBoardCode) {
        this. = packageInfoBoardCode;
    }

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

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

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

Parameters:
packageInfoBrandCode
    public void setPackageInfoBrandCode(String packageInfoBrandCode) {
        this. = packageInfoBrandCode;
    }

    
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 getPackageInfoProductCode() {
        return ;
    }

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

Parameters:
packageInfoProductCode
    public void setPackageInfoProductCode(String packageInfoProductCode) {
        this. = packageInfoProductCode;
    }

    
Get the 'ExtraGroups' element value.

Returns:
value
    public ExtraGroups getExtraGroups() {
        return ;
    }

    
Set the 'ExtraGroups' element value.

Parameters:
extraGroups
    public void setExtraGroups(ExtraGroups extraGroups) {
        this. = extraGroups;
    }

    
Get the 'Extras' element value.

Returns:
value
    public Extras getExtras() {
        return ;
    }

    
Set the 'Extras' element value.

Parameters:
extras
    public void setExtras(Extras extras) {
        this. = extras;
    }

    
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) {
        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. Identifies the company supplying the package for which these extras are available.

Returns:
value
        return ;
    }

    
Set the 'CompanyID_AttributesGroup' attributeGroup value. Identifies the company supplying the package for which these extras are available.

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

    
Get the 'CurrencyCodeGroup' attributeGroup value. Specifies the currency of the costs applied in the message.

Returns:
value
        return ;
    }

    
Set the 'CurrencyCodeGroup' attributeGroup value. Specifies the currency of the costs applied in the message.

Parameters:
currencyCodeGroup
    public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup) {
        this. = currencyCodeGroup;
    }
    
A collection of elements to allow any item of inventory to be requested for a booking. 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. An item of package itinerary - typically a flight, accommodation or car rental arrangement.

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

        
Set the list of 'ItineraryItem' element items. An item of package itinerary - typically a flight, accommodation or car rental arrangement.

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 groupings of extra facilities. 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="ExtraGroups" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="ExtraGroup" maxOccurs="99">
         <!-- Reference to inner class ExtraGroup -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class ExtraGroups
    {
        private List<ExtraGroupextraGroupList = new ArrayList<ExtraGroup>();

        
Get the list of 'ExtraGroup' element items.

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

        
Set the list of 'ExtraGroup' element items.

Parameters:
list
        public void setExtraGroupList(List<ExtraGrouplist) {
             = list;
        }

        
Get the number of 'ExtraGroup' element items.

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

        
Add a 'ExtraGroup' element item.

Parameters:
item
        public void addExtraGroup(ExtraGroup item) {
            .add(item);
        }

        
Get 'ExtraGroup' element item by position.

Parameters:
index
Returns:
item
        public ExtraGroup getExtraGroup(int index) {
            return .get(index);
        }

        
Remove all 'ExtraGroup' element items.
        public void clearExtraGroupList() {
            .clear();
        }
        
Defines a grouping of extras which determines the relationship of one extra to another in that group e.g. only one extra from the group may be booked. 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="ExtraGroup" maxOccurs="99">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="Code"/>
     <xs:attributeGroup ref="ns:ExtrasSelectionGroup"/>
     <xs:attribute type="ns:ListOfRPH" use="optional" name="ListofExtrasRPH"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfRPH">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
        public static class ExtraGroup
        {
            private String code;
            private ExtrasSelectionGroup extrasSelectionGroup;
            private List<StringlistofExtrasRPHs = new ArrayList<String>();

            
Get the 'Code' attribute value. A code which links two or more Extras together, enabling a rule to be applied to all group members e.g. only one of the group may be booked, or any combination of extras may be booked.

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

            
Set the 'Code' attribute value. A code which links two or more Extras together, enabling a rule to be applied to all group members e.g. only one of the group may be booked, or any combination of extras may be booked.

Parameters:
code
            public void setCode(String code) {
                this. = code;
            }

            
Get the 'ExtrasSelectionGroup' attributeGroup value. Selection type and rule code for an extra.

Returns:
value
            public ExtrasSelectionGroup getExtrasSelectionGroup() {
                return ;
            }

            
Set the 'ExtrasSelectionGroup' attributeGroup value. Selection type and rule code for an extra.

Parameters:
extrasSelectionGroup
            public void setExtrasSelectionGroup(
                    ExtrasSelectionGroup extrasSelectionGroup) {
                this. = extrasSelectionGroup;
            }

            
Get the list of 'ListofExtrasRPH' attribute items. A list of the RPHs of the Extras which are in this ExtraGroup.

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

            
Set the list of 'ListofExtrasRPH' attribute items. A list of the RPHs of the Extras which are in this ExtraGroup.

Parameters:
list
            public void setListofExtrasRPHs(List<Stringlist) {
                 = list;
            }

            
Serializer for 'ListofExtrasRPH' attribute list.

Parameters:
values
Returns:
text
            public static String serializeListofExtrasRPHs(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 'ListofExtrasRPH' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            public static List<StringdeserializeListofExtrasRPHs(String text)
                    throws org.jibx.runtime.JiBXException {
                org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                    public java.lang.Object deserialize(String text) {
                        return text;
                    }
                };
                return (List<String>) org.jibx.runtime.Utility.deserializeList(
                        textldser);
            }

            
Get the number of 'ListofExtrasRPH' attribute items.

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

            
Add a 'ListofExtrasRPH' attribute item.

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

            
Get 'ListofExtrasRPH' attribute item by position.

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

            
Remove all 'ListofExtrasRPH' attribute items.
            public void clearListofExtrasRPHs() {
                .clear();
            }
        }
    }
    
A collection of extra facilities available with the 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="Extras" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ExtrasInfoType" name="Extra" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class Extras
    {
        private List<ExtrasInfoextraList = new ArrayList<ExtrasInfo>();

        
Get the list of 'Extra' element items. Describes an optional service which is not included in the standard package but may be booked in addition.

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

        
Set the list of 'Extra' element items. Describes an optional service which is not included in the standard package but may be booked in addition.

Parameters:
list
        public void setExtraList(List<ExtrasInfolist) {
             = list;
        }

        
Get the number of 'Extra' element items.

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

        
Add a 'Extra' element item.

Parameters:
item
        public void addExtra(ExtrasInfo item) {
            .add(item);
        }

        
Get 'Extra' element item by position.

Parameters:
index
Returns:
item
        public ExtrasInfo getExtra(int index) {
            return .get(index);
        }

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