org.apache.axis2.fault
Class FaultReasonList

java.lang.Object
  extended byorg.apache.axis2.fault.FaultReasonList

public class FaultReasonList
extends Object

A list of fault reasons


Constructor Summary
FaultReasonList()
           
FaultReasonList(int size)
           
 
Method Summary
 void add(FaultReason reason)
          Add a new fault reason
 void add(String text, String language)
          Add a new fault reason
 String getFirstReasonText()
          get the first reason text in the array.
 List getReasons()
          get at the underlying reasons.
 ListIterator iterator()
          List iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultReasonList

public FaultReasonList()

FaultReasonList

public FaultReasonList(int size)
Method Detail

add

public void add(FaultReason reason)
Add a new fault reason

Parameters:
reason - new reason

add

public void add(String text,
                String language)
Add a new fault reason

Parameters:
text - text of message
language - language, can be ""

iterator

public ListIterator iterator()
List iterator.

Returns:
iterator over elements of type FaultReason

getFirstReasonText

public String getFirstReasonText()
get the first reason text in the array. This is to downconvert to SOAP1.1

Returns:
the text of the first element in the array, or null for no reasons

getReasons

public List getReasons()
get at the underlying reasons. Useful for java1.5 iteration.

Returns:
the list of reasons