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 Rail Book Modify request message is used to request that a reservation be created for one or more rail journies between specified locations on specific date(s) for a specific number and type of passengers. NOTE that a subsequent OTA_RailConfirmBookingRQ message is required to acquire a PNR for the reservation, or an OTA_RailIgnoreBookingRQ message is required to release the reservation (and associated inventory) from the trading partner system. 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_RailBookModifyRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="RailBookInfo">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="OriginDestination" maxOccurs="9">
               <!-- Reference to inner class OriginDestination -->
             </xs:element>
             <xs:element type="ns:RailPassengerCategoryDetailType" name="PassengerInfo" minOccurs="0" maxOccurs="99"/>
             <xs:element type="ns:RailRateQualifyingType" name="RateQualifier" minOccurs="0"/>
             <xs:element type="ns:CompanyNameType" name="Fulfillment" minOccurs="0"/>
             <xs:element type="ns:PaymentFormType" name="PaymentForm" minOccurs="0" maxOccurs="5"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:RailPersonInfoType" name="Contact" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class BookModifyRQ
 {
     private POS POS;
     private RailPersonInfo contact;
     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 'OriginDestination' element items. Full details on the reservation that is to be created, specifying location information, passenger data and payment details.

Returns:
list
 
         return ;
     }

    
Set the list of 'OriginDestination' element items. Full details on the reservation that is to be created, specifying location information, passenger data and payment details.

Parameters:
list
 
     public void setOriginDestinationList(List<OriginDestinationlist) {
          = list;
    }

    
Get the number of 'OriginDestination' element items.

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

    
Add a 'OriginDestination' element item.

Parameters:
item
    public void addOriginDestination(OriginDestination item) {
        .add(item);
    }

    
Get 'OriginDestination' element item by position.

Parameters:
index
Returns:
item
    public OriginDestination getOriginDestination(int index) {
        return .get(index);
    }

    
Remove all 'OriginDestination' element items.
    public void clearOriginDestinationList() {
        .clear();
    }

    
Get the list of 'PassengerInfo' element items. Information of passenger(s) for a reservation

Returns:
list
        return ;
    }

    
Set the list of 'PassengerInfo' element items. Information of passenger(s) for a reservation

Parameters:
list
            List<RailPassengerCategoryDetaillist) {
         = list;
    }

    
Get the number of 'PassengerInfo' element items.

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

    
Add a 'PassengerInfo' element item.

Parameters:
item
        .add(item);
    }

    
Get 'PassengerInfo' element item by position.

Parameters:
index
Returns:
item
        return .get(index);
    }

    
Remove all 'PassengerInfo' element items.
    public void clearRailBookInfoPassengerInfoList() {
    }

    
Get the 'RateQualifier' element value. Indicates the type of fares of interest to the customer, along with any discount number or promotional codes that may affect the fare.

Returns:
value
        return ;
    }

    
Set the 'RateQualifier' element value. Indicates the type of fares of interest to the customer, along with any discount number or promotional codes that may affect the fare.

Parameters:
railBookInfoRateQualifier
    public void setRailBookInfoRateQualifier(
            RailRateQualifying railBookInfoRateQualifier) {
        this. = railBookInfoRateQualifier;
    }

    
Get the 'Fulfillment' element value. Information on the fulfillment of the ticket, e.g. the party that will be issuing the ticket.

Returns:
value
        return ;
    }

    
Set the 'Fulfillment' element value. Information on the fulfillment of the ticket, e.g. the party that will be issuing the ticket.

Parameters:
railBookInfoFulfillment
    public void setRailBookInfoFulfillment(CompanyName railBookInfoFulfillment) {
        this. = railBookInfoFulfillment;
    }

    
Get the list of 'PaymentForm' element items. Information of the form(s) of payment to be used to pay for this reservation. The element repeats to allow for multiple forms of payment to be used, if so required.

Returns:
list
        return ;
    }

    
Set the list of 'PaymentForm' element items. Information of the form(s) of payment to be used to pay for this reservation. The element repeats to allow for multiple forms of payment to be used, if so required.

Parameters:
list
    public void setRailBookInfoPaymentFormList(List<PaymentFormlist) {
         = list;
    }

    
Get the number of 'PaymentForm' element items.

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

    
Add a 'PaymentForm' element item.

Parameters:
item
    public void addRailBookInfoPaymentForm(PaymentForm item) {
        .add(item);
    }

    
Get 'PaymentForm' element item by position.

Parameters:
index
Returns:
item
    public PaymentForm getRailBookInfoPaymentForm(int index) {
        return .get(index);
    }

    
Remove all 'PaymentForm' element items.
    public void clearRailBookInfoPaymentFormList() {
    }

    
Get the 'Contact' element value. The contact person for the reservation.

Returns:
value
    public RailPersonInfo getContact() {
        return ;
    }

    
Set the 'Contact' element value. The contact person for the reservation.

Parameters:
contact
    public void setContact(RailPersonInfo contact) {
        this. = contact;
    }

    
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;
    }
    
Details about one specific journey between this origin and destination location. This element will be repeated for each journey. For example, for a round-trip reservation, this element will occur two times. 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="OriginDestination" maxOccurs="9">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:LocationType" name="OriginLocation" minOccurs="0"/>
       <xs:element type="ns:LocationType" name="DestinationLocation" minOccurs="0"/>
       <xs:element name="TrainSegment" maxOccurs="9">
         <!-- Reference to inner class TrainSegment -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class OriginDestination
    {
        private Location originLocation;
        private Location destinationLocation;
        private List<TrainSegmenttrainSegmentList = new ArrayList<TrainSegment>();

        
Get the 'OriginLocation' element value. The travel origin location.

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

        
Set the 'OriginLocation' element value. The travel origin location.

Parameters:
originLocation
        public void setOriginLocation(Location originLocation) {
            this. = originLocation;
        }

        
Get the 'DestinationLocation' element value. The travel destination location.

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

        
Set the 'DestinationLocation' element value. The travel destination location.

Parameters:
destinationLocation
        public void setDestinationLocation(Location destinationLocation) {
            this. = destinationLocation;
        }

        
Get the list of 'TrainSegment' element items.

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

        
Set the list of 'TrainSegment' element items.

Parameters:
list
        public void setTrainSegmentList(List<TrainSegmentlist) {
             = list;
        }

        
Get the number of 'TrainSegment' element items.

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

        
Add a 'TrainSegment' element item.

Parameters:
item
        public void addTrainSegment(TrainSegment item) {
            .add(item);
        }

        
Get 'TrainSegment' element item by position.

Parameters:
index
Returns:
item
        public TrainSegment getTrainSegment(int index) {
            return .get(index);
        }

        
Remove all 'TrainSegment' element items.
        public void clearTrainSegmentList() {
            .clear();
        }
        
A collection of train segments that provide journey information from origin to destination. Each segment has full details on one specific train segment, including the origin and destination locations for this segment,related travelers' request, etc. 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="TrainSegment" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:TrainSegmentSummaryType">
         <xs:sequence>
           <xs:element type="ns:ClassCodeType" name="ClassCodes" minOccurs="0" maxOccurs="99"/>
           <xs:element name="TravelerRequest" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class TravelerRequest -->
           </xs:element>
           <xs:element type="ns:CompanyNameType" name="MarketingCompany" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="ns:SeatType" use="optional" name="SeatPreference"/>
         <xs:attribute type="ns:SeatDirectionType" use="optional" name="SeatDirection"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class TrainSegment extends TrainSegmentSummary
        {
            private List<ClassCodeclassCodeList = new ArrayList<ClassCode>();
            private List<TravelerRequesttravelerRequestList = new ArrayList<TravelerRequest>();
            private CompanyName marketingCompany;
            private Seat seatPreference;
            private SeatDirection seatDirection;

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

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

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

Parameters:
list
            public void setClassCodeList(List<ClassCodelist) {
                 = list;
            }

            
Get the number of 'ClassCodes' element items.

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

            
Add a 'ClassCodes' element item.

Parameters:
item
            public void addClassCode(ClassCode item) {
                .add(item);
            }

            
Get 'ClassCodes' element item by position.

Parameters:
index
Returns:
item
            public ClassCode getClassCode(int index) {
                return .get(index);
            }

            
Remove all 'ClassCodes' element items.
            public void clearClassCodeList() {
                .clear();
            }

            
Get the list of 'TravelerRequest' element items.

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

            
Set the list of 'TravelerRequest' element items.

Parameters:
list
            public void setTravelerRequestList(List<TravelerRequestlist) {
                 = list;
            }

            
Get the number of 'TravelerRequest' element items.

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

            
Add a 'TravelerRequest' element item.

Parameters:
item
            public void addTravelerRequest(TravelerRequest item) {
                .add(item);
            }

            
Get 'TravelerRequest' element item by position.

Parameters:
index
Returns:
item
            public TravelerRequest getTravelerRequest(int index) {
                return .get(index);
            }

            
Remove all 'TravelerRequest' element items.
            public void clearTravelerRequestList() {
                .clear();
            }

            
Get the 'MarketingCompany' element value. The marketing train company associated with this segment.

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

            
Set the 'MarketingCompany' element value. The marketing train company associated with this segment.

Parameters:
marketingCompany
            public void setMarketingCompany(CompanyName marketingCompany) {
                this. = marketingCompany;
            }

            
Get the 'SeatPreference' attribute value. Used to specify a seat preference, e.g. aisle, window, etc.

Returns:
value
            public Seat getSeatPreference() {
                return ;
            }

            
Set the 'SeatPreference' attribute value. Used to specify a seat preference, e.g. aisle, window, etc.

Parameters:
seatPreference
            public void setSeatPreference(Seat seatPreference) {
                this. = seatPreference;
            }

            
Get the 'SeatDirection' attribute value. The direction the seat faces.

Returns:
value
            public SeatDirection getSeatDirection() {
                return ;
            }

            
Set the 'SeatDirection' attribute value. The direction the seat faces.

Parameters:
seatDirection
            public void setSeatDirection(SeatDirection seatDirection) {
                this. = seatDirection;
            }
            
Specific traveler preferences for the booking request, including accommodation selection and discount type. 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="TravelerRequest" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DiscountType" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:RailCodeGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element ref="ns:AccommodationService"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="TravelerRPH"/>
   </xs:complexType>
 </xs:element>
 
            public static class TravelerRequest
            {
                private RailCodeGroup discount;
                private AccommodationService accommodationService;
                private String travelerRPH;

                
Get the 'RailCodeGroup' attributeGroup value. Used to specify a ticket class code and optionally the source for the code. Note that the Code may be a value from the OpenTravel Code List "Discounts Available" (DIS) or a string value up to 8 characters in length.

Returns:
value
                public RailCodeGroup getDiscount() {
                    return ;
                }

                
Set the 'RailCodeGroup' attributeGroup value. Used to specify a ticket class code and optionally the source for the code. Note that the Code may be a value from the OpenTravel Code List "Discounts Available" (DIS) or a string value up to 8 characters in length.

Parameters:
discount
                public void setDiscount(RailCodeGroup discount) {
                    this. = discount;
                }

                
Get the 'AccommodationService' element value.

Returns:
value
                public AccommodationService getAccommodationService() {
                    return ;
                }

                
Set the 'AccommodationService' element value.

Parameters:
accommodationService
                public void setAccommodationService(
                        AccommodationService accommodationService) {
                    this. = accommodationService;
                }

                
Get the 'TravelerRPH' attribute value. A reference to the traveler or traveler category. Note that this is only used to relate data within this message.

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

                
Set the 'TravelerRPH' attribute value. A reference to the traveler or traveler category. Note that this is only used to relate data within this message.

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