Class ParserContext


  • public class ParserContext
    extends java.lang.Object
    Provides context information to be used by NGCCRuntimeExs.

    This class does the actual processing for XSOMParser, but to hide the details from the public API, this class in a different package.

    • Field Detail

      • schemaSet

        public final SchemaSetImpl schemaSet
        SchemaSet to which a newly parsed schema is put in.
      • patchers

        private final java.util.Vector<Patch> patchers
      • errorCheckers

        private final java.util.Vector<Patch> errorCheckers
      • hadError

        private boolean hadError
        Once an error is detected, this flag is set to true.
      • patcherManager

        final PatcherManager patcherManager
        PatchManager implementation, which is accessible only from NGCCRuntimEx.
      • errorHandler

        final org.xml.sax.ErrorHandler errorHandler
        ErrorHandler proxy to turn on the hadError flag when an error is found.
      • noopHandler

        final org.xml.sax.ErrorHandler noopHandler
        ErrorHandler that does nothing.
    • Method Detail

      • getEntityResolver

        public org.xml.sax.EntityResolver getEntityResolver()
      • parse

        public void parse​(org.xml.sax.InputSource source)
                   throws org.xml.sax.SAXException
        Parses a new XML Schema document.
        Throws:
        org.xml.sax.SAXException
      • getResult

        public XSSchemaSet getResult()
                              throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • setErrorFlag

        void setErrorFlag()
        Turns on the error flag.