public class UserPreferencesErrors extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Errors> |
_errors
The errors as a Map of field ID -> error messages.
|
Constructor and Description |
---|
UserPreferencesErrors()
Default constructor.
|
UserPreferencesErrors(Map<String,Errors> errors)
Constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String fieldId,
I18nizableText error)
Add an error.
|
void |
addErrors(String fieldId,
List<I18nizableText> errors)
Add an error list.
|
Map<String,Errors> |
getErrors()
Get the errors.
|
Errors |
getErrors(String fieldId)
Get the errors for a single field.
|
boolean |
hasErrors()
Tests if the form has errors.
|
void |
setErrors(Map<String,Errors> errors)
Set the errors.
|
public UserPreferencesErrors()
public UserPreferencesErrors(Map<String,Errors> errors)
errors
- the errors.public Errors getErrors(String fieldId)
fieldId
- the field ID.public void setErrors(Map<String,Errors> errors)
errors
- the errors to setpublic void addError(String fieldId, I18nizableText error)
fieldId
- the field ID.error
- the error message.public void addErrors(String fieldId, List<I18nizableText> errors)
fieldId
- the field ID.errors
- the error messages.public boolean hasErrors()