public class ValidationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
isValid |
| Constructor and Description |
|---|
ValidationResult(boolean isValid,
String message,
Object[] errorVals,
String translatedMessage) |
| Modifier and Type | Method and Description |
|---|---|
static ValidationResult |
fail(String message,
Object... errorVals) |
static ValidationResult |
failWithTranslated(String message) |
static ValidationResult |
failWithTranslated(String message,
Object... errorVals) |
Object[] |
getErrorVals() |
String |
getMessageKey() |
String |
getTranslatedMessage() |
boolean |
isError() |
boolean |
isSuccess() |
boolean |
isValid() |
static ValidationResult |
ok() |
String |
toString() |
static ValidationResult |
undefined() |
public boolean isValid()
public Object[] getErrorVals()
public String getMessageKey()
public static ValidationResult fail(String message, Object... errorVals)
public static ValidationResult failWithTranslated(String message, Object... errorVals)
public static ValidationResult failWithTranslated(String message)
public static ValidationResult ok()
public static ValidationResult undefined()
public String getTranslatedMessage()
public boolean isSuccess()
public boolean isError()
Copyright © 2019. All rights reserved.