Expresso 5-6

com.jcorporate.expresso.core.controller
Class ErrorCollection

java.lang.Object
  extended byorg.apache.struts.action.ActionMessages
      extended byorg.apache.struts.action.ActionErrors
          extended bycom.jcorporate.expresso.core.controller.ErrorCollection
All Implemented Interfaces:
Cloneable, Serializable

public class ErrorCollection
extends org.apache.struts.action.ActionErrors
implements Serializable, Cloneable

An ErrorCollection is the Controller-specific ActionErrors collection for Expresso Creation date: (8/29/00 2:10:58 PM)

Author:
Adam Rossi, PlatinumSolutions
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.struts.action.ActionMessages
org.apache.struts.action.ActionMessages.ActionMessageItem
 
Field Summary
static String ERRORCOLLECTIONKEY
           
 
Fields inherited from class org.apache.struts.action.ActionErrors
GLOBAL_ERROR
 
Fields inherited from class org.apache.struts.action.ActionMessages
GLOBAL_MESSAGE, iCount, messages
 
Constructor Summary
ErrorCollection()
          ErrorCollection constructor comment.
 
Method Summary
 void addError(ChainedException ex)
          This method adds an error for each message in the ChainedException link.
 void addError(String errorMessage)
          Adds an error to the default collection.
 void addError(String errorMessage, Object errorMessageParam1)
          Adds an error with one param to the default collection.
 void addError(String errorMessage, Object[] args)
          Adds an error with an array of arguments
 void addError(String errorMessage, Object errorMessageParam1, Object errorMessageParam2)
          Adds an error with one param to the default collection.
 void addError(String errorMessage, Object errorMessageParam1, Object errorMessageParam2, Object errorMessageParam3)
          Adds an error with one param to the default collection.
 void addError(String propName, String errorMessage)
          Deprecated. 7/04 v5.5 since expresso uses only one property name, use addError(String errmsgkey) instead; if you want args/params for template replacement, use addError(key, (Object)replacementParam) Creation date: (8/29/00 2:43:13 PM) author Adam Rossi, PlatinumSolutions
 Object clone()
          clone method
 int getErrorCount()
          Creation date: (8/29/00 2:38:57 PM) author Adam Rossi, PlatinumSolutions
 Iterator getErrors()
          Creation date: (8/29/00 2:17:36 PM) author Adam Rossi, PlatinumSolutions
 Iterator getErrors(String label)
           
 String[] getErrorStrings()
          Retrieve a list of error strings corresponding to the ActionError
 void removeError(String label)
          Allows us to retract an error if at one point in the code we decide we don't actually want that error, but some previous parts were too isolated to make this decision.
 
Methods inherited from class org.apache.struts.action.ActionErrors
add
 
Methods inherited from class org.apache.struts.action.ActionMessages
add, add, clear, empty, get, get, isEmpty, properties, size, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERRORCOLLECTIONKEY

public static final String ERRORCOLLECTIONKEY
See Also:
Constant Field Values
Constructor Detail

ErrorCollection

public ErrorCollection()
ErrorCollection constructor comment.

Method Detail

addError

public void addError(String errorMessage)
Adds an error to the default collection. Creation date: (8/29/00 2:14:33 PM) author Adam Rossi, PlatinumSolutions

Parameters:
errorMessage - com.jcorporate.expresso.core.controller.Output

addError

public void addError(String errorMessage,
                     Object errorMessageParam1)
Adds an error with one param to the default collection. author Kris Thompson frameworks-boulder.org

Parameters:
errorMessage - java.lang.String
errorMessageParam1 - java.lang.String

addError

public void addError(String errorMessage,
                     Object errorMessageParam1,
                     Object errorMessageParam2)
Adds an error with one param to the default collection. author Kris Thompson frameworks-boulder.org

Parameters:
errorMessage - java.lang.String
errorMessageParam1 - java.lang.String
errorMessageParam2 - java.lang.String

addError

public void addError(String errorMessage,
                     Object errorMessageParam1,
                     Object errorMessageParam2,
                     Object errorMessageParam3)
Adds an error with one param to the default collection. author Kris Thompson frameworks-boulder.org

Parameters:
errorMessage - java.lang.String
errorMessageParam1 - java.lang.String
errorMessageParam2 - java.lang.String
errorMessageParam3 - java.lang.String

addError

public void addError(String errorMessage,
                     Object[] args)
Adds an error with an array of arguments

Parameters:
errorMessage - java.lang.String

addError

public void addError(ChainedException ex)
This method adds an error for each message in the ChainedException link.

Parameters:
ex - the ChainedException (DBException is an example)

addError

public void addError(String propName,
                     String errorMessage)
Deprecated. 7/04 v5.5 since expresso uses only one property name, use addError(String errmsgkey) instead; if you want args/params for template replacement, use addError(key, (Object)replacementParam) Creation date: (8/29/00 2:43:13 PM) author Adam Rossi, PlatinumSolutions

Parameters:
propName - java.lang.String
errorMessage - java.lang.String

getErrorCount

public int getErrorCount()
Creation date: (8/29/00 2:38:57 PM) author Adam Rossi, PlatinumSolutions

Returns:
int

getErrors

public Iterator getErrors()
Creation date: (8/29/00 2:17:36 PM) author Adam Rossi, PlatinumSolutions

Returns:
java.util.Iterator

getErrorStrings

public String[] getErrorStrings()
Retrieve a list of error strings corresponding to the ActionError

Returns:
array of Strings or null if there are no errors

getErrors

public Iterator getErrors(String label)

removeError

public void removeError(String label)
Allows us to retract an error if at one point in the code we decide we don't actually want that error, but some previous parts were too isolated to make this decision.


clone

public Object clone()
             throws CloneNotSupportedException
clone method

Throws:
CloneNotSupportedException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.