Package org.ametys.runtime.parameter
Class Errors
- java.lang.Object
-
- org.ametys.runtime.parameter.Errors
-
-
Field Summary
Fields Modifier and Type Field Description private List<I18nizableText>
_errors
-
Constructor Summary
Constructors Constructor Description Errors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(I18nizableText errorLabel)
Add an error.List<I18nizableText>
getErrors()
Retrieves the errors.boolean
hasErrors()
Tests if there were any errors.
-
-
-
Field Detail
-
_errors
private List<I18nizableText> _errors
-
-
Constructor Detail
-
Errors
public Errors()
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
Tests if there were any errors.- Returns:
true
if there is at least one error,false
if there is no error.
-
getErrors
public List<I18nizableText> getErrors()
Retrieves the errors.- Returns:
- the errors.
-
addError
public void addError(I18nizableText errorLabel)
Add an error.- Parameters:
errorLabel
- the error label.
-
-