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 request for a costing of a specific profile of a package. 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_PkgCostRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="ProvisionalID" minOccurs="0">
         <!-- Reference to inner class ProvisionalID -->
       </xs:element>
       <xs:element type="ns:PackageType" name="PackageRequest"/>
       <xs:element name="PassengerListItems" minOccurs="0">
         <!-- Reference to inner class PassengerListItems -->
       </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: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 CostRQ
 {
     private POS POS;
     private ProvisionalID provisionalID;
     private _Package packageRequest;
     private TPAExtensions TPAExtensions;
     private String reqRespVersion;
     private TransactionAction action;

    
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 'ProvisionalID' element value.

Returns:
value
 
     public ProvisionalID getProvisionalID() {
         return ;
     }

    
Set the 'ProvisionalID' element value.

Parameters:
provisionalID
 
     public void setProvisionalID(ProvisionalID provisionalID) {
         this. = provisionalID;
     }

    
Get the 'PackageRequest' element value. Contains the codes and itinerary items identifying the package to be costed.

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

    
Set the 'PackageRequest' element value. Contains the codes and itinerary items identifying the package to be costed.

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

    
Get the 'PassengerListItems' element value.

Returns:
value
        return ;
    }

    
Set the 'PassengerListItems' element value.

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

    
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 action required - Hold or Quote. 'Hold' is generally used when the requestor has to get payment authorisation before confirming the booking and wishes the supplier to make a provisional booking and reserve the stock pending a booking confirmation request. 'Quote' does not require any stock action. If this attribute is absent, 'Quote' will be assumed.

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

    
Set the 'ActionType' attribute value. Type of action required - Hold or Quote. 'Hold' is generally used when the requestor has to get payment authorisation before confirming the booking and wishes the supplier to make a provisional booking and reserve the stock pending a booking confirmation request. 'Quote' does not require any stock action. If this attribute is absent, 'Quote' will be assumed.

Parameters:
action
    public void setAction(TransactionAction action) {
        this. = action;
    }
    
A temporary reference supplied when inventory has been reserved pending booking confirmation. 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="ProvisionalID" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:UniqueID_Type">
         <xs:attribute type="xs:string" name="ExpireDateTime"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class ProvisionalID extends UniqueID
    {
        private String expireDateTime;

        
Get the 'ExpireDateTime' attribute value. The date and/or time at which the inventory will be returned to stock if the temporary booking has not been confirmed

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

        
Set the 'ExpireDateTime' attribute value. The date and/or time at which the inventory will be returned to stock if the temporary booking has not been confirmed

Parameters:
expireDateTime
        public void setExpireDateTime(String expireDateTime) {
            this. = expireDateTime;
        }
    }
    
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 or of a quantity of generic passengers e.g. 2 children aged 5. When used in this way, Age is essential for children but may be omitted for adults.

Returns:
list
            return ;
        }

        
Set the list of 'PassengerListItem' element items. Details of a passenger or of a quantity of generic passengers e.g. 2 children aged 5. When used in this way, Age is essential for children but may be omitted for adults.

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();
        }
    }
New to GrepCode? Check out our FAQ X