org.ota.shared
Class Warnings

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

public class Warnings
extends java.lang.Object

Collection of warnings. 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="WarningsType">
   <xs:sequence>
     <xs:element type="ns:WarningType" name="Warning" maxOccurs="999"/>
   </xs:sequence>
 </xs:complexType>
 


Constructor Summary
Warnings()
           
 
Method Summary
 void addWarning(Warning item)
          Add a 'Warning' element item.
 void clearWarnings()
          Remove all 'Warning' element items.
 Warning getWarning(int index)
          Get 'Warning' element item by position.
 java.util.List<Warning> getWarnings()
          Get the list of 'Warning' element items.
 void setWarnings(java.util.List<Warning> list)
          Set the list of 'Warning' element items.
 int sizeWarnings()
          Get the number of 'Warning' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Warnings

public Warnings()
Method Detail

getWarnings

public java.util.List<Warning> getWarnings()
Get the list of 'Warning' element items. Used in conjunction with the Success element to define a business error.

Returns:
list

setWarnings

public void setWarnings(java.util.List<Warning> list)
Set the list of 'Warning' element items. Used in conjunction with the Success element to define a business error.

Parameters:
list -

sizeWarnings

public int sizeWarnings()
Get the number of 'Warning' element items.

Returns:
count

addWarning

public void addWarning(Warning item)
Add a 'Warning' element item.

Parameters:
item -

getWarning

public Warning getWarning(int index)
Get 'Warning' element item by position.

Parameters:
index -
Returns:
item

clearWarnings

public void clearWarnings()
Remove all 'Warning' element items.