public class ValidationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FAIL_MESSAGE
Default message number for validation fail
|
static ValidationResult |
DEFAULT_FAIL_RESULT
Default fail validation result
|
static String |
DEFAULT_OK_MESSAGE
Default message number for validation ok
|
static ValidationResult |
DEFAULT_OK_RESULT
Default ok validation result
|
| Constructor and Description |
|---|
ValidationResult(boolean result)
Creates a new ValidateResult.
|
ValidationResult(boolean result,
String msgID,
Object[] msgArgs)
Creates a new ValidateResult.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object[] |
getMsgArgs()
Returns the message arguments of the validation message.
|
String |
getMsgNumber()
Returns the message number of the validation message.
|
boolean |
getResult()
Deprecated.
Use
succeeded() instead |
int |
hashCode() |
boolean |
succeeded()
Returns the validation result.
|
String |
toString() |
public static final String DEFAULT_OK_MESSAGE
public static final String DEFAULT_FAIL_MESSAGE
public static final ValidationResult DEFAULT_OK_RESULT
public static final ValidationResult DEFAULT_FAIL_RESULT
public ValidationResult(boolean result,
String msgID,
Object[] msgArgs)
result - The result of the validation, true for passed
validation, false for failed validation.msgID - Message number of validation message (if any)msgArgs - Message arguments of validation result (if any)public ValidationResult(boolean result)
result - The result of the validation, true for passed
validation, false for failed validation.public boolean succeeded()
true means that the
validation succeeded.@Deprecated public boolean getResult()
succeeded() insteadtrue means that the
validation succeeded.public String getMsgNumber()
public Object[] getMsgArgs()
Copyright © 2006–2020 Esito AS. All rights reserved.