public class ValidationResult extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationResult.Level |
| Modifier and Type | Field and Description |
|---|---|
static ValidationResult |
SUCCESS
Indicates that the validation was successful (with no attached message).
|
| Constructor and Description |
|---|
ValidationResult()
DO NOT USE - This is here so that Furnace can create proxies.
|
ValidationResult(ValidationResult.Level level,
String message)
Indicates the success of failure of a validation, as well as a short informative message for the user.
|
ValidationResult(ValidationResult.Level level,
String message,
boolean promptDefault)
Indicates the success of failure of a validation, as well as a short informative message for the user and what value to assume as a default for
the prompt message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ValidationResult.Level |
getLevel()
Returns the validation level (error, prompt, etc).
|
String |
getMessage()
Returns a readable message to display to the user.
|
boolean |
getPromptDefault()
Gets the default prompt value for
ValidationResult.Level.PROMPT_TO_CONTINUE results. |
int |
hashCode() |
boolean |
isSuccess()
Indicates whether this is considered a valid response.
|
String |
toString() |
public static final ValidationResult SUCCESS
public ValidationResult(ValidationResult.Level level, String message, boolean promptDefault)
ValidationResult.Level.PROMPT_TO_CONTINUE.public ValidationResult(ValidationResult.Level level, String message)
public ValidationResult()
public boolean isSuccess()
public boolean getPromptDefault()
ValidationResult.Level.PROMPT_TO_CONTINUE results.public ValidationResult.Level getLevel()
public String getMessage()
Copyright © 2021 JBoss by Red Hat. All rights reserved.