Modifier and Type | Field and Description |
---|---|
private List<I18nizableText> |
_errors |
Constructor and Description |
---|
Errors() |
Modifier and Type | Method and Description |
---|---|
void |
addError(I18nizableText errorLabel)
Add an error.
|
List<I18nizableText> |
getErrors()
Retrieves the errors.
|
boolean |
hasErrors()
Tests if there were any errors.
|
private List<I18nizableText> _errors
public Errors()
public boolean hasErrors()
true
if there is at least one error,
false
if there is no error.public List<I18nizableText> getErrors()
public void addError(I18nizableText errorLabel)
errorLabel
- the error label.