Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.fastrez;
  
The read request message is used to retrieve a reservation. The reservation's confirmation number and the guest's last name are REQUIRED for the retreival. The FastRezOTA_HotelResRS message is returned. 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_ReadRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="POS">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Source">
               <xs:complexType>
                 <xs:sequence>
                   <xs:element name="RequestorID">
                     <xs:complexType>
                       <xs:attribute type="xs:string" use="required" name="Type"/>
                       <xs:attribute type="xs:string" use="required" name="ID"/>
                       <xs:attribute type="xs:string" use="required" name="ID_Context"/>
                     </xs:complexType>
                   </xs:element>
                 </xs:sequence>
                 <xs:attribute type="xs:string" use="required" name="ISOCountry"/>
                 <xs:attribute type="xs:string" use="required" name="ISOCurrency"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="ReadRequests">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="ReadRequest">
               <xs:complexType>
                 <xs:sequence>
                   <xs:element name="UniqueID">
                     <xs:complexType>
                       <xs:attribute type="xs:string" use="required" name="Type"/>
                       <xs:attribute type="xs:string" use="required" name="ID"/>
                       <xs:attribute type="xs:string" use="required" name="ID_Context"/>
                     </xs:complexType>
                   </xs:element>
                   <xs:element name="Verification">
                     <xs:complexType>
                       <xs:sequence>
                         <xs:element name="PersonName">
                           <xs:complexType>
                             <xs:sequence>
                               <xs:element type="xs:string" name="Surname"/>
                             </xs:sequence>
                           </xs:complexType>
                         </xs:element>
                       </xs:sequence>
                     </xs:complexType>
                   </xs:element>
                 </xs:sequence>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="EchoToken"/>
     <xs:attribute type="xs:dateTime" use="required" name="TimeStamp"/>
     <xs:attribute type="xs:float" use="required" name="Version"/>
     <xs:attribute type="xs:string" use="required" name="PrimaryLangID"/>
   </xs:complexType>
 </xs:element>
 
 
 public class ReadRQ
 {
     private String POSSourceRequestorID;
     private String POSSourceRequestorIDID;
     private String POSSourceISOCountry;
     private String POSSourceISOCurrency;
     private String readRequestsUniqueID;
     private String readRequestsUniqueIDID;
     private String readRequestsVerification;
     private String echoToken;
     private DateTime timeStamp;
     private Float version;
     private String primaryLangID;

    
Get the 'Type' attribute value. The Type identifies the ID and MUST refer to OpenTravel Code List Unique ID Type (UIT).

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

    
Set the 'Type' attribute value. The Type identifies the ID and MUST refer to OpenTravel Code List Unique ID Type (UIT).

Parameters:
POSSourceRequestorIDType
    public void setPOSSourceRequestorIDType(String POSSourceRequestorIDType) {
         = POSSourceRequestorIDType;
    }

    
Get the 'ID' attribute value. ID MUST contain a unique identifying value for the requestor within the scope of the ID_Context.

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

    
Set the 'ID' attribute value. ID MUST contain a unique identifying value for the requestor within the scope of the ID_Context.

Parameters:
POSSourceRequestorIDID
    public void setPOSSourceRequestorIDID(String POSSourceRequestorIDID) {
        this. = POSSourceRequestorIDID;
    }

    
Get the 'ID_Context' attribute value. ID_Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Returns:
value
        return ;
    }

    
Set the 'ID_Context' attribute value. ID_Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Parameters:
POSSourceRequestorIDIDContext
            String POSSourceRequestorIDIDContext) {
        this. = POSSourceRequestorIDIDContext;
    }

    
Get the 'ISOCountry' attribute value. ISOCountry identifies the country code of the requesting party and MUST conform to ISO-3166. The country code of the requesting party MAY be used to refine responses therefore it SHOULD reflect the origin of the Guest.

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

    
Set the 'ISOCountry' attribute value. ISOCountry identifies the country code of the requesting party and MUST conform to ISO-3166. The country code of the requesting party MAY be used to refine responses therefore it SHOULD reflect the origin of the Guest.

Parameters:
POSSourceISOCountry
    public void setPOSSourceISOCountry(String POSSourceISOCountry) {
        this. = POSSourceISOCountry;
    }

    
Get the 'ISOCurrency' attribute value. ISOCurrency MUST conform to ISO 4217, 3 character codes. OpenTravel RECOMMENDS that the same currency code be used in the response, but responses MAY be returned in any valid currency.

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

    
Set the 'ISOCurrency' attribute value. ISOCurrency MUST conform to ISO 4217, 3 character codes. OpenTravel RECOMMENDS that the same currency code be used in the response, but responses MAY be returned in any valid currency.

Parameters:
POSSourceISOCurrency
    public void setPOSSourceISOCurrency(String POSSourceISOCurrency) {
        this. = POSSourceISOCurrency;
    }

    
Get the 'Type' attribute value. The Type MUST refer to OpenTravel Code List Unique ID Type (UIT). FastRez RECOMMENDS restricting the use of the code table to codes 14 - Reservation and code 15 - Cancellation.

Returns:
value
        return ;
    }

    
Set the 'Type' attribute value. The Type MUST refer to OpenTravel Code List Unique ID Type (UIT). FastRez RECOMMENDS restricting the use of the code table to codes 14 - Reservation and code 15 - Cancellation.

Parameters:
readRequestsUniqueIDType
    public void setReadRequestsUniqueIDType(String readRequestsUniqueIDType) {
         = readRequestsUniqueIDType;
    }

    
Get the 'ID' attribute value. ID MUST contain a unique identifying value for the reservation within the scope of the ID_Context.

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

    
Set the 'ID' attribute value. ID MUST contain a unique identifying value for the reservation within the scope of the ID_Context.

Parameters:
readRequestsUniqueIDID
    public void setReadRequestsUniqueIDID(String readRequestsUniqueIDID) {
        this. = readRequestsUniqueIDID;
    }

    
Get the 'ID_Context' attribute value. ID Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Returns:
value
        return ;
    }

    
Set the 'ID_Context' attribute value. ID Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Parameters:
readRequestsUniqueIDIDContext
            String readRequestsUniqueIDIDContext) {
        this. = readRequestsUniqueIDIDContext;
    }

    
Get the 'Surname' element value. Surname MUST specify the family name or last name of the guest as found on the reservation.

Returns:
value
        return ;
    }

    
Set the 'Surname' element value. Surname MUST specify the family name or last name of the guest as found on the reservation.

Parameters:
readRequestsVerification
    public void setReadRequestsVerification(String readRequestsVerification) {
        this. = readRequestsVerification;
    }

    
Get the 'EchoToken' attribute value. EchoToken MAY provide a reference for additional message identification, assigned by the requesting host system. This attribute SHOULD NOT be used to maintain state, but SHOULD only be used for diagnostic purposes. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.

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

    
Set the 'EchoToken' attribute value. EchoToken MAY provide a reference for additional message identification, assigned by the requesting host system. This attribute SHOULD NOT be used to maintain state, but SHOULD only be used for diagnostic purposes. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.

Parameters:
echoToken
    public void setEchoToken(String echoToken) {
        this. = echoToken;
    }

    
Get the 'TimeStamp' attribute value. TimeStamp MUST indicate the creation date and time of the message in UTC using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ssZ with time values using the 24 hour clock (e.g. 20 November 2003, 1:59:38 pm UTC becomes 2003-11-20T13:59:38Z).

Returns:
value
    public DateTime getTimeStamp() {
        return ;
    }

    
Set the 'TimeStamp' attribute value. TimeStamp MUST indicate the creation date and time of the message in UTC using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ssZ with time values using the 24 hour clock (e.g. 20 November 2003, 1:59:38 pm UTC becomes 2003-11-20T13:59:38Z).

Parameters:
timeStamp
    public void setTimeStamp(DateTime timeStamp) {
        this. = timeStamp;
    }

    
Get the 'Version' attribute value. Version MUST be consistent with the underlying schema baseline.

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

    
Set the 'Version' attribute value. Version MUST be consistent with the underlying schema baseline.

Parameters:
version
    public void setVersion(Float version) {
        this. = version;
    }

    
Get the 'PrimaryLangID' attribute value. PrimaryLangID code MUST conform to ISO 639 language codes. The code MUST define the language of the request. FastRez RECOMMENDS that the response SHOULD match the request, but a response MAY use any language recognized by ISO 639.

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

    
Set the 'PrimaryLangID' attribute value. PrimaryLangID code MUST conform to ISO 639 language codes. The code MUST define the language of the request. FastRez RECOMMENDS that the response SHOULD match the request, but a response MAY use any language recognized by ISO 639.

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