Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.pkg;
  
  import java.util.List;
A message to request a package holiday booking. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_PkgBookRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
       <xs:element type="ns:PackageType" name="PackageRequest" minOccurs="0"/>
       <xs:element type="ns:ContactPersonType" name="ContactDetail" minOccurs="0"/>
       <xs:element name="PassengerListItems" minOccurs="0">
         <!-- Reference to inner class PassengerListItems -->
       </xs:element>
       <xs:element name="OwnInsuranceChoices" minOccurs="0">
         <!-- Reference to inner class OwnInsuranceChoices -->
       </xs:element>
       <xs:element name="PaymentDetails" minOccurs="0">
         <!-- Reference to inner class PaymentDetails -->
       </xs:element>
       <xs:element name="AgentInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AgentInfoGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
     <xs:attribute type="ns:TransactionActionType" use="required" name="ActionType"/>
     <xs:attribute type="xs:float" use="optional" name="ExpectedGrossAmount"/>
     <xs:attribute type="xs:string" use="optional" name="RequestedCurrency"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 
 
 public class BookRQ
 {
     private POS POS;
     private UniqueID uniqueID;
     private _Package packageRequest;
     private ContactPerson contactDetail;
     private PaymentDetails paymentDetails;
     private AgentInfoGroup agentInfo;
     private TPAExtensions TPAExtensions;
     private String reqRespVersion;
     private TransactionAction action;
     private Float expectedGrossAmount;
     private String requestedCurrency;

    
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 'UniqueID' element value. Booking or reservation reference - used when confirming a provisional reservation.

Returns:
value
 
     public UniqueID getUniqueID() {
         return ;
    }

    
Set the 'UniqueID' element value. Booking or reservation reference - used when confirming a provisional reservation.

Parameters:
uniqueID
    public void setUniqueID(UniqueID uniqueID) {
        this. = uniqueID;
    }

    
Get the 'PackageRequest' element value. The codes identifying the package being booked

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

    
Set the 'PackageRequest' element value. The codes identifying the package being booked

Parameters:
packageRequest
    public void setPackageRequest(_Package packageRequest) {
        this. = packageRequest;
    }

    
Get the 'ContactDetail' element value. Information on the person who is the contact for the booking.

Returns:
value
    public ContactPerson getContactDetail() {
        return ;
    }

    
Set the 'ContactDetail' element value. Information on the person who is the contact for the booking.

Parameters:
contactDetail
    public void setContactDetail(ContactPerson contactDetail) {
        this. = contactDetail;
    }

    
Get the 'PassengerListItems' element value.

Returns:
value
        return ;
    }

    
Set the 'PassengerListItems' element value.

Parameters:
passengerListItems
    public void setPassengerListItems(PassengerListItems passengerListItems) {
        this. = passengerListItems;
    }

    
Get the 'OwnInsuranceChoices' element value.

Returns:
value
        return ;
    }

    
Set the 'OwnInsuranceChoices' element value.

Parameters:
ownInsuranceChoices
    public void setOwnInsuranceChoices(OwnInsuranceChoices ownInsuranceChoices) {
        this. = ownInsuranceChoices;
    }

    
Get the 'PaymentDetails' element value.

Returns:
value
    public PaymentDetails getPaymentDetails() {
        return ;
    }

    
Set the 'PaymentDetails' element value.

Parameters:
paymentDetails
    public void setPaymentDetails(PaymentDetails paymentDetails) {
        this. = paymentDetails;
    }

    
Get the 'AgentInfoGroup' attributeGroup value. Agency information.

Returns:
value
    public AgentInfoGroup getAgentInfo() {
        return ;
    }

    
Set the 'AgentInfoGroup' attributeGroup value. Agency information.

Parameters:
agentInfo
    public void setAgentInfo(AgentInfoGroup agentInfo) {
        this. = agentInfo;
    }

    
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 'ActionType' attribute value. Type of booking action required.

Returns:
value
    public TransactionAction getAction() {
        return ;
    }

    
Set the 'ActionType' attribute value. Type of booking action required.

Parameters:
action
    public void setAction(TransactionAction action) {
        this. = action;
    }

    
Get the 'ExpectedGrossAmount' attribute value. Used with an ActionType of 'Commit', this is used by the supplier to respond with a warning if the actual gross amount of the booking is different from this amount (optionally outside a mutually agreed tolerance value).

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

    
Set the 'ExpectedGrossAmount' attribute value. Used with an ActionType of 'Commit', this is used by the supplier to respond with a warning if the actual gross amount of the booking is different from this amount (optionally outside a mutually agreed tolerance value).

Parameters:
expectedGrossAmount
    public void setExpectedGrossAmount(Float expectedGrossAmount) {
        this. = expectedGrossAmount;
    }

    
Get the 'RequestedCurrency' attribute value. The code specifying the currency in which the response should be sent. Use ISO 4217, three alpha code.

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

    
Set the 'RequestedCurrency' attribute value. The code specifying the currency in which the response should be sent. Use ISO 4217, three alpha code.

Parameters:
requestedCurrency
    public void setRequestedCurrency(String requestedCurrency) {
        this. = requestedCurrency;
    }
    
Details of all passengers in a reservation or reservation segment. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PassengerListItems" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:PkgPassengerListItem" name="PassengerListItem" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PassengerListItems
    {
        private List<PkgPassengerListItempassengerListItemList = new ArrayList<PkgPassengerListItem>();

        
Get the list of 'PassengerListItem' element items. Details of a passenger booking this holiday package.

Returns:
list
            return ;
        }

        
Set the list of 'PassengerListItem' element items. Details of a passenger booking this holiday package.

Parameters:
list
        public void setPassengerListItemList(List<PkgPassengerListItemlist) {
             = list;
        }

        
Get the number of 'PassengerListItem' element items.

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

        
Add a 'PassengerListItem' element item.

Parameters:
item
        public void addPassengerListItem(PkgPassengerListItem item) {
            .add(item);
        }

        
Get 'PassengerListItem' element item by position.

Parameters:
index
Returns:
item
        public PkgPassengerListItem getPassengerListItem(int index) {
            return .get(index);
        }

        
Remove all 'PassengerListItem' element items.
        public void clearPassengerListItemList() {
            .clear();
        }
    }
    
A collection of insurance policy details supplied by the customers. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OwnInsuranceChoices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:OwnInsuranceChoiceType" name="OwnInsuranceChoice" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class OwnInsuranceChoices
    {
        private List<OwnInsuranceChoiceownInsuranceChoiceList = new ArrayList<OwnInsuranceChoice>();

        
Get the list of 'OwnInsuranceChoice' element items. Details of the insurance company from whom the customer has purchased a policy to cover the holiday

Returns:
list
            return ;
        }

        
Set the list of 'OwnInsuranceChoice' element items. Details of the insurance company from whom the customer has purchased a policy to cover the holiday

Parameters:
list
        public void setOwnInsuranceChoiceList(List<OwnInsuranceChoicelist) {
             = list;
        }

        
Get the number of 'OwnInsuranceChoice' element items.

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

        
Add a 'OwnInsuranceChoice' element item.

Parameters:
item
        public void addOwnInsuranceChoice(OwnInsuranceChoice item) {
            .add(item);
        }

        
Get 'OwnInsuranceChoice' element item by position.

Parameters:
index
Returns:
item
        public OwnInsuranceChoice getOwnInsuranceChoice(int index) {
            return .get(index);
        }

        
Remove all 'OwnInsuranceChoice' element items.
        public void clearOwnInsuranceChoiceList() {
            .clear();
        }
    }
    
A collection of chosen payment methods. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PaymentDetails" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PaymentDetail" maxOccurs="9">
         <!-- Reference to inner class PaymentDetail -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PaymentDetails
    {
        private List<PaymentDetailpaymentDetailList = new ArrayList<PaymentDetail>();

        
Get the list of 'PaymentDetail' element items.

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

        
Set the list of 'PaymentDetail' element items.

Parameters:
list
        public void setPaymentDetailList(List<PaymentDetaillist) {
             = list;
        }

        
Get the number of 'PaymentDetail' element items.

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

        
Add a 'PaymentDetail' element item.

Parameters:
item
        public void addPaymentDetail(PaymentDetail item) {
            .add(item);
        }

        
Get 'PaymentDetail' element item by position.

Parameters:
index
Returns:
item
        public PaymentDetail getPaymentDetail(int index) {
            return .get(index);
        }

        
Remove all 'PaymentDetail' element items.
        public void clearPaymentDetailList() {
            .clear();
        }
        
Details of a payment Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PaymentDetail" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PaymentDetailType">
         <xs:attribute type="xs:int" use="optional" name="SecurityCode"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class PaymentDetail
                extends
                    org.jibx.schema.org.opentravel._2012B.base.PaymentDetail
        {
            private Integer securityCode;

            
Get the 'SecurityCode' attribute value. (CCD code). For use with a Credit or Debit Card payment in a secure transaction.

Returns:
value
            public Integer getSecurityCode() {
                return ;
            }

            
Set the 'SecurityCode' attribute value. (CCD code). For use with a Credit or Debit Card payment in a secure transaction.

Parameters:
securityCode
            public void setSecurityCode(Integer securityCode) {
                this. = securityCode;
            }
        }
    }
New to GrepCode? Check out our FAQ X