Interface Validator
- All Superinterfaces:
Serializable
Implement this trait to provide custom validation logic
The Validator implementations must be thread safe
- See Also:
-
for example of using ThreadLocal for thread safety
Validation errors should be reported by calling the appropriate functions on the ValidationHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validateXML
(InputStream document, ValidationHandler handler) Used to validate XMLs.
-
Method Details
-
validateXML
Used to validate XMLs. Any validation diagnostics will be added to the state- Parameters:
document
- Inputstream containing xml to be validatedhandler
- validation handler used to handle errors. Mutates state.
-