Package com.sun.xml.xsom.impl.parser
Class ParserContext
- java.lang.Object
-
- com.sun.xml.xsom.impl.parser.ParserContext
-
public class ParserContext extends java.lang.Object
Provides context information to be used byNGCCRuntimeEx
s.This class does the actual processing for
XSOMParser
, but to hide the details from the public API, this class in a different package.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<Patch>
errorCheckers
(package private) org.xml.sax.ErrorHandler
errorHandler
ErrorHandler proxy to turn on the hadError flag when an error is found.private boolean
hadError
Once an error is detected, this flag is set to true.(package private) org.xml.sax.ErrorHandler
noopHandler
ErrorHandler
that does nothing.private XSOMParser
owner
java.util.Map<SchemaDocumentImpl,SchemaDocumentImpl>
parsedDocuments
Documents that are parsed already.(package private) XMLParser
parser
(package private) PatcherManager
patcherManager
PatchManager implementation, which is accessible only from NGCCRuntimEx.private java.util.Vector<Patch>
patchers
SchemaSetImpl
schemaSet
SchemaSet to which a newly parsed schema is put in.
-
Constructor Summary
Constructors Constructor Description ParserContext(XSOMParser owner, XMLParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationParserFactory
getAnnotationParserFactory()
org.xml.sax.EntityResolver
getEntityResolver()
XSSchemaSet
getResult()
NGCCRuntimeEx
newNGCCRuntime()
void
parse(org.xml.sax.InputSource source)
Parses a new XML Schema document.(package private) void
setErrorFlag()
Turns on the error flag.
-
-
-
Field Detail
-
schemaSet
public final SchemaSetImpl schemaSet
SchemaSet to which a newly parsed schema is put in.
-
owner
private final XSOMParser owner
-
parser
final XMLParser parser
-
patchers
private final java.util.Vector<Patch> patchers
-
errorCheckers
private final java.util.Vector<Patch> errorCheckers
-
parsedDocuments
public final java.util.Map<SchemaDocumentImpl,SchemaDocumentImpl> parsedDocuments
Documents that are parsed already. Used to avoid cyclic inclusion/double inclusion of schemas. Set ofSchemaDocumentImpl
s. The actual data structure is map fromSchemaDocumentImpl
to itself, so that we can access theSchemaDocumentImpl
itself.
-
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.
-
-
Constructor Detail
-
ParserContext
public ParserContext(XSOMParser owner, XMLParser parser)
-
-
Method Detail
-
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
-
getAnnotationParserFactory
public AnnotationParserFactory getAnnotationParserFactory()
-
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
-
newNGCCRuntime
public NGCCRuntimeEx newNGCCRuntime()
-
setErrorFlag
void setErrorFlag()
Turns on the error flag.
-
-