public class ParserContext
extends java.lang.Object
NGCCRuntimeEx
s.
This class does the actual processing for XSOMParser
,
but to hide the details from the public API, this class in
a different package.
Modifier and Type | Field and 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 and Description |
---|
ParserContext(XSOMParser owner,
XMLParser parser) |
Modifier and Type | Method and 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.
|
public final SchemaSetImpl schemaSet
private final XSOMParser owner
final XMLParser parser
private final java.util.Vector<Patch> patchers
private final java.util.Vector<Patch> errorCheckers
public final java.util.Map<SchemaDocumentImpl,SchemaDocumentImpl> parsedDocuments
SchemaDocumentImpl
s.
The actual data structure is map from SchemaDocumentImpl
to itself,
so that we can access the SchemaDocumentImpl
itself.private boolean hadError
final PatcherManager patcherManager
final org.xml.sax.ErrorHandler errorHandler
final org.xml.sax.ErrorHandler noopHandler
ErrorHandler
that does nothing.public ParserContext(XSOMParser owner, XMLParser parser)
public org.xml.sax.EntityResolver getEntityResolver()
public AnnotationParserFactory getAnnotationParserFactory()
public void parse(org.xml.sax.InputSource source) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XSSchemaSet getResult() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public NGCCRuntimeEx newNGCCRuntime()
void setErrorFlag()