XSOM 20110809-redhat-3

com.sun.xml.xsom.impl.parser
Class ParserContext

java.lang.Object
  extended by com.sun.xml.xsom.impl.parser.ParserContext

public class ParserContext
extends Object

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 (kohsuke.kawaguchi@sun.com)

Field Summary
 Map<SchemaDocumentImpl,SchemaDocumentImpl> parsedDocuments
          Documents that are parsed already.
 SchemaSetImpl schemaSet
          SchemaSet to which a newly parsed schema is put in.
 
Constructor Summary
ParserContext(XSOMParser owner, XMLParser parser)
           
 
Method Summary
 AnnotationParserFactory getAnnotationParserFactory()
           
 EntityResolver getEntityResolver()
           
 XSSchemaSet getResult()
           
 NGCCRuntimeEx newNGCCRuntime()
           
 void parse(InputSource source)
          Parses a new XML Schema document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaSet

public final SchemaSetImpl schemaSet
SchemaSet to which a newly parsed schema is put in.


parsedDocuments

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.

Constructor Detail

ParserContext

public ParserContext(XSOMParser owner,
                     XMLParser parser)
Method Detail

getEntityResolver

public EntityResolver getEntityResolver()

getAnnotationParserFactory

public AnnotationParserFactory getAnnotationParserFactory()

parse

public void parse(InputSource source)
           throws SAXException
Parses a new XML Schema document.

Throws:
SAXException

getResult

public XSSchemaSet getResult()
                      throws SAXException
Throws:
SAXException

newNGCCRuntime

public NGCCRuntimeEx newNGCCRuntime()

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.