| java.lang.Object net.sourceforge.jaxor.util.Validation
Validation | public class Validation (Code) | | This class collects validation messages and their severity levels.
|
Method Summary | |
public void | add(Validation val) | public void | addError(String message) Adds an error to the validation, using the specified key to lookup the
message in the resource bundle. | public void | addInfo(String message) Adds some info text to the validation, using the specified key to lookup the
message in the resource bundle. | public List | getErrors() | public List | getInfos() | public List | getMessages() Returns the list of messages that have been added to this validation. | public boolean | hasErrors() Returns true if this validation contains any error messages. | public String | toString() Returns the level and messages as a string. |
addError | public void addError(String message)(Code) | | Adds an error to the validation, using the specified key to lookup the
message in the resource bundle.
|
addInfo | public void addInfo(String message)(Code) | | Adds some info text to the validation, using the specified key to lookup the
message in the resource bundle.
|
getMessages | public List getMessages()(Code) | | Returns the list of messages that have been added to this validation.
|
hasErrors | public boolean hasErrors()(Code) | | Returns true if this validation contains any error messages.
|
toString | public String toString()(Code) | | Returns the level and messages as a string. Should only be used for debugging.
|
|
|