Package org.ametys.runtime.parameter
Interface Validator
-
- All Known Implementing Classes:
CandidatesValidator
,DefaultValidator
,RegexpValidator
,RichTextValidator
,SQLDatabaseTypeValidator
,TextValidator
public interface Validator
Validator for parameters values
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
getConfiguration()
Retrieves the configuration of the validator.void
validate(Object value, Errors errors)
Validates a value.
-
-
-
Method Detail
-
validate
void validate(Object value, Errors errors)
Validates a value.- Parameters:
value
- the value to validate (can benull
).errors
- the structure to populate if the validation failed.
-
getConfiguration
Map<String,Object> getConfiguration()
Retrieves the configuration of the validator.- Returns:
- a map containing the configuration information.
-
-