Java com.jgoodies.validation ValidationResult fields, constructors, methods, implement or subclass

Example usage for Java com.jgoodies.validation ValidationResult fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.jgoodies.validation ValidationResult.

The text is from its open source code.

Constructor

ValidationResult()
Constructs an empty modifiable ValidationResult.

Method

ValidationResultadd(ValidationMessage validationMessage)
Adds a new ValidationMessage to the list of messages.
voidaddAllFrom(ValidationResult validationResult)
Adds all messages from the given ValidationResult to the list of messages that this validation result holds.
ValidationResultaddError(String text)
Creates and adds an error message to the list of validation messages using the given text.
ValidationResultaddWarning(String text)
Creates and adds a warning message to the list of validation messages using the given text.
ValidationMessageget(int index)
Returns the message at the specified position in this result.
ListgetErrors()
Returns an unmodifiable List of the validation messages that indicate errors.
ListgetMessages()
Returns an unmodifiable List of all validation messages.
StringgetMessagesText()
Returns a string representation of the message list.
booleanhasErrors()
Checks and answers whether this validation result contains a message of type ERROR .
booleanhasMessages()
Checks and answers whether this validation result has messages or not.
booleanhasWarnings()
Checks and answers whether this validation result contains a message of type WARNING .

Note that this method checks for warning messages only.

booleanisEmpty()
Checks and answers whether this validation result contains no messages.