org.ota.shared
Class Errors

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

public class Errors
extends java.lang.Object

A collection of errors that occurred during the processing of a message. Schema fragment(s) for this class:

 <xs:complexType xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ErrorsType">
   <xs:sequence>
     <xs:element type="ErrorType" name="Error" maxOccurs="99">
       <!-- Reference to inner class _Error -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class Errors._Error
          An error that occurred during the processing of a message.
 
Constructor Summary
Errors()
           
 
Method Summary
 void addError(Errors._Error item)
          Add a 'Error' element item.
 void clearErrors()
          Remove all 'Error' element items.
 Errors._Error getError(int index)
          Get 'Error' element item by position.
 java.util.List<Errors._Error> getErrors()
          Get the list of 'Error' element items.
 void setErrors(java.util.List<Errors._Error> list)
          Set the list of 'Error' element items.
 int sizeErrors()
          Get the number of 'Error' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Errors

public Errors()
Method Detail

getErrors

public java.util.List<Errors._Error> getErrors()
Get the list of 'Error' element items.

Returns:
list

setErrors

public void setErrors(java.util.List<Errors._Error> list)
Set the list of 'Error' element items.

Parameters:
list -

sizeErrors

public int sizeErrors()
Get the number of 'Error' element items.

Returns:
count

addError

public void addError(Errors._Error item)
Add a 'Error' element item.

Parameters:
item -

getError

public Errors._Error getError(int index)
Get 'Error' element item by position.

Parameters:
index -
Returns:
item

clearErrors

public void clearErrors()
Remove all 'Error' element items.