Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2011B.pkg;
  
  import java.util.List;
A request for availability of 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_PkgAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="PackageRequest">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:DateTimeSpanType" name="DateRange" minOccurs="0"/>
             <xs:element name="Routing" minOccurs="0" maxOccurs="2">
               <!-- Reference to inner class Routing -->
             </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:int" use="optional" name="FreeChildQuantity"/>
           <xs:attribute type="xs:string" use="optional" name="CabinType"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:CustomerCountsType" name="CustomerCounts" minOccurs="0"/>
       <xs:element type="ns:URL_Type" name="URL" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
   </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>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 
 
 public class AvailRQ
 {
     private POS POS;
     private List<RoutingroutingList = new ArrayList<Routing>();
     private String packageRequestID;
     private String packageRequest;
     private String packageRequestTravelCode;
     private String packageRequestTourCode;
     private String packageRequestBoardCode;
     private String packageRequestBrandCode;
     private String packageRequestProductCode;
     private String packageRequestCabin;
     private CustomerCounts customerCounts;
     private URL URL;
     private TPAExtensions TPAExtensions;
     private String reqRespVersion;
     private String maxResponses;

    
Get the 'POS' element value. Point of sale object.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of sale object.

Parameters:
POS
    public void setPOS(POS POS) {
        this. = POS;
    }

    
Get the 'DateRange' element value. The Start date and Duration or End Date of the package.

Returns:
value
        return ;
    }

    
Set the 'DateRange' element value. The Start date and Duration or End Date of the package.

Parameters:
packageRequestDateRange
    public void setPackageRequestDateRange(DateTimeSpan packageRequestDateRange) {
        this. = packageRequestDateRange;
    }

    
Get the list of 'Routing' element items. Information identifying the package for which availability is being requested.

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

    
Set the list of 'Routing' element items. Information identifying the package for which availability is being requested.

Parameters:
list
    public void setRoutingList(List<Routinglist) {
         = list;
    }

    
Get the number of 'Routing' element items.

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

    
Add a 'Routing' element item.

Parameters:
item
    public void addRouting(Routing item) {
        .add(item);
    }

    
Get 'Routing' element item by position.

Parameters:
index
Returns:
item
    public Routing getRouting(int index) {
        return .get(index);
    }

    
Remove all 'Routing' element items.
    public void clearRoutingList() {
        .clear();
    }

    
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 getPackageRequestID() {
        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:
packageRequestID
    public void setPackageRequestID(String packageRequestID) {
        this. = packageRequestID;
    }

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

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

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

Parameters:
packageRequestType
    public void setPackageRequestType(String packageRequestType) {
         = packageRequestType;
    }

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

Returns:
value
        return ;
    }

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

Parameters:
packageRequestTravelCode
    public void setPackageRequestTravelCode(String packageRequestTravelCode) {
        this. = packageRequestTravelCode;
    }

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

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

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

Parameters:
packageRequestTourCode
    public void setPackageRequestTourCode(String packageRequestTourCode) {
        this. = packageRequestTourCode;
    }

    
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:
packageRequestShortDescription
            String packageRequestShortDescription) {
        this. = packageRequestShortDescription;
    }

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

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

Returns:
value
        return ;
    }

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

Parameters:
packageRequestPromotionCode
    public void setPackageRequestPromotionCode(
            String packageRequestPromotionCode) {
        this. = packageRequestPromotionCode;
    }

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

Returns:
value
        return ;
    }

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

Parameters:
packageRequestBrandCode
    public void setPackageRequestBrandCode(String packageRequestBrandCode) {
        this. = packageRequestBrandCode;
    }

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

Returns:
value
        return ;
    }

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

Parameters:
packageRequestProductCode
    public void setPackageRequestProductCode(String packageRequestProductCode) {
        this. = packageRequestProductCode;
    }

    
Get the 'FreeChildQuantity' attribute value. Number of Free Children requested.

Returns:
value
        return ;
    }

    
Set the 'FreeChildQuantity' attribute value. Number of Free Children requested.

Parameters:
packageRequestFreeChildQuantity
            Integer packageRequestFreeChildQuantity) {
        this. = packageRequestFreeChildQuantity;
    }

    
Get the 'CabinType' attribute value. The flight cabin/class required.

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

    
Set the 'CabinType' attribute value. The flight cabin/class required.

Parameters:
packageRequestCabin
    public void setPackageRequestCabin(String packageRequestCabin) {
        this. = packageRequestCabin;
    }

    
Get the 'CustomerCounts' element value. Categorization of all Customers in a reservation or request.

Returns:
value
    public CustomerCounts getCustomerCounts() {
        return ;
    }

    
Set the 'CustomerCounts' element value. Categorization of all Customers in a reservation or request.

Parameters:
customerCounts
    public void setCustomerCounts(CustomerCounts customerCounts) {
        this. = customerCounts;
    }

    
Get the 'URL' element value. An alternative method of identifying the full tour package.

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

    
Set the 'URL' element value. An alternative method of identifying the full tour package.

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

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

    
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 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

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

    
Set the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Parameters:
reqRespVersion
    public void setReqRespVersion(String reqRespVersion) {
        this. = reqRespVersion;
    }

    
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

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

    
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses
    public void setMaxResponses(String maxResponses) {
        this. = maxResponses;
    }
    
The departure and arrival points for outward and/or return travel. Generally used when the TravelCode represents a flight which has more than one domestic leg (e.g. Glasgow- Manchester- Palma.) 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="Routing" minOccurs="0" maxOccurs="2">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:LocationType" name="Departure"/>
       <xs:element type="ns:LocationType" name="Arrival"/>
     </xs:sequence>
     <xs:attribute type="ns:AirTripType" name="Direction"/>
   </xs:complexType>
 </xs:element>
 
    public static class Routing
    {
        private Location departure;
        private Location arrival;
        private AirTrip direction;

        
Get the 'Departure' element value. The departure location for the travel route.

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

        
Set the 'Departure' element value. The departure location for the travel route.

Parameters:
departure
        public void setDeparture(Location departure) {
            this. = departure;
        }

        
Get the 'Arrival' element value. The arrival location for the travel route.

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

        
Set the 'Arrival' element value. The arrival location for the travel route.

Parameters:
arrival
        public void setArrival(Location arrival) {
            this. = arrival;
        }

        
Get the 'Direction' attribute value.

Returns:
value
        public AirTrip getDirection() {
            return ;
        }

        
Set the 'Direction' attribute value.

Parameters:
direction
        public void setDirection(AirTrip direction) {
            this. = direction;
        }
    }
New to GrepCode? Check out our FAQ X