Interface Validator
-
- All Known Implementing Classes:
ClassValidator
,NullValidator
,RangeValidator
@Public public interface Validator
Validator that validates configuration settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
documentation()
Return the documentation for a given validator.boolean
validate(java.lang.String name, java.lang.Object value)
Validates the configuration value.
-
-
-
Method Detail
-
validate
boolean validate(java.lang.String name, java.lang.Object value)
Validates the configuration value.- Parameters:
name
- name of the configuration settingvalue
- value of the configuration setting- Returns:
- true if it is a valid value, otherwise false.
-
documentation
default java.lang.String documentation()
Return the documentation for a given validator.- Returns:
- the documentation for a given validator
-
-