org.jscience.ml.gml.xml.schema
Class SchemaGraph

java.lang.Object
  extended by org.jscience.ml.gml.xml.schema.SchemaGraph

public class SchemaGraph
extends java.lang.Object

Represents a graph of schema data objects used by SchemaParser.


Constructor Summary
SchemaGraph()
          Constructor.
 
Method Summary
 SchemaNode addNode(SchemaNode parent, SchemaNode child)
           
 void addSubstGroups(SchemaNode parent, java.util.Hashtable substTable)
           
 void clean()
          Purges the graph.
 void dump()
          DOCUMENT ME!
 void dump(SchemaNode node, int indentLevel, int indentSize)
          DOCUMENT ME!
 SchemaNode findNode(SchemaNode parent, QName elementName)
           
 SchemaNode getGlobalConstruct(java.lang.String construct, QName elemQName)
          DOCUMENT ME!
 SchemaNode getRoot()
           
 boolean isChildOf(QName parentName, QName childName)
           
 boolean isOfType(QName elementName, QName typeName)
           
 SchemaNode setRoot(QName name, QName type)
          Sets the root of the schema graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGraph

public SchemaGraph()
Constructor.

Method Detail

clean

public void clean()
Purges the graph.


getRoot

public SchemaNode getRoot()

setRoot

public SchemaNode setRoot(QName name,
                          QName type)
Sets the root of the schema graph.

Parameters:
name - DOCUMENT ME!
type - DOCUMENT ME!
Returns:
DOCUMENT ME!

addNode

public SchemaNode addNode(SchemaNode parent,
                          SchemaNode child)

getGlobalConstruct

public SchemaNode getGlobalConstruct(java.lang.String construct,
                                     QName elemQName)
DOCUMENT ME!

Parameters:
construct - DOCUMENT ME!
elemQName - DOCUMENT ME!
Returns:
DOCUMENT ME!

addSubstGroups

public void addSubstGroups(SchemaNode parent,
                           java.util.Hashtable substTable)

isOfType

public boolean isOfType(QName elementName,
                        QName typeName)

findNode

public SchemaNode findNode(SchemaNode parent,
                           QName elementName)

isChildOf

public boolean isChildOf(QName parentName,
                         QName childName)

dump

public void dump()
DOCUMENT ME!


dump

public void dump(SchemaNode node,
                 int indentLevel,
                 int indentSize)
DOCUMENT ME!

Parameters:
node - DOCUMENT ME!
indentLevel - DOCUMENT ME!
indentSize - DOCUMENT ME!