public interface Validator
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getConfiguration()
Retrieves the configuration of the validator.
|
void |
saxConfiguration(ContentHandler handler)
Sax the configuration of the validator to allow the client side to prevalidate
|
Map<String,Object> |
toJson()
Returns a object representing the validator able to be converted into a JSON string
|
void |
validate(Object value,
Errors errors)
Validates a value.
|
void validate(Object value, Errors errors)
value
- the value to validate (can be null
).errors
- the structure to populate if the validation failed.void saxConfiguration(ContentHandler handler) throws SAXException
handler
- The content handler where to sax parametersSAXException
- if an error occuredMap<String,Object> toJson()
Map<String,Object> getConfiguration()
saxConfiguration(ContentHandler)