Package org.ametys.runtime.parameter
Class Errors
- java.lang.Object
-
- org.ametys.runtime.parameter.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.void
addErrors(List<I18nizableText> errorLabels)
Add errors.List<I18nizableText>
getErrors()
Retrieves the errors.boolean
hasErrors()
Tests if there were any 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.
-
addErrors
public void addErrors(List<I18nizableText> errorLabels)
Add errors.- Parameters:
errorLabels
- the error labels.
-
-