Class AbstractReaderSchemaFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractReaderSchemaFactory​(javax.xml.parsers.SAXParserFactory fac, javax.xml.validation.Schema schema)
      XMLReader instances from this class will be configured to validate using the supplied Schema instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.XMLReader createXMLReader()
      Return a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance.
      boolean isValidating()
      Does an XMLReader from this factory do more than just well-formed checks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractReaderSchemaFactory

        public AbstractReaderSchemaFactory​(javax.xml.parsers.SAXParserFactory fac,
                                           javax.xml.validation.Schema schema)
        XMLReader instances from this class will be configured to validate using the supplied Schema instance.
        Parameters:
        fac - The SAXParserFactory to use for creating XMLReader instances.
        schema - The Schema to use for validation.
    • Method Detail

      • createXMLReader

        public org.xml.sax.XMLReader createXMLReader()
                                              throws JDOMException
        Description copied from interface: XMLReaderJDOMFactory
        Return a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance. The XMLReader is expected to be a new instance that is unrelated to any other XMLReaders, and can be reused at will by SAXBuilder.
        Specified by:
        createXMLReader in interface XMLReaderJDOMFactory
        Returns:
        a new XMLReader
        Throws:
        JDOMException - if an XMLReader was not available.
      • isValidating

        public boolean isValidating()
        Description copied from interface: XMLReaderJDOMFactory
        Does an XMLReader from this factory do more than just well-formed checks.
        Specified by:
        isValidating in interface XMLReaderJDOMFactory
        Returns:
        true if the XMLReader validates