org.apache.xerces.validators.schema
Class TraverseSchema

java.lang.Object
  |
  +--org.apache.xerces.validators.schema.TraverseSchema

public class TraverseSchema
extends java.lang.Object
implements NamespacesScope.NamespacesHandler

Instances of this class get delegated to Traverse the Schema and to populate the Grammar internal representation by instances of Grammar objects. Traverse a Schema Grammar: As of April 07, 2000 the following is the XML Representation of Schemas and Schema components, Chapter 4 of W3C Working Draft. Content: ((include | import | annotation)* , ((simpleType | complexType | element | group | attribute | attributeGroup | notation) , annotation*)+) Content: (annotation? , simpleType?) Content: (annotation? , (simpleType | complexType)? , (unique | key | keyref)*) Content: (annotation? , (((minExclusive | minInclusive | maxExclusive | maxInclusive | precision | scale | length | minLength | maxLength | encoding | period | duration | enumeration | pattern)* | (element | group | all | choice | sequence | any)*) , ((attribute | attributeGroup)* , anyAttribute?))) Content: (annotation?, (attribute|attributeGroup), anyAttribute?) Content: (annotation?) Content: (annotation? , (element | group | all | choice | sequence | any)*) Content: (annotation? , (element | group | choice | sequence | any)*) Content: (annotation? , (element | group | choice | sequence | any)*) Content: (annotation? , (element | group | choice | sequence | any)*) Content: (annotation?) Content: (annotation? , (selector , field+)) Content: (annotation? , (selector , field+)) Content: (annotation? , (selector , field+)) Content: XPathExprApprox : An XPath expression Content: XPathExprApprox : An XPath expression Content: (annotation?) Content: (appinfo | documentation)* Content: (annotation?) Content: (annotation?) Content: ( annotation? , ( minExclusive | minInclusive | maxExclusive | maxInclusive | precision | scale | length | minLength | maxLength | encoding | period | duration | enumeration | pattern )* ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? ) Content: ( annotation? )

Version:
$Id: TraverseSchema.java,v 1.61 2000/11/07 19:54:52 ericye Exp $
Author:
Eric Ye, Jeffrey Rodriguez, Andy Clark
See Also:
Grammar

Inner Class Summary
 class TraverseSchema.ComplexTypeInfo
           
 
Field Summary
static java.lang.String SchemaForSchemaURI
           
 
Constructor Summary
TraverseSchema(Element root, StringPool stringPool, SchemaGrammar schemaGrammar, GrammarResolver grammarResolver)
           
TraverseSchema(Element root, StringPool stringPool, SchemaGrammar schemaGrammar, GrammarResolver grammarResolver, XMLErrorReporter errorReporter, java.lang.String schemaURL)
           
TraverseSchema(Element root, StringPool stringPool, SchemaGrammar schemaGrammar, GrammarResolver grammarResolver, XMLErrorReporter errorReporter, java.lang.String schemaURL, EntityResolver entityResolver)
           
 
Method Summary
 void doTraverseSchema(Element root, StringPool stringPool, SchemaGrammar schemaGrammar, GrammarResolver grammarResolver)
           
 void endNamespaceDeclScope(int prefix)
          endNamespaceDeclScope is called when a namespace scope ends
 DatatypeValidator getDatatypeValidator(java.lang.String uri, java.lang.String localpart)
           
static void main(java.lang.String[] args)
           
 void setGrammarResolver(GrammarResolver grammarResolver)
           
 void startNamespaceDeclScope(int prefix, int uri)
          startNamespaceDeclScope is called when a new namespace scope is created
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SchemaForSchemaURI

public static final java.lang.String SchemaForSchemaURI
Constructor Detail

TraverseSchema

public TraverseSchema(Element root,
                      StringPool stringPool,
                      SchemaGrammar schemaGrammar,
                      GrammarResolver grammarResolver,
                      XMLErrorReporter errorReporter,
                      java.lang.String schemaURL,
                      EntityResolver entityResolver)
               throws java.lang.Exception

TraverseSchema

public TraverseSchema(Element root,
                      StringPool stringPool,
                      SchemaGrammar schemaGrammar,
                      GrammarResolver grammarResolver,
                      XMLErrorReporter errorReporter,
                      java.lang.String schemaURL)
               throws java.lang.Exception

TraverseSchema

public TraverseSchema(Element root,
                      StringPool stringPool,
                      SchemaGrammar schemaGrammar,
                      GrammarResolver grammarResolver)
               throws java.lang.Exception
Method Detail

setGrammarResolver

public void setGrammarResolver(GrammarResolver grammarResolver)

startNamespaceDeclScope

public void startNamespaceDeclScope(int prefix,
                                    int uri)
Description copied from interface: NamespacesScope.NamespacesHandler
startNamespaceDeclScope is called when a new namespace scope is created
Specified by:
startNamespaceDeclScope in interface NamespacesScope.NamespacesHandler
Tags copied from interface: NamespacesScope.NamespacesHandler
Parameters:
prefix - the StringPool handle of the namespace prefix being declared
uri - the StringPool handle of the namespace's URI
Throws:
java.lang.Exception -  

endNamespaceDeclScope

public void endNamespaceDeclScope(int prefix)
Description copied from interface: NamespacesScope.NamespacesHandler
endNamespaceDeclScope is called when a namespace scope ends
Specified by:
endNamespaceDeclScope in interface NamespacesScope.NamespacesHandler
Tags copied from interface: NamespacesScope.NamespacesHandler
Parameters:
prefix - the StringPool handle of the namespace prefix going out of scope
Throws:
java.lang.Exception -  

doTraverseSchema

public void doTraverseSchema(Element root,
                             StringPool stringPool,
                             SchemaGrammar schemaGrammar,
                             GrammarResolver grammarResolver)
                      throws java.lang.Exception

getDatatypeValidator

public DatatypeValidator getDatatypeValidator(java.lang.String uri,
                                              java.lang.String localpart)

main

public static void main(java.lang.String[] args)


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