Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.rail;
  
  import java.util.List;
The OpenTravel Rail Fare Quote request message is used to request rail fare option information based on specified criteria including: - Qualifying fare options (including train type, origin/destination locations, arrival/departure times and/or train number and network codes) - Up to 9 fare basis codes - Traveler preferences (including accommodation and class codes) - Rate qualifying information (including travel purpose, promotion codes and other discounts that may affect the fare) - Passenger category information (by passenger quantity, including gender, occupation, passenger qualifying codes, rate qualifiers and disability requirements) 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_RailFareQuoteRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="FareQuoteCriteria" minOccurs="0" maxOccurs="9">
         <!-- Reference to inner class FareQuoteCriteria -->
       </xs:element>
       <xs:element type="xs:string" name="FareBasisCode" minOccurs="0" maxOccurs="9"/>
       <xs:element name="TravelerPref" minOccurs="0" maxOccurs="9">
         <!-- Reference to inner class TravelerPref -->
       </xs:element>
       <xs:element type="ns:RailRateQualifyingType" name="RateQualifier" minOccurs="0" maxOccurs="9"/>
       <xs:element name="PassengerCategory" minOccurs="0" maxOccurs="99">
         <!-- Reference to inner class PassengerCategory -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class FareQuoteRQ
 {
     private POS POS;
     private List<StringfareBasisCodeList = new ArrayList<String>();
     private List<TravelerPreftravelerPrefList = new ArrayList<TravelerPref>();
     private TPAExtensions TPAExtensions;
Get the 'POS' element value. Point of Sale Identification for the transaction initiator that includes the identification information of the party that has made the reservation request and optional information, such as an agency number assigned by IATA, ARC, ESRP or TID.

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

    
Set the 'POS' element value. Point of Sale Identification for the transaction initiator that includes the identification information of the party that has made the reservation request and optional information, such as an agency number assigned by IATA, ARC, ESRP or TID.

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

    
Get the list of 'FareQuoteCriteria' element items.

Returns:
list
 
         return ;
     }

    
Set the list of 'FareQuoteCriteria' element items.

Parameters:
list
 
     public void setFareQuoteCriteriaList(List<FareQuoteCriterialist) {
          = list;
     }

    
Get the number of 'FareQuoteCriteria' element items.

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

    
Add a 'FareQuoteCriteria' element item.

Parameters:
item
    public void addFareQuoteCriteria(FareQuoteCriteria item) {
        .add(item);
    }

    
Get 'FareQuoteCriteria' element item by position.

Parameters:
index
Returns:
item
    public FareQuoteCriteria getFareQuoteCriteria(int index) {
        return .get(index);
    }

    
Remove all 'FareQuoteCriteria' element items.
    public void clearFareQuoteCriteriaList() {
        .clear();
    }

    
Get the list of 'FareBasisCode' element items. Up to 9 requested fare basis codes.

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

    
Set the list of 'FareBasisCode' element items. Up to 9 requested fare basis codes.

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

    
Get the number of 'FareBasisCode' element items.

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

    
Add a 'FareBasisCode' element item.

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

    
Get 'FareBasisCode' element item by position.

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

    
Remove all 'FareBasisCode' element items.
    public void clearFareBasisCodeList() {
        .clear();
    }

    
Get the list of 'TravelerPref' element items.

Returns:
list
        return ;
    }

    
Set the list of 'TravelerPref' element items.

Parameters:
list
    public void setTravelerPrefList(List<TravelerPreflist) {
         = list;
    }

    
Get the number of 'TravelerPref' element items.

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

    
Add a 'TravelerPref' element item.

Parameters:
item
    public void addTravelerPref(TravelerPref item) {
        .add(item);
    }

    
Get 'TravelerPref' element item by position.

Parameters:
index
Returns:
item
    public TravelerPref getTravelerPref(int index) {
        return .get(index);
    }

    
Remove all 'TravelerPref' element items.
    public void clearTravelerPrefList() {
        .clear();
    }

    
Get the list of 'RateQualifier' element items. Rate qualifying information such as travel purpose, promotion codes and rate category that may affect the fare.

Returns:
list
        return ;
    }

    
Set the list of 'RateQualifier' element items. Rate qualifying information such as travel purpose, promotion codes and rate category that may affect the fare.

Parameters:
list
    public void setRateQualifierList(List<RailRateQualifyinglist) {
         = list;
    }

    
Get the number of 'RateQualifier' element items.

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

    
Add a 'RateQualifier' element item.

Parameters:
item
    public void addRateQualifier(RailRateQualifying item) {
        .add(item);
    }

    
Get 'RateQualifier' element item by position.

Parameters:
index
Returns:
item
    public RailRateQualifying getRateQualifier(int index) {
        return .get(index);
    }

    
Remove all 'RateQualifier' element items.
    public void clearRateQualifierList() {
        .clear();
    }

    
Get the list of 'PassengerCategory' element items.

Returns:
list
        return ;
    }

    
Set the list of 'PassengerCategory' element items.

Parameters:
list
    public void setPassengerCategoryList(List<PassengerCategorylist) {
         = list;
    }

    
Get the number of 'PassengerCategory' element items.

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

    
Add a 'PassengerCategory' element item.

Parameters:
item
    public void addPassengerCategory(PassengerCategory item) {
        .add(item);
    }

    
Get 'PassengerCategory' element item by position.

Parameters:
index
Returns:
item
    public PassengerCategory getPassengerCategory(int index) {
        return .get(index);
    }

    
Remove all 'PassengerCategory' element items.
    public void clearPassengerCategoryList() {
        .clear();
    }

    
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;
    }
    
Specific criteria for qualifying fare options. 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="FareQuoteCriteria" minOccurs="0" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RailAvailScheduleQueryType">
         <xs:attribute type="ns:AirTripType" use="optional" name="TripType"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class FareQuoteCriteria extends RailAvailScheduleQuery
    {
        private AirTrip trip;

        
Get the 'TripType' attribute value. Identifies the type of the trip, such as one way and open jaw.

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

        
Set the 'TripType' attribute value. Identifies the type of the trip, such as one way and open jaw.

Parameters:
trip
        public void setTrip(AirTrip trip) {
            this. = trip;
        }
    }
    
Traveler preferences including accommodation and class codes. 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="TravelerPref" minOccurs="0" maxOccurs="9">
   <xs:complexType>
     <xs:sequence minOccurs="0">
       <!-- Reference to inner class Sequence -->
     </xs:sequence>
     <xs:attribute type="ns:PreferLevelType" use="optional" name="PreferLevel"/>
     <xs:attribute type="xs:string" use="optional" name="Quantity"/>
   </xs:complexType>
 </xs:element>
 
    public static class TravelerPref
    {
        private Sequence sequence;
        private PreferLevel preferLevel;
        private String quantity;

        
Get the sequence value.

Returns:
value
        public Sequence getSequence() {
            return ;
        }

        
Set the sequence value.

Parameters:
sequence
        public void setSequence(Sequence sequence) {
            this. = sequence;
        }

        
Get the 'PreferLevel' attribute value. A preference level for an associated item.

Returns:
value
        public PreferLevel getPreferLevel() {
            return ;
        }

        
Set the 'PreferLevel' attribute value. A preference level for an associated item.

Parameters:
preferLevel
        public void setPreferLevel(PreferLevel preferLevel) {
            this. = preferLevel;
        }

        
Get the 'Quantity' attribute value. Quantity of specified class code or accommodation services.

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

        
Set the 'Quantity' attribute value. Quantity of specified class code or accommodation services.

Parameters:
quantity
        public void setQuantity(String quantity) {
            this. = quantity;
        }
        
Schema fragment(s) for this class:
 <xs:sequence xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" minOccurs="0">
   <xs:element type="ns:ClassCodeType" name="ClassCodes" minOccurs="0"/>
   <xs:element type="ns:AccommodationType" name="Accommodation" minOccurs="0"/>
 </xs:sequence>
 
        public static class Sequence
        {
            private ClassCode classCodes;
            private Accommodation accommodation;

            
Get the 'ClassCodes' element value. The class of inventory controlled services available.

Returns:
value
            public ClassCode getClassCodes() {
                return ;
            }

            
Set the 'ClassCodes' element value. The class of inventory controlled services available.

Parameters:
classCodes
            public void setClassCodes(ClassCode classCodes) {
                this. = classCodes;
            }

            
Get the 'Accommodation' element value. Accommodation preferences.

Returns:
value
            public Accommodation getAccommodation() {
                return ;
            }

            
Set the 'Accommodation' element value. Accommodation preferences.

Parameters:
accommodation
            public void setAccommodation(Accommodation accommodation) {
                this. = accommodation;
            }
        }
    }
    
Passenger type, category and quantity information, including occupation, passenger qualifying codes, rate qualifiers and disability requirements. 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="PassengerCategory" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RailPassengerCategoryType">
         <xs:attribute type="xs:anySimpleType" name="Quantity"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class PassengerCategory extends RailPassengerCategory
    {
        private String quantity;

        
Get the 'Quantity' attribute value. Used to define the quantity for the associated passenger category.

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

        
Set the 'Quantity' attribute value. Used to define the quantity for the associated passenger category.

Parameters:
quantity
        public void setQuantity(String quantity) {
            this. = quantity;
        }
    }
New to GrepCode? Check out our FAQ X