Example usage for Java com.jgoodies.validation ValidationResult fields, constructors, methods, implement or subclass
The text is from its open source code.
ValidationResult() Constructs an empty modifiable ValidationResult. |
ValidationResult | add(ValidationMessage validationMessage) Adds a new ValidationMessage to the list of messages. |
void | addAllFrom(ValidationResult validationResult) Adds all messages from the given ValidationResult to the list of messages that this validation result holds. |
ValidationResult | addError(String text) Creates and adds an error message to the list of validation messages using the given text. |
ValidationResult | addWarning(String text) Creates and adds a warning message to the list of validation messages using the given text. |
ValidationMessage | get(int index) Returns the message at the specified position in this result. |
List | getErrors() Returns an unmodifiable List of the validation messages that indicate errors. |
List | getMessages() Returns an unmodifiable List of all validation messages. |
String | getMessagesText() Returns a string representation of the message list. |
boolean | hasErrors() Checks and answers whether this validation result contains a message of type ERROR . |
boolean | hasMessages() Checks and answers whether this validation result has messages or not. |
boolean | hasWarnings() Checks and answers whether this validation result contains a message of type WARNING . Note that this method checks for warning messages only. |
boolean | isEmpty() Checks and answers whether this validation result contains no messages. |