- java.lang.Object
-
- com.sun.xml.xsom.impl.parser.ParserContext
-
public class ParserContext extends java.lang.ObjectProvides context information to be used byNGCCRuntimeExs.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 (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<SchemaDocumentImpl,SchemaDocumentImpl>parsedDocumentsDocuments that are parsed already.SchemaSetImplschemaSetSchemaSet 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 AnnotationParserFactorygetAnnotationParserFactory()org.xml.sax.EntityResolvergetEntityResolver()XSSchemaSetgetResult()NGCCRuntimeExnewNGCCRuntime()voidparse(org.xml.sax.InputSource source)Parses a new XML Schema document.
-
-
-
Field Detail
-
schemaSet
public final SchemaSetImpl schemaSet
SchemaSet to which a newly parsed schema is put in.
-
parsedDocuments
public final java.util.Map<SchemaDocumentImpl,SchemaDocumentImpl> 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.
-
-
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.SAXExceptionParses 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()
-
-