Top Description Fields Constructors Methods
com.sun.xml.xsom.impl.parser

public Class ParserContext

extends Object
Class Inheritance
Imports
com.sun.xml.xsom.XSSchemaSet, com.sun.xml.xsom.impl.ElementDecl, .SchemaImpl, .SchemaSetImpl, com.sun.xml.xsom.parser.AnnotationParserFactory, .XMLParser, .XSOMParser, org.xml.sax.EntityResolver, .ErrorHandler, .InputSource, .Locator, .SAXException, .SAXParseException, java.io.IOException, .InputStream, java.util.HashMap, .Iterator, .Map, .Vector

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.

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final Vector<Patch>
pack-priv final 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.

pack-priv final ErrorHandler
noopHandler

ErrorHandler that does nothing.

private final XSOMParser
public final Map<SchemaDocumentImpl, SchemaDocumentImpl>
parsedDocuments

Documents that are parsed already.

pack-priv final XMLParser
pack-priv final PatcherManager
patcherManager

PatchManager implementation, which is accessible only from NGCCRuntimEx.

private final Vector<Patch>
public final SchemaSetImpl
schemaSet

SchemaSet to which a newly parsed schema is put in.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AnnotationParserFactory
public EntityResolver
public XSSchemaSet
public NGCCRuntimeEx
public void
parse(InputSource source)

Parses a new XML Schema document.

pack-priv void
setErrorFlag()

Turns on the error flag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorCheckersback to summary
private final Vector<Patch> errorCheckers
errorHandlerback to summary
pack-priv final ErrorHandler errorHandler

ErrorHandler proxy to turn on the hadError flag when an error is found.

hadErrorback to summary
private boolean hadError

Once an error is detected, this flag is set to true.

noopHandlerback to summary
pack-priv final ErrorHandler noopHandler

ErrorHandler that does nothing.

ownerback to summary
private final XSOMParser owner
parsedDocumentsback to summary
public final Map<SchemaDocumentImpl, SchemaDocumentImpl> parsedDocuments

Documents that are parsed already. Used to avoid cyclic inclusion/double inclusion of schemas. Set of SchemaDocumentImpls. The actual data structure is map from SchemaDocumentImpl to itself, so that we can access the SchemaDocumentImpl itself.

parserback to summary
pack-priv final XMLParser parser
patcherManagerback to summary
pack-priv final PatcherManager patcherManager

PatchManager implementation, which is accessible only from NGCCRuntimEx.

patchersback to summary
private final Vector<Patch> patchers
schemaSetback to summary
public final SchemaSetImpl schemaSet

SchemaSet to which a newly parsed schema is put in.

Constructor Detail

ParserContextback to summary
public ParserContext(XSOMParser owner, XMLParser parser)

Method Detail

getAnnotationParserFactoryback to summary
public AnnotationParserFactory getAnnotationParserFactory()
getEntityResolverback to summary
public EntityResolver getEntityResolver()
getResultback to summary
public XSSchemaSet getResult() throws SAXException
newNGCCRuntimeback to summary
public NGCCRuntimeEx newNGCCRuntime()
parseback to summary
public void parse(InputSource source) throws SAXException

Parses a new XML Schema document.

setErrorFlagback to summary
pack-priv void setErrorFlag()

Turns on the error flag.