|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.web.validation.ValidationContext
public class ValidationContext
A context within which to perform validation and raise errors against.
| Constructor Summary | |
|---|---|
ValidationContext()
|
|
| Method Summary | |
|---|---|
void |
addError(java.lang.String message)
Adds a new error to this context. |
void |
addError(ValidationError error)
Adds a new error to this context. |
ValidationError |
getError(int index)
Gets the specified ValidationError. |
java.util.List |
getErrors()
Gets a list of all errors raised against this context. |
int |
getNumberOfErrors()
Gets the number of errors. |
boolean |
hasErrors()
Determines whether this context has errors rasied against it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationContext()
| Method Detail |
|---|
public void addError(java.lang.String message)
message - the error message as a Stringpublic void addError(ValidationError error)
error - a ValidationError instancepublic boolean hasErrors()
public java.util.List getErrors()
public int getNumberOfErrors()
public ValidationError getError(int index)
index - the index of the error to get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||