Class ParserContext
java.lang.Object
com.sun.xml.xsom.impl.parser.ParserContext
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 Summary
FieldsModifier and TypeFieldDescription(package private) final ErrorHandlerErrorHandler proxy to turn on the hadError flag when an error is found.private booleanOnce an error is detected, this flag is set to true.(package private) final ErrorHandlerErrorHandlerthat does nothing.private final XSOMParserfinal Map<SchemaDocumentImpl, SchemaDocumentImpl> Documents that are parsed already.(package private) final XMLParser(package private) final PatcherManagerPatchManager implementation, which is accessible only from NGCCRuntimEx.final SchemaSetImplSchemaSet to which a newly parsed schema is put in. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(InputSource source) Parses a new XML Schema document.(package private) voidTurns on the error flag.
-
Field Details
-
schemaSet
SchemaSet to which a newly parsed schema is put in. -
owner
-
parser
-
patchers
-
errorCheckers
-
parsedDocuments
Documents that are parsed already. Used to avoid cyclic inclusion/double inclusion of schemas. Set ofSchemaDocumentImpls. The actual data structure is map fromSchemaDocumentImplto itself, so that we can access theSchemaDocumentImplitself. -
hadError
private boolean hadErrorOnce an error is detected, this flag is set to true. -
patcherManager
PatchManager implementation, which is accessible only from NGCCRuntimEx. -
errorHandler
ErrorHandler proxy to turn on the hadError flag when an error is found. -
noopHandler
ErrorHandlerthat does nothing.
-
-
Constructor Details
-
ParserContext
-
-
Method Details
-
getEntityResolver
-
getAnnotationParserFactory
-
parse
Parses a new XML Schema document.- Throws:
SAXException
-
getResult
- Throws:
SAXException
-
newNGCCRuntime
-
setErrorFlag
void setErrorFlag()Turns on the error flag.
-