org.ota.misc
Class ErrorRS

java.lang.Object
  extended by org.ota.misc.ErrorRS

public class ErrorRS
extends java.lang.Object

The standatd OTA_ErrorRS message is designed to accommodate errors that result from the parser, or from validation, before reaching the server. The set of errors that can use this error is constrained by its limited structure, to provide structural stability. 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_ErrorRS">
   <xs:complexType>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute use="optional" name="Status">
       <xs:simpleType>
         <!-- Reference to inner class Status -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:string" use="required" name="ErrorCode"/>
     <xs:attribute type="xs:string" use="optional" name="Severity"/>
     <xs:attribute type="xs:string" use="optional" name="ErrorMessage"/>
     <xs:attribute type="xs:string" use="optional" name="DocURL"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class ErrorRS.Status
          Schema fragment(s) for this class:
 
Constructor Summary
ErrorRS()
           
 
Method Summary
 java.lang.String getDocURL()
          Get the 'DocURL' attribute value.
 java.lang.String getErrorCode()
          Get the 'ErrorCode' attribute value.
 java.lang.String getErrorMessage()
          Get the 'ErrorMessage' attribute value.
 OTAPayloadStdAttributes getPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 java.lang.String getSeverity()
          Get the 'Severity' attribute value.
 ErrorRS.Status getStatus()
          Get the 'Status' attribute value.
 void setDocURL(java.lang.String docURL)
          Set the 'DocURL' attribute value.
 void setErrorCode(java.lang.String errorCode)
          Set the 'ErrorCode' attribute value.
 void setErrorMessage(java.lang.String errorMessage)
          Set the 'ErrorMessage' attribute value.
 void setPayloadStdAttributes(OTAPayloadStdAttributes payloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setSeverity(java.lang.String severity)
          Set the 'Severity' attribute value.
 void setStatus(ErrorRS.Status status)
          Set the 'Status' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorRS

public ErrorRS()
Method Detail

getPayloadStdAttributes

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

Returns:
value

setPayloadStdAttributes

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

Parameters:
payloadStdAttributes -

getStatus

public ErrorRS.Status getStatus()
Get the 'Status' attribute value. An indication of the processing that was completed on the request message. An error response may be returned and no action taken on behalf of the request message, or there may be some action taken, or the full action may have been completed. NotProcessed

Returns:
value

setStatus

public void setStatus(ErrorRS.Status status)
Set the 'Status' attribute value. An indication of the processing that was completed on the request message. An error response may be returned and no action taken on behalf of the request message, or there may be some action taken, or the full action may have been completed. NotProcessed

Parameters:
status -

getErrorCode

public java.lang.String getErrorCode()
Get the 'ErrorCode' attribute value. The ErrorCode attribute MUST be present and is defined as free-text with a list of recommended enumerated values, to indicate the error type.

Returns:
value

setErrorCode

public void setErrorCode(java.lang.String errorCode)
Set the 'ErrorCode' attribute value. The ErrorCode attribute MUST be present and is defined as free-text with a list of recommended enumerated values, to indicate the error type.

Parameters:
errorCode -

getSeverity

public java.lang.String getSeverity()
Get the 'Severity' attribute value. An optional indicator to reflect the severity of this condition.

Returns:
value

setSeverity

public void setSeverity(java.lang.String severity)
Set the 'Severity' attribute value. An optional indicator to reflect the severity of this condition.

Parameters:
severity -

getErrorMessage

public java.lang.String getErrorMessage()
Get the 'ErrorMessage' attribute value. A textual description to provide more information about the specific error.

Returns:
value

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Set the 'ErrorMessage' attribute value. A textual description to provide more information about the specific error.

Parameters:
errorMessage -

getDocURL

public java.lang.String getDocURL()
Get the 'DocURL' attribute value. If present, this attribute refers to an online description of the error that occurred.

Returns:
value

setDocURL

public void setDocURL(java.lang.String docURL)
Set the 'DocURL' attribute value. If present, this attribute refers to an online description of the error that occurred.

Parameters:
docURL -