Class SAXParserImpl


  • class SAXParserImpl
    extends javax.xml.parsers.SAXParser
    SAXParser implementation that supports validation.

    This class uses another SAXParser implementation and adds the validation capability to it.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.xml.parsers.SAXParser core
      The underlying SAX parser.
      private org.iso_relax.verifier.VerifierFactory factory
      A reference to VerifierFactory that can be used to parse a schema.
      private org.iso_relax.verifier.Verifier verifier
      JARV verifier object that performs the validation for this SAXParserImpl.
    • Constructor Summary

      Constructors 
      Constructor Description
      SAXParserImpl​(javax.xml.parsers.SAXParser core, org.iso_relax.verifier.VerifierFactory _jarvFactory, org.iso_relax.verifier.Verifier _verifier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.xml.sax.Parser getParser()
      Deprecated. 
      java.lang.Object getProperty​(java.lang.String name)  
      org.xml.sax.XMLReader getXMLReader()  
      boolean isNamespaceAware()  
      boolean isValidating()  
      void setProperty​(java.lang.String name, java.lang.Object value)  
      • Methods inherited from class javax.xml.parsers.SAXParser

        getSchema, isXIncludeAware, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, reset
      • Methods inherited from class java.lang.Object

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

      • core

        private final javax.xml.parsers.SAXParser core
        The underlying SAX parser.
      • verifier

        private org.iso_relax.verifier.Verifier verifier
        JARV verifier object that performs the validation for this SAXParserImpl. This field is null when no schema is set.
      • factory

        private final org.iso_relax.verifier.VerifierFactory factory
        A reference to VerifierFactory that can be used to parse a schema.
    • Constructor Detail

      • SAXParserImpl

        SAXParserImpl​(javax.xml.parsers.SAXParser core,
                      org.iso_relax.verifier.VerifierFactory _jarvFactory,
                      org.iso_relax.verifier.Verifier _verifier)
    • Method Detail

      • getParser

        public org.xml.sax.Parser getParser()
                                     throws org.xml.sax.SAXException
        Deprecated.
        Specified by:
        getParser in class javax.xml.parsers.SAXParser
        Throws:
        org.xml.sax.SAXException
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
                                     throws org.xml.sax.SAXNotRecognizedException,
                                            org.xml.sax.SAXNotSupportedException
        Specified by:
        getProperty in class javax.xml.parsers.SAXParser
        Throws:
        org.xml.sax.SAXNotRecognizedException
        org.xml.sax.SAXNotSupportedException
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
                         throws org.xml.sax.SAXNotRecognizedException,
                                org.xml.sax.SAXNotSupportedException
        Specified by:
        setProperty in class javax.xml.parsers.SAXParser
        Throws:
        org.xml.sax.SAXNotRecognizedException
        org.xml.sax.SAXNotSupportedException
      • getXMLReader

        public org.xml.sax.XMLReader getXMLReader()
                                           throws org.xml.sax.SAXException
        Specified by:
        getXMLReader in class javax.xml.parsers.SAXParser
        Throws:
        org.xml.sax.SAXException
      • isNamespaceAware

        public boolean isNamespaceAware()
        Specified by:
        isNamespaceAware in class javax.xml.parsers.SAXParser
      • isValidating

        public boolean isValidating()
        Specified by:
        isValidating in class javax.xml.parsers.SAXParser