information items). If any of the schemas imports a
schema, other grammars may be constructed as a side-effect.
- Version:
- $Id: XSDHandler.java,v 1.31 2002/03/03 13:33:57 neeraj Exp $
- Author:
- Neil Graham, IBM, Pavani Mukthipudi, Sun Microsystems
Method Summary |
protected void |
buildGlobalNameRegistries()
|
protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo |
constructTrees(org.w3c.dom.Document schemaRoot,
java.lang.String locationHint,
java.lang.String callerTNS,
short referType)
|
SimpleLocator |
element2Locator(org.w3c.dom.Element e)
Extract location information from an Element node, and create a
new SimpleLocator object from such information. |
boolean |
element2Locator(org.w3c.dom.Element e,
SimpleLocator l)
Extract location information from an Element node, store such
information in the passed-in SimpleLocator object, then return
true. |
protected java.lang.Object |
getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema,
int declType,
org.apache.xerces.xni.QName declToTraverse,
org.w3c.dom.Element elmNode)
|
protected java.util.Hashtable |
getIDRegistry()
|
SchemaGrammar |
parseSchema(java.lang.String schemaNamespace,
java.lang.String schemaHint,
short referType)
|
SchemaGrammar |
parseSchema(java.lang.String schemaNamespace,
org.apache.xerces.xni.parser.XMLInputSource is,
short referType)
|
void |
reset(XMLErrorReporter errorReporter,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
SymbolTable symbolTable,
java.lang.String externalSchemaLocation,
java.lang.String externalNoNSSchemaLocation,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
|
protected void |
resolveKeyRefs()
|
protected void |
storeKeyRef(org.w3c.dom.Element keyrefToStore,
org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc,
XSElementDecl currElemDecl)
|
protected void |
traverseSchemas()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_HANDLER
protected static final java.lang.String ERROR_HANDLER
- Property identifier: error handler.
JAXP_SCHEMA_SOURCE
protected static final java.lang.String JAXP_SCHEMA_SOURCE
- Property identifier: JAXP schema source.
REDEF_IDENTIFIER
public static final java.lang.String REDEF_IDENTIFIER
EMPTY_STRING
public java.lang.String EMPTY_STRING
fNotationRegistry
protected java.util.Hashtable fNotationRegistry
XSDHandler
public XSDHandler(XSGrammarBucket gBucket)
parseSchema
public SchemaGrammar parseSchema(java.lang.String schemaNamespace,
java.lang.String schemaHint,
short referType)
parseSchema
public SchemaGrammar parseSchema(java.lang.String schemaNamespace,
org.apache.xerces.xni.parser.XMLInputSource is,
short referType)
constructTrees
protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo constructTrees(org.w3c.dom.Document schemaRoot,
java.lang.String locationHint,
java.lang.String callerTNS,
short referType)
buildGlobalNameRegistries
protected void buildGlobalNameRegistries()
traverseSchemas
protected void traverseSchemas()
getGlobalDecl
protected java.lang.Object getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema,
int declType,
org.apache.xerces.xni.QName declToTraverse,
org.w3c.dom.Element elmNode)
resolveKeyRefs
protected void resolveKeyRefs()
getIDRegistry
protected java.util.Hashtable getIDRegistry()
storeKeyRef
protected void storeKeyRef(org.w3c.dom.Element keyrefToStore,
org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc,
XSElementDecl currElemDecl)
reset
public void reset(XMLErrorReporter errorReporter,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
SymbolTable symbolTable,
java.lang.String externalSchemaLocation,
java.lang.String externalNoNSSchemaLocation,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
element2Locator
public SimpleLocator element2Locator(org.w3c.dom.Element e)
- Extract location information from an Element node, and create a
new SimpleLocator object from such information. Returning null means
no information can be retrieved from the element.
element2Locator
public boolean element2Locator(org.w3c.dom.Element e,
SimpleLocator l)
- Extract location information from an Element node, store such
information in the passed-in SimpleLocator object, then return
true. Returning false means can't extract or store such information.
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.