org.ota.shared
Class ErrorWarningAttributeGroup

java.lang.Object
  extended by org.ota.shared.ErrorWarningAttributeGroup

public class ErrorWarningAttributeGroup
extends java.lang.Object

Used to identify an application error by either text, code, or by an online description and also to give the status, tag, and/or identification of the record that may have caused the error. Schema fragment(s) for this class:

 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ErrorWarningAttributeGroup">
   <xs:attribute type="xs:string" use="optional" name="ShortText"/>
   <xs:attribute type="xs:string" use="optional" name="Code"/>
   <xs:attribute type="xs:string" use="optional" name="DocURL"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
   <xs:attribute type="xs:string" use="optional" name="Tag"/>
   <xs:attribute type="xs:string" use="optional" name="RecordID"/>
 </xs:attributeGroup>
 


Constructor Summary
ErrorWarningAttributeGroup()
           
 
Method Summary
 java.lang.String getCode()
          Get the 'Code' attribute value.
 java.lang.String getDocURL()
          Get the 'DocURL' attribute value.
 java.lang.String getRecordID()
          Get the 'RecordID' attribute value.
 java.lang.String getShortText()
          Get the 'ShortText' attribute value.
 java.lang.String getStatus()
          Get the 'Status' attribute value.
 java.lang.String getTag()
          Get the 'Tag' attribute value.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setDocURL(java.lang.String docURL)
          Set the 'DocURL' attribute value.
 void setRecordID(java.lang.String recordID)
          Set the 'RecordID' attribute value.
 void setShortText(java.lang.String shortText)
          Set the 'ShortText' attribute value.
 void setStatus(java.lang.String status)
          Set the 'Status' attribute value.
 void setTag(java.lang.String tag)
          Set the 'Tag' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorWarningAttributeGroup

public ErrorWarningAttributeGroup()
Method Detail

getShortText

public java.lang.String getShortText()
Get the 'ShortText' attribute value. An abbreviated version of the error in textual format.

Returns:
value

setShortText

public void setShortText(java.lang.String shortText)
Set the 'ShortText' attribute value. An abbreviated version of the error in textual format.

Parameters:
shortText -

getCode

public java.lang.String getCode()
Get the 'Code' attribute value. If present, this refers to a table of coded values exchanged between applications to identify errors or warnings. Refer to OpenTravel Code List Error Codes (ERR).

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. If present, this refers to a table of coded values exchanged between applications to identify errors or warnings. Refer to OpenTravel Code List Error Codes (ERR).

Parameters:
code -

getDocURL

public java.lang.String getDocURL()
Get the 'DocURL' attribute value. If present, this URL 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 URL refers to an online description of the error that occurred.

Parameters:
docURL -

getStatus

public java.lang.String getStatus()
Get the 'Status' attribute value. If present, recommended values are those enumerated in the OTA_ErrorRS, (NotProcessed | Incomplete | Complete | Unknown) however, the data type is designated as string data, recognizing that trading partners may identify additional status conditions not included in the enumeration.

Returns:
value

setStatus

public void setStatus(java.lang.String status)
Set the 'Status' attribute value. If present, recommended values are those enumerated in the OTA_ErrorRS, (NotProcessed | Incomplete | Complete | Unknown) however, the data type is designated as string data, recognizing that trading partners may identify additional status conditions not included in the enumeration.

Parameters:
status -

getTag

public java.lang.String getTag()
Get the 'Tag' attribute value. If present, this attribute may identify an unknown or misspelled tag that caused an error in processing. It is recommended that the Tag attribute use XPath notation to identify the location of a tag in the event that more than one tag of the same name is present in the document. Alternatively, the tag name alone can be used to identify missing data [Type=ReqFieldMissing].

Returns:
value

setTag

public void setTag(java.lang.String tag)
Set the 'Tag' attribute value. If present, this attribute may identify an unknown or misspelled tag that caused an error in processing. It is recommended that the Tag attribute use XPath notation to identify the location of a tag in the event that more than one tag of the same name is present in the document. Alternatively, the tag name alone can be used to identify missing data [Type=ReqFieldMissing].

Parameters:
tag -

getRecordID

public java.lang.String getRecordID()
Get the 'RecordID' attribute value. If present, this attribute allows for batch processing and the identification of the record that failed amongst a group of records. This value may contain a concatenation of a unique failed transaction ID with specific record(s) associated with that transaction.

Returns:
value

setRecordID

public void setRecordID(java.lang.String recordID)
Set the 'RecordID' attribute value. If present, this attribute allows for batch processing and the identification of the record that failed amongst a group of records. This value may contain a concatenation of a unique failed transaction ID with specific record(s) associated with that transaction.

Parameters:
recordID -