|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.validation.ValidationErrors
Represents a list of ValidationError instances which have
occurred in data which is being validated for submission.
Currently, this class serves to encapsulate the functionality of the
Struts class ActionErrors. In the future,
it could be extended to be used in error handling with another platform.
ValidationError,
org.apache.struts.action.ActionErrors,
Serialized Form| Constructor Summary | |
ValidationErrors()
|
|
| Method Summary | |
void |
add(ValidationError error)
Add a new ValidationError to the list. |
void |
addAll(ValidationErrors validationErrors)
Add all elements of another ValidationErrors instance to
the list. |
java.util.List |
getErrors()
Contains all of the errors represented by the ValidationErrors instance. |
boolean |
isEmpty()
Evaluates whether or not this object contains errors. |
java.lang.String |
toString()
Overridden to show you the errors this object contains. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ValidationErrors()
| Method Detail |
public final void add(ValidationError error)
Add a new ValidationError to the list.
error - new instance of ValidationError to be added.
Cannot be null.public final void addAll(ValidationErrors validationErrors)
Add all elements of another ValidationErrors instance to
the list.
validationErrors - new instance of ValidationErrors to be added.
Cannot be null.public final java.util.List getErrors()
Contains all of the errors represented by the
ValidationErrors instance.
public final boolean isEmpty()
Evaluates whether or not this object contains errors.
true if there are errors in this object, otherwise
falsepublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||