public class ValidationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ResourceBundle |
errorMessageBundle |
protected Map<String,String> |
errors |
protected String |
message |
| Constructor and Description |
|---|
ValidationResult() |
ValidationResult(ResourceBundle errorMessageBundle) |
ValidationResult(String message) |
ValidationResult(String message,
ResourceBundle errorMessageBundle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String key,
String errorCode,
Object... args) |
Map<String,String> |
getErrors() |
String |
getMessage() |
boolean |
hasErrors() |
void |
setMessage(String message) |
protected String message
protected ResourceBundle errorMessageBundle
public ValidationResult()
public ValidationResult(String message)
public ValidationResult(ResourceBundle errorMessageBundle)
public ValidationResult(String message, ResourceBundle errorMessageBundle)
Copyright © 2018 CrafterCMS. All rights reserved.