org.ota.vehicle
Class CancelRQ

java.lang.Object
  extended by org.ota.vehicle.CancelRQ

public class CancelRQ
extends java.lang.Object

The root tag of OTA_VehicleCancelRQ contains standard payload attributes found in all OpenTravel payload documents. The attribute ReqRespVersion is a positive integer value that indicates the version number requested for the response message. 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_VehCancelRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:CancelInfoRQType" name="VehCancelRQCore"/>
       <xs:element type="ns:VehicleCancelRQAdditionalInfoType" name="VehCancelRQInfo" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CancelInfoRQType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" maxOccurs="2"/>
     <xs:element type="ns:PersonNameType" name="PersonName" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="ns:TransactionActionType" use="required" name="CancelType"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 


Constructor Summary
CancelRQ()
           
 
Method Summary
 void addVehCancelRQCoreUniqueID(UniqueID item)
          Add a 'UniqueID' element item.
 void clearVehCancelRQCoreUniqueIDs()
          Remove all 'UniqueID' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.String getReqRespVersion()
          Get the 'ReqRespVersion' attribute value.
 TransactionAction getVehCancelRQCoreCancel()
          Get the 'CancelType' attribute value.
 PersonName getVehCancelRQCorePersonName()
          Get the 'PersonName' element value.
 UniqueID getVehCancelRQCoreUniqueID(int index)
          Get 'UniqueID' element item by position.
 java.util.List<UniqueID> getVehCancelRQCoreUniqueIDs()
          Get the list of 'UniqueID' element items.
 VehicleCancelRQAdditionalInfo getVehCancelRQInfo()
          Get the 'VehCancelRQInfo' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReqRespVersion(java.lang.String reqRespVersion)
          Set the 'ReqRespVersion' attribute value.
 void setVehCancelRQCoreCancel(TransactionAction vehCancelRQCoreCancel)
          Set the 'CancelType' attribute value.
 void setVehCancelRQCorePersonName(PersonName vehCancelRQCorePersonName)
          Set the 'PersonName' element value.
 void setVehCancelRQCoreUniqueIDs(java.util.List<UniqueID> list)
          Set the list of 'UniqueID' element items.
 void setVehCancelRQInfo(VehicleCancelRQAdditionalInfo vehCancelRQInfo)
          Set the 'VehCancelRQInfo' element value.
 int sizeVehCancelRQCoreUniqueIDs()
          Get the number of 'UniqueID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelRQ

public CancelRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of Sale Identification. Identification number of the vendor that has made the vehicle availability request and agency number assigned by IATA, ARC, ESRP or TID.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of Sale Identification. Identification number of the vendor that has made the vehicle availability request and agency number assigned by IATA, ARC, ESRP or TID.

Parameters:
POS -

getVehCancelRQCoreUniqueIDs

public java.util.List<UniqueID> getVehCancelRQCoreUniqueIDs()
Get the list of 'UniqueID' element items. Sending own UniqueID and partner UniqueID - the receiving system needs to know which one - UniqueID acts as a reference for each system

Returns:
list

setVehCancelRQCoreUniqueIDs

public void setVehCancelRQCoreUniqueIDs(java.util.List<UniqueID> list)
Set the list of 'UniqueID' element items. Sending own UniqueID and partner UniqueID - the receiving system needs to know which one - UniqueID acts as a reference for each system

Parameters:
list -

sizeVehCancelRQCoreUniqueIDs

public int sizeVehCancelRQCoreUniqueIDs()
Get the number of 'UniqueID' element items.

Returns:
count

addVehCancelRQCoreUniqueID

public void addVehCancelRQCoreUniqueID(UniqueID item)
Add a 'UniqueID' element item.

Parameters:
item -

getVehCancelRQCoreUniqueID

public UniqueID getVehCancelRQCoreUniqueID(int index)
Get 'UniqueID' element item by position.

Parameters:
index -
Returns:
item

clearVehCancelRQCoreUniqueIDs

public void clearVehCancelRQCoreUniqueIDs()
Remove all 'UniqueID' element items.


getVehCancelRQCorePersonName

public PersonName getVehCancelRQCorePersonName()
Get the 'PersonName' element value. The person's name in a reservation.

Returns:
value

setVehCancelRQCorePersonName

public void setVehCancelRQCorePersonName(PersonName vehCancelRQCorePersonName)
Set the 'PersonName' element value. The person's name in a reservation.

Parameters:
vehCancelRQCorePersonName -

getVehCancelRQCoreCancel

public TransactionAction getVehCancelRQCoreCancel()
Get the 'CancelType' attribute value. Used to specify if this is to initiate a cancellation or to commit the cancellation.

Returns:
value

setVehCancelRQCoreCancel

public void setVehCancelRQCoreCancel(TransactionAction vehCancelRQCoreCancel)
Set the 'CancelType' attribute value. Used to specify if this is to initiate a cancellation or to commit the cancellation.

Parameters:
vehCancelRQCoreCancel -

getVehCancelRQInfo

public VehicleCancelRQAdditionalInfo getVehCancelRQInfo()
Get the 'VehCancelRQInfo' element value. Identifies the supplemental information associated with the request for the cancellation of a rental vehicle reservation.

Returns:
value

setVehCancelRQInfo

public void setVehCancelRQInfo(VehicleCancelRQAdditionalInfo vehCancelRQInfo)
Set the 'VehCancelRQInfo' element value. Identifies the supplemental information associated with the request for the cancellation of a rental vehicle reservation.

Parameters:
vehCancelRQInfo -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getReqRespVersion

public java.lang.String getReqRespVersion()
Get the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Returns:
value

setReqRespVersion

public void setReqRespVersion(java.lang.String reqRespVersion)
Set the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Parameters:
reqRespVersion -