Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012A.fastrez;
   
   import java.util.ArrayList;
   import java.util.List;
The cancel response is used to respond to a cancel request message. If the reservation is successfully cancelled the cancellation number MUST be returned. Details regarding the cancellation SHOULD also be provided. 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_CancelRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="xs:string" name="Success"/>
         <xs:element name="Warnings" minOccurs="0">
           <!-- Reference to inner class Warnings -->
         </xs:element>
         <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="CancelInfoRS" minOccurs="0">
           <!-- Reference to inner class CancelInfoRS -->
         </xs:element>
         <xs:element name="Comment" minOccurs="0">
           <!-- Reference to inner class Comment -->
         </xs:element>
       </xs:sequence>
       <xs:element name="Errors">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Error" maxOccurs="5">
               <!-- Reference to inner class _Error -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:choice>
     <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:attribute type="ns:TransactionStatusType" use="required" name="Status"/>
   </xs:complexType>
 </xs:element>
 
  
  public class CancelRS
  {
      private int choiceSelect = -1;
      private static final int SUCCESS_CHOICE = 0;
      private static final int ERRORS_CHOICE = 1;
      private String success;
      private Warnings warnings;
      private String uniqueID;
      private String uniqueIDID;
      private String uniqueIDIDContext;
      private CancelInfoRS cancelInfoRS;
      private Comment comment;
      private List<_ErrorerrorList = new ArrayList<_Error>();
      private String echoToken;
      private DateTime timeStamp;
      private Float version;
      private String primaryLangID;
      private TransactionStatus status;
  
      private void setChoiceSelect(int choice) {
          if ( == -1) {
               = choice;
          } else if ( != choice) {
              throw new IllegalStateException(
                      "Need to call clearChoiceSelect() before changing existing choice");
          }
      }

    
Clear the choice selection.
  
      public void clearChoiceSelect() {
           = -1;
      }

    
Check if Success is current selection for choice.

Returns:
true if selection, false if not
  
      public boolean ifSuccess() {
          return  == ;
      }

    
Get the 'Success' element value. An empty Success element MUST be returned in order to in indicate the successful processing of the cancellation request message.

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

    
Set the 'Success' element value. An empty Success element MUST be returned in order to in indicate the successful processing of the cancellation request message.

Parameters:
success
 
     public void setSuccess(String success) {
         this. = success;
     }

    
Get the 'Warnings' element value.

Returns:
value
 
     public Warnings getWarnings() {
         return ;
     }

    
Set the 'Warnings' element value.

Parameters:
warnings
 
     public void setWarnings(Warnings warnings) {
         this. = warnings;
     }

    
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 code 14 - Reservation.

Returns:
value
 
     public String getUniqueIDType() {
         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 code 14 - Reservation.

Parameters:
uniqueIDType
 
     public void setUniqueIDType(String uniqueIDType) {
          = uniqueIDType;
     }

    
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 getUniqueIDID() {
         return ;
     }

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

Parameters:
uniqueIDID
 
     public void setUniqueIDID(String uniqueIDID) {
         this. = uniqueIDID;
     }

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

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

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

Parameters:
uniqueIDIDContext
 
     public void setUniqueIDIDContext(String uniqueIDIDContext) {
         this. = uniqueIDIDContext;
     }

    
Get the 'CancelInfoRS' element value.

Returns:
value
 
     public CancelInfoRS getCancelInfoRS() {
         return ;
     }

    
Set the 'CancelInfoRS' element value.

Parameters:
cancelInfoRS
 
     public void setCancelInfoRS(CancelInfoRS cancelInfoRS) {
         this. = cancelInfoRS;
     }

    
Get the 'Comment' element value.

Returns:
value
 
     public Comment getComment() {
         return ;
     }

    
Set the 'Comment' element value.

Parameters:
comment
 
     public void setComment(Comment comment) {
         this. = comment;
     }

    
Check if ErrorList is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifErrors() {
         return  == ;
     }

    
Get the list of 'Error' element items. Errors MUST be returned if the message was not successfully processed.

Returns:
list
 
     public List<_ErrorgetErrorList() {
         return ;
     }

    
Set the list of 'Error' element items. Errors MUST be returned if the message was not successfully processed.

Parameters:
list
 
     public void setErrorList(List<_Errorlist) {
         setChoiceSelect();
          = list;
     }

    
Get the number of 'Error' element items.

Returns:
count
 
     public int sizeErrorList() {
         return .size();
     }

    
Add a 'Error' element item.

Parameters:
item
 
     public void addError(_Error item) {
         .add(item);
     }

    
Get 'Error' element item by position.

Parameters:
index
Returns:
item
 
     public _Error getError(int index) {
         return .get(index);
     }

    
Remove all 'Error' element items.
 
     public void clearErrorList() {
         .clear();
     }

    
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 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 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;
     }

    
Get the 'Status' attribute value. Status MUST identify the status of the reservation cancellation. The Status for FastRez MUST be Cancelled or Unsuccessful. If the status is Unsuccessful, the reason for the cancellation being unsuccessful MUST be sent in either the Warning element or the Error element depending on why the cancellation was not processed.

Returns:
value
 
     public TransactionStatus getStatus() {
         return ;
     }

    
Set the 'Status' attribute value. Status MUST identify the status of the reservation cancellation. The Status for FastRez MUST be Cancelled or Unsuccessful. If the status is Unsuccessful, the reason for the cancellation being unsuccessful MUST be sent in either the Warning element or the Error element depending on why the cancellation was not processed.

Parameters:
status
 
     public void setStatus(TransactionStatus status) {
         this. = status;
     }
    
Warnings MAY be used in conjunction with the Success element to define one or more business errors or informational alerts associated with the cancellation. 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="Warnings" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Warning" maxOccurs="5">
         <!-- Reference to inner class Warning -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
     public static class Warnings
     {
         private List<WarningwarningList = new ArrayList<Warning>();

        
Get the list of 'Warning' element items.

Returns:
list
 
         public List<WarninggetWarningList() {
             return ;
         }

        
Set the list of 'Warning' element items.

Parameters:
list
 
         public void setWarningList(List<Warninglist) {
              = list;
         }

        
Get the number of 'Warning' element items.

Returns:
count
 
         public int sizeWarningList() {
             return .size();
         }

        
Add a 'Warning' element item.

Parameters:
item
 
         public void addWarning(Warning item) {
             .add(item);
         }

        
Get 'Warning' element item by position.

Parameters:
index
Returns:
item
 
         public Warning getWarning(int index) {
             return .get(index);
         }

        
Remove all 'Warning' element items.
 
         public void clearWarningList() {
             .clear();
         }
        
Warning MUST define a business error or informational alert associated with the cancellation. 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="Warning" maxOccurs="5">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:string" use="required" name="Type"/>
         <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="Status"/>
         <xs:attribute type="xs:string" use="optional" name="Tag"/>
         <xs:attribute type="xs:string" use="optional" name="RPH"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
 
         public static class Warning
         {
             private String string;
             private String type;
             private String shortText;
             private String code;
             private String status;
             private String tag;
             private String RPH;

            
Get the extension value.

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

            
Set the extension value.

Parameters:
string
 
             public void setString(String string) {
                 this. = string;
             }

            
Get the 'Type' attribute value. Type MUST identify the type of warning and MUST refer to OpenTravel Code List Error Warning Type (EWT).

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

            
Set the 'Type' attribute value. Type MUST identify the type of warning and MUST refer to OpenTravel Code List Error Warning Type (EWT).

Parameters:
type
 
             public void setType(String type) {
                 this. = type;
             }

            
Get the 'ShortText' attribute value. ShortText MAY contain an abbreviated version of the warning in textual format.

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

            
Set the 'ShortText' attribute value. ShortText MAY contain an abbreviated version of the warning in textual format.

Parameters:
shortText
 
             public void setShortText(String shortText) {
                 this. = shortText;
             }

            
Get the 'Code' attribute value. Code MAY be used to identify a warning associated with this cancellation and MUST refer to OpenTravel Code List Error Codes (ERR).

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

            
Set the 'Code' attribute value. Code MAY be used to identify a warning associated with this cancellation and MUST refer to OpenTravel Code List Error Codes (ERR).

Parameters:
code
 
             public void setCode(String code) {
                 this. = code;
             }

            
Get the 'Status' attribute value. Status MAY be used to identify the status of the cancellation. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

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

            
Set the 'Status' attribute value. Status MAY be used to identify the status of the cancellation. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

Parameters:
status
 
             public void setStatus(String status) {
                 this. = status;
             }

            
Get the 'Tag' attribute value. Tag 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 MAY be used to identify missing data [Type=ReqFieldMissing].

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

            
Set the 'Tag' attribute value. Tag 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 MAY be used to identify missing data [Type=ReqFieldMissing].

Parameters:
tag
 
             public void setTag(String tag) {
                 this. = tag;
             }

            
Get the 'RPH' attribute value. The RPH (Reference Place Holder) MAY be used as an index for this warning.

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

            
Set the 'RPH' attribute value. The RPH (Reference Place Holder) MAY be used as an index for this warning.

Parameters:
RPH
 
             public void setRPH(String RPH) {
                 this. = RPH;
             }
         }
     }
    
CancelInfoRS MUST contain the supplier's cancellation number if the reservation was successfully cancelled and MAY contain rules associated with cancelling the reservation. 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="CancelInfoRS" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CancelRules" minOccurs="0">
         <!-- Reference to inner class CancelRules -->
       </xs:element>
       <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:sequence>
   </xs:complexType>
 </xs:element>
 
 
     public static class CancelInfoRS
     {
         private CancelRules cancelRules;
         private String uniqueID;
         private String uniqueIDID;
         private String uniqueIDIDContext;

        
Get the 'CancelRules' element value.

Returns:
value
 
         public CancelRules getCancelRules() {
             return ;
         }

        
Set the 'CancelRules' element value.

Parameters:
cancelRules
 
         public void setCancelRules(CancelRules cancelRules) {
             this. = cancelRules;
         }

        
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 code 15 - Cancellation.

Returns:
value
 
         public String getUniqueIDType() {
             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 code 15 - Cancellation.

Parameters:
uniqueIDType
 
         public void setUniqueIDType(String uniqueIDType) {
              = uniqueIDType;
         }

        
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 getUniqueIDID() {
             return ;
         }

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

Parameters:
uniqueIDID
 
         public void setUniqueIDID(String uniqueIDID) {
             this. = uniqueIDID;
         }

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

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

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

Parameters:
uniqueIDIDContext
 
         public void setUniqueIDIDContext(String uniqueIDIDContext) {
             this. = uniqueIDIDContext;
         }
        
CancelRules MAY contain a collection of cancellation rules that apply to the cancellation of the reservation. 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="CancelRules" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CancelRule">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="PaymentCard">
               <xs:complexType>
                 <xs:sequence>
                   <xs:element type="xs:string" name="CardHolderName"/>
                 </xs:sequence>
                 <xs:attribute type="xs:string" use="required" name="CardType"/>
                 <xs:attribute type="xs:string" use="required" name="CardCode"/>
                 <xs:attribute type="xs:string" use="optional" name="CardNumber"/>
                 <xs:attribute type="xs:string" use="optional" name="ExpireDate"/>
                 <xs:attribute type="xs:string" use="optional" name="MaskedCardNumber"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
           <xs:attribute type="xs:string" use="required" name="CancelByDate"/>
           <xs:attribute type="xs:float" use="optional" name="Amount"/>
           <xs:attribute type="xs:string" use="optional" name="CurrencyCode"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
         public static class CancelRules
         {
             private String cancelRulePaymentCardCardHolderName;
             private String cancelRulePaymentCardCard;
             private String cancelRulePaymentCardCardCode;
             private String cancelRulePaymentCardCardNumber;
             private String cancelRulePaymentCardExpireDate;
             private String cancelRulePaymentCardMaskedCardNumber;
             private String cancelRuleCancelByDate;
             private Float cancelRuleAmount;
             private String cancelRuleCurrencyCode;

            
Get the 'CardHolderName' element value. CardHolderName MUST specify the name of the holder of the payment card.

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

            
Set the 'CardHolderName' element value. CardHolderName MUST specify the name of the holder of the payment card.

Parameters:
cancelRulePaymentCardCardHolderName
 
             public void setCancelRulePaymentCardCardHolderName(
                     String cancelRulePaymentCardCardHolderName) {
                 this. = cancelRulePaymentCardCardHolderName;
             }

            
Get the 'CardType' attribute value. MUST indicate the type of magnetic striped card. Refer to OpenTravel Code ListCard Type (CDT).

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

            
Set the 'CardType' attribute value. MUST indicate the type of magnetic striped card. Refer to OpenTravel Code ListCard Type (CDT).

Parameters:
cancelRulePaymentCardCard
 
             public void setCancelRulePaymentCardCard(
                     String cancelRulePaymentCardCard) {
                 this. = cancelRulePaymentCardCard;
             }

            
Get the 'CardCode' attribute value. CardCode MUST contain the 2 character code of the credit card issuer.

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

            
Set the 'CardCode' attribute value. CardCode MUST contain the 2 character code of the credit card issuer.

Parameters:
cancelRulePaymentCardCardCode
 
             public void setCancelRulePaymentCardCardCode(
                     String cancelRulePaymentCardCardCode) {
                 this. = cancelRulePaymentCardCardCode;
             }

            
Get the 'CardNumber' attribute value. CardNumber MAY contain the credit card number embossed on the card to which this charge will be applied.

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

            
Set the 'CardNumber' attribute value. CardNumber MAY contain the credit card number embossed on the card to which this charge will be applied.

Parameters:
cancelRulePaymentCardCardNumber
 
             public void setCancelRulePaymentCardCardNumber(
                     String cancelRulePaymentCardCardNumber) {
                 this. = cancelRulePaymentCardCardNumber;
             }

            
Get the 'ExpireDate' attribute value. ExpireDate MAY indicate the ending date for the payment card.

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

            
Set the 'ExpireDate' attribute value. ExpireDate MAY indicate the ending date for the payment card.

Parameters:
cancelRulePaymentCardExpireDate
 
             public void setCancelRulePaymentCardExpireDate(
                     String cancelRulePaymentCardExpireDate) {
                 this. = cancelRulePaymentCardExpireDate;
             }

            
Get the 'MaskedCardNumber' attribute value. MaskedCardNumber MAY contain the concealed credit card number (e.g., xxxxxxxxxxxx9922) to which this cancellation penalty will be applied.

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

            
Set the 'MaskedCardNumber' attribute value. MaskedCardNumber MAY contain the concealed credit card number (e.g., xxxxxxxxxxxx9922) to which this cancellation penalty will be applied.

Parameters:
cancelRulePaymentCardMaskedCardNumber
 
             public void setCancelRulePaymentCardMaskedCardNumber(
                     String cancelRulePaymentCardMaskedCardNumber) {
                 this. = cancelRulePaymentCardMaskedCardNumber;
             }

            
Get the 'CancelByDate' attribute value. CancelByDate MUST contain the date by which a cancellation must be made in order to avoid the cancellation penalty.

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

            
Set the 'CancelByDate' attribute value. CancelByDate MUST contain the date by which a cancellation must be made in order to avoid the cancellation penalty.

Parameters:
cancelRuleCancelByDate
 
             public void setCancelRuleCancelByDate(String cancelRuleCancelByDate) {
                 this. = cancelRuleCancelByDate;
             }

            
Get the 'Amount' attribute value. The Amount MUST specify the charge associated with the cancellation penalty, if one applies.

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

            
Set the 'Amount' attribute value. The Amount MUST specify the charge associated with the cancellation penalty, if one applies.

Parameters:
cancelRuleAmount
 
             public void setCancelRuleAmount(Float cancelRuleAmount) {
                 this. = cancelRuleAmount;
             }

            
Get the 'CurrencyCode' attribute value. The CurrencyCode MUST specify the code of the monetary unit in which the Amount is expressed, if Amount is present. CurrencyCode MUST conform to ISO 4217, 3 character codes.

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

            
Set the 'CurrencyCode' attribute value. The CurrencyCode MUST specify the code of the monetary unit in which the Amount is expressed, if Amount is present. CurrencyCode MUST conform to ISO 4217, 3 character codes.

Parameters:
cancelRuleCurrencyCode
 
             public void setCancelRuleCurrencyCode(String cancelRuleCurrencyCode) {
                 this. = cancelRuleCurrencyCode;
             }
         }
     }
    
Comment MAY contain textual information regarding the cancellation of the reservation. 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="Comment" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Text">
         <xs:complexType>
           <xs:simpleContent>
             <xs:extension base="xs:string">
               <xs:attribute type="xs:string" use="optional" name="Language"/>
             </xs:extension>
           </xs:simpleContent>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="Name"/>
   </xs:complexType>
 </xs:element>
 
 
     public static class Comment
     {
         private String textString;
         private String textLanguage;
         private String name;

        
Get the extension value.

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

        
Set the extension value.

Parameters:
textString
 
         public void setTextString(String textString) {
             this. = textString;
         }

        
Get the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

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

        
Set the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

Parameters:
textLanguage
 
         public void setTextLanguage(String textLanguage) {
             this. = textLanguage;
         }

        
Get the 'Name' attribute value. Name MAY define the information that is being sent in the Text element.

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

        
Set the 'Name' attribute value. Name MAY define the information that is being sent in the Text element.

Parameters:
name
        public void setName(String name) {
            this. = name;
        }
    }
    
Error MUST identify an error that occurred during the processing of a 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="Error" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:string" use="required" name="Type"/>
     <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="Status"/>
     <xs:attribute type="xs:string" use="optional" name="Tag"/>
     <xs:attribute type="xs:string" use="optional" name="NodeList"/>
   </xs:complexType>
 </xs:element>
 
    public static class _Error
    {
        private String type;
        private String shortText;
        private String code;
        private String status;
        private String tag;
        private String nodeList;

        
Get the 'Type' attribute value. Type MUST identify the type of error and MUST refer to OpenTravel Code List Error Warning Type (EWT).

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

        
Set the 'Type' attribute value. Type MUST identify the type of error and MUST refer to OpenTravel Code List Error Warning Type (EWT).

Parameters:
type
        public void setType(String type) {
            this. = type;
        }

        
Get the 'ShortText' attribute value. ShortText MAY provide an abbreviated version of the error in textual format.

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

        
Set the 'ShortText' attribute value. ShortText MAY provide an abbreviated version of the error in textual format.

Parameters:
shortText
        public void setShortText(String shortText) {
            this. = shortText;
        }

        
Get the 'Code' attribute value. Code MAY be used to identify an error associated with the cancellation request and MUST refer to OpenTravel Code List Error Codes (ERR).

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

        
Set the 'Code' attribute value. Code MAY be used to identify an error associated with the cancellation request and MUST refer to OpenTravel Code List Error Codes (ERR).

Parameters:
code
        public void setCode(String code) {
            this. = code;
        }

        
Get the 'Status' attribute value. Status MAY be used to identify the status of the cancellation. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

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

        
Set the 'Status' attribute value. Status MAY be used to identify the status of the cancellation. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

Parameters:
status
        public void setStatus(String status) {
            this. = status;
        }

        
Get the 'Tag' attribute value. Tag 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 MAY be used to identify missing data [Type=ReqFieldMissing].

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

        
Set the 'Tag' attribute value. Tag 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 MAY be used to identify missing data [Type=ReqFieldMissing].

Parameters:
tag
        public void setTag(String tag) {
            this. = tag;
        }

        
Get the 'NodeList' attribute value. NodeList MAY contain an XPath expression that selects all the nodes whose data caused this error. Further, this expression SHOULD have an additional constraint which contains the data of the node. This will provide the offending data back to systems that cannot maintain the original message.

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

        
Set the 'NodeList' attribute value. NodeList MAY contain an XPath expression that selects all the nodes whose data caused this error. Further, this expression SHOULD have an additional constraint which contains the data of the node. This will provide the offending data back to systems that cannot maintain the original message.

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