org.ota.shared
Class Warning

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

public class Warning
extends java.lang.Object

Used when a message has been successfully processed to report any warnings or business errors that occurred. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="WarningType">
   <xs:simpleContent>
     <xs:extension base="ns:FreeTextType">
       <xs:attribute type="xs:string" use="required" name="Type"/>
       <xs:attributeGroup ref="ns:ErrorWarningAttributeGroup"/>
       <xs:attribute type="xs:string" use="optional" name="RPH"/>
     </xs:extension>
   </xs:simpleContent>
 </xs:complexType>
 


Constructor Summary
Warning()
           
 
Method Summary
 ErrorWarningAttributeGroup getErrorWarningAttributeGroup()
          Get the 'ErrorWarningAttributeGroup' attributeGroup value.
 FreeText getFreeText()
          Get the extension value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 java.lang.String getType()
          Get the 'Type' attribute value.
 void setErrorWarningAttributeGroup(ErrorWarningAttributeGroup errorWarningAttributeGroup)
          Set the 'ErrorWarningAttributeGroup' attributeGroup value.
 void setFreeText(FreeText freeText)
          Set the extension value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setType(java.lang.String type)
          Set the 'Type' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Warning

public Warning()
Method Detail

getFreeText

public FreeText getFreeText()
Get the extension value.

Returns:
value

setFreeText

public void setFreeText(FreeText freeText)
Set the extension value.

Parameters:
freeText -

getType

public java.lang.String getType()
Get the 'Type' attribute value. The Warning element MUST contain the Type attribute that uses a recommended set of values to indicate the warning type. The validating XSD can expect to accept values that it has NOT been explicitly coded for and process them by using Type ="Unknown". Refer to OpenTravel Code List Error Warning Type (EWT).

Returns:
value

setType

public void setType(java.lang.String type)
Set the 'Type' attribute value. The Warning element MUST contain the Type attribute that uses a recommended set of values to indicate the warning type. The validating XSD can expect to accept values that it has NOT been explicitly coded for and process them by using Type ="Unknown". Refer to OpenTravel Code List Error Warning Type (EWT).

Parameters:
type -

getErrorWarningAttributeGroup

public ErrorWarningAttributeGroup getErrorWarningAttributeGroup()
Get the 'ErrorWarningAttributeGroup' attributeGroup value. Details of the warning.

Returns:
value

setErrorWarningAttributeGroup

public void setErrorWarningAttributeGroup(ErrorWarningAttributeGroup errorWarningAttributeGroup)
Set the 'ErrorWarningAttributeGroup' attributeGroup value. Details of the warning.

Parameters:
errorWarningAttributeGroup -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. Reference Place Holder used as an index for this warning.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. Reference Place Holder used as an index for this warning.

Parameters:
RPH -