Interface VerifierFilter

  • All Superinterfaces:
    org.xml.sax.XMLFilter, org.xml.sax.XMLReader
    All Known Implementing Classes:
    VerifierFilterImpl

    public interface VerifierFilter
    extends org.xml.sax.XMLFilter
    XMLFilter implementation that validates a document.

    An instance of this interface can be obtained through the Verifier.getVerifierFilter() method.

    The implementation validates incoming SAX events and then pass it to the successive SAX handlers.

    Since:
    Feb. 23, 2001
    Version:
    Feb. 24, 2001
    Author:
    ASAMI, Tomoharu (asami@zeomtech.com)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isValid()
      checks if the document was valid.
      • Methods inherited from interface org.xml.sax.XMLFilter

        getParent, setParent
      • Methods inherited from interface org.xml.sax.XMLReader

        getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
    • Method Detail

      • isValid

        boolean isValid()
                 throws java.lang.IllegalStateException
        checks if the document was valid.

        This method can be only called after this handler receives the endDocument event.

        Returns:
        true if the document was valid, false if not.
        Throws:
        java.lang.IllegalStateException - If this method is called before the endDocument event is dispatched.