public final class ValidationResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static IValidationResultBuilder |
builder()
Creates a new validation result builder
|
static IValidationResult |
create()
Creates a new validation result.
|
static IValidationResult |
create(IValidationMessage message)
Creates a new validation result for a given validation message
|
static IValidationResult |
error(java.lang.String text)
Creates a new validation result with one error message
|
static IValidationResult |
error(java.lang.String context,
java.lang.String text)
Creates a new validation result with one error message
|
static IValidationResult |
info(java.lang.String text)
Creates a new validation result with one info message
|
static IValidationResult |
info(java.lang.String context,
java.lang.String text)
Creates a new validation result with one info message
|
static IValidationResult |
infoError(java.lang.String text)
Creates a new validation result with one info error message
|
static IValidationResult |
infoError(java.lang.String context,
java.lang.String text)
Creates a new validation result with one info error message
|
static IValidationResult |
ok()
Creates a new validation result with one message of MessageType OK
|
static IValidationResult |
warning(java.lang.String text)
Creates a new validation result with one warning message
|
static IValidationResult |
warning(java.lang.String context,
java.lang.String text)
Creates a new validation result with one warning message
|
public static IValidationResult create()
ok()
public static IValidationResult ok()
public static IValidationResult create(IValidationMessage message)
message
- The message to create the result for, must not be nullpublic static IValidationResult info(java.lang.String text)
text
- The message text of the message the result consists ofpublic static IValidationResult warning(java.lang.String text)
text
- The message text of the message the result consists ofpublic static IValidationResult infoError(java.lang.String text)
text
- The message text of the message the result consists ofpublic static IValidationResult error(java.lang.String text)
text
- The message text of the message the result consists ofpublic static IValidationResult info(java.lang.String context, java.lang.String text)
context
- The context of the message the result consists oftext
- The message text of the message the result consists ofpublic static IValidationResult warning(java.lang.String context, java.lang.String text)
context
- The context of the message the result consists oftext
- The message text of the message the result consists ofpublic static IValidationResult infoError(java.lang.String context, java.lang.String text)
context
- The context of the message the result consists oftext
- The message text of the message the result consists ofpublic static IValidationResult error(java.lang.String context, java.lang.String text)
context
- The context of the message the result consists oftext
- The message text of the message the result consists ofpublic static IValidationResultBuilder builder()
Siehe auch Jowidgets Nutzerhandbuch