org.apache.xerces.impl.xs.traversers
Class XSDHandler

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.traversers.XSDHandler

public class XSDHandler
extends java.lang.Object

The purpose of this class is to co-ordinate the construction of a grammar object corresponding to a schema. To do this, it must be prepared to parse several schema documents (for instance if the schema document originally referred to contains or 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.1 2001/10/25 20:36:04 elena Exp $
Author:
Neil Graham, IBM

Inner Class Summary
static class XSDHandler.DummyResolver
           
 
Field Summary
 java.lang.String EMPTY_STRING
           
protected  java.util.Hashtable fNotationRegistry
           
static java.lang.String REDEF_IDENTIFIER
           
 
Constructor Summary
XSDHandler(XSGrammarResolver gResolver, SubstitutionGroupHandler subGroupHandler)
           
 
Method Summary
protected  void buildGlobalNameRegistries()
           
protected  org.apache.xerces.impl.xs.traversers.XSDocumentInfo constructTrees(org.w3c.dom.Document schemaRoot, java.lang.String callerTNS)
           
protected  java.lang.Object getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema, int declType, org.apache.xerces.xni.QName declToTraverse)
           
protected  java.util.Hashtable getIDRegistry()
           
static void main(java.lang.String[] args)
          only for testing!
 SchemaGrammar parseSchema(java.lang.String schemaNamespace, java.lang.String schemaHint)
           
 void reset(XMLErrorReporter errorReporter, org.apache.xerces.xni.parser.XMLEntityResolver entityResolver, SymbolTable symbolTable)
           
protected  void resolveKeyRefs()
           
protected  java.lang.String resolvePrefixToURI(java.lang.String prefix)
           
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
 

Field Detail

REDEF_IDENTIFIER

public static final java.lang.String REDEF_IDENTIFIER

EMPTY_STRING

public java.lang.String EMPTY_STRING

fNotationRegistry

protected java.util.Hashtable fNotationRegistry
Constructor Detail

XSDHandler

public XSDHandler(XSGrammarResolver gResolver,
                  SubstitutionGroupHandler subGroupHandler)
Method Detail

parseSchema

public SchemaGrammar parseSchema(java.lang.String schemaNamespace,
                                 java.lang.String schemaHint)

constructTrees

protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo constructTrees(org.w3c.dom.Document schemaRoot,
                                                                             java.lang.String callerTNS)

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)

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)

resolvePrefixToURI

protected java.lang.String resolvePrefixToURI(java.lang.String prefix)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
only for testing!


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.