Interface Validator

All Superinterfaces:
Serializable

public interface Validator extends 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 Details

    • validateXML

      void validateXML(InputStream document, ValidationHandler handler)
      Used to validate XMLs. Any validation diagnostics will be added to the state
      Parameters:
      document - Inputstream containing xml to be validated
      handler - validation handler used to handle errors. Mutates state.