org.enhydra.xml.xmlc.compiler
Class ElementTable

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.compiler.ElementTable

public class ElementTable
extends Object

Table of information about each element.


Constructor Summary
ElementTable(MetaData metaData, XMLCDocument xmlcDoc)
          Constructor.
 
Method Summary
 int getDocumentNodeSize()
          Get the size of the document, in nodes.
 ElementInfo getElementInfo(Element element)
          Look up an ElementInfo by Element.
 Iterator getElements()
          Get a interator of all ElementInfo objects.
 Iterator getElementsByTagName(String tagName)
          Get an iterator of ElementInfo entries by tag name.
 String getIdAttributeName(String tagName)
          Get the id-attribute name for a tag.
 Iterator getInvalidElementIds()
          Get an sorted iterator of element ids that are not legal Java identifiers, or null if all ids were legal.
 Iterator getJavaIdElements()
          Get an iterator of all ElementInfo objects that have Java ids.
 Iterator getTagNames()
          Get all tag names that were found in local-id-attribute mode.
 XMLCDocument getXMLCDocument()
          Get the XMLCDocument object stored in the table.
 boolean isGlobalIdAttrMode()
          Is there only one attribute name for all id attributes?
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementTable

public ElementTable(MetaData metaData,
                    XMLCDocument xmlcDoc)
             throws XMLCException
Constructor. Builds the table.
Method Detail

getXMLCDocument

public XMLCDocument getXMLCDocument()
Get the XMLCDocument object stored in the table.

getDocumentNodeSize

public int getDocumentNodeSize()
Get the size of the document, in nodes.

isGlobalIdAttrMode

public boolean isGlobalIdAttrMode()
Is there only one attribute name for all id attributes?

getElementInfo

public ElementInfo getElementInfo(Element element)
Look up an ElementInfo by Element.

getElements

public Iterator getElements()
Get a interator of all ElementInfo objects.

getJavaIdElements

public Iterator getJavaIdElements()
Get an iterator of all ElementInfo objects that have Java ids.

getElementsByTagName

public Iterator getElementsByTagName(String tagName)
Get an iterator of ElementInfo entries by tag name. Only valid in local-id-attribute mode.

getTagNames

public Iterator getTagNames()
Get all tag names that were found in local-id-attribute mode. Returns null in global-id-attribute mode.

getIdAttributeName

public String getIdAttributeName(String tagName)
Get the id-attribute name for a tag.

getInvalidElementIds

public Iterator getInvalidElementIds()
Get an sorted iterator of element ids that are not legal Java identifiers, or null if all ids were legal.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.