Class DtdValidationConfig

  • All Implemented Interfaces:
    ValidationConfig

    public class DtdValidationConfig
    extends java.lang.Object
    implements ValidationConfig
    Configuration information for validating XML against a DTD.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.xml.sax.EntityResolver entityResolver  
    • Constructor Summary

      Constructors 
      Constructor Description
      DtdValidationConfig​(org.xml.sax.EntityResolver entityResolver)  
    • Field Detail

      • entityResolver

        private org.xml.sax.EntityResolver entityResolver
    • Constructor Detail

      • DtdValidationConfig

        public DtdValidationConfig​(org.xml.sax.EntityResolver entityResolver)
    • Method Detail

      • configureParser

        public void configureParser​(XmlParser parser)
        Description copied from interface: ValidationConfig
        Configures the parser itself. Called when this config is first set on an XmlParser.
        Specified by:
        configureParser in interface ValidationConfig
        Parameters:
        parser - The parser to configure.
      • configureHandler

        public void configureHandler​(XmlParser.Handler handler)
        Description copied from interface: ValidationConfig
        Configures the actual handler instance. Called before each parsing of the document.
        Specified by:
        configureHandler in interface ValidationConfig
        Parameters:
        handler - The handler to configure.