Enhydra 5.1 API

org.enhydra.xml.xmlc.compiler
Class ElementInfo

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

public final class ElementInfo
extends java.lang.Object

Information about a particular Element. Several fields are also kept for code generators, although this is not do in a general way.


Nested Class Summary
 class ElementInfo.AccessorInfo
          Information about an accessor method (getElementXXX, getTagXXX) to create for this element.
 
Constructor Summary
ElementInfo(Element element, int nodeSize, int subTreeNodeSize, MetaData metaData, XMLCDocument xmlcDoc)
          Constructor.
 
Method Summary
 boolean createSetText()
          Should a setText method be generated for this element?
 ElementInfo.AccessorInfo[] getAccessors()
          Get the list of accessors to create.
 int getAdjustedSubTreeNodeSize()
           
 java.lang.String getClassName()
          Get the Java class name of the element.
 Element getElement()
          Get the element.
 java.lang.String[] getElementClassNames()
          Get the element class (attribute) names
 java.lang.String getElementName()
          Get the element name (name attribute in HTML).
 java.lang.String getJavaId()
          Get the Java id, or null if there isn't one.
 int getNodeSize()
           
 int getNumAccessMethods()
          Get the total number of access methods for this element.
 int getSubTreeNodeSize()
           
 java.lang.String getXmlId()
          Get the XML id, or null if there isn't one.
 boolean hasInvalidJavaId()
          Is the element id an invalid Java identifier?
 void setAdjustedSubTreeNodeSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementInfo

public ElementInfo(Element element,
                   int nodeSize,
                   int subTreeNodeSize,
                   MetaData metaData,
                   XMLCDocument xmlcDoc)
Constructor.

Method Detail

getElement

public Element getElement()
Get the element.


getClassName

public java.lang.String getClassName()
Get the Java class name of the element.


getXmlId

public java.lang.String getXmlId()
Get the XML id, or null if there isn't one.


getJavaId

public java.lang.String getJavaId()
Get the Java id, or null if there isn't one.


getElementClassNames

public java.lang.String[] getElementClassNames()
Get the element class (attribute) names


getElementName

public java.lang.String getElementName()
Get the element name (name attribute in HTML).


hasInvalidJavaId

public boolean hasInvalidJavaId()
Is the element id an invalid Java identifier?


getNumAccessMethods

public int getNumAccessMethods()
Get the total number of access methods for this element.


getAccessors

public ElementInfo.AccessorInfo[] getAccessors()
Get the list of accessors to create.


createSetText

public boolean createSetText()
Should a setText method be generated for this element?


getNodeSize

public int getNodeSize()

getSubTreeNodeSize

public int getSubTreeNodeSize()

getAdjustedSubTreeNodeSize

public int getAdjustedSubTreeNodeSize()

setAdjustedSubTreeNodeSize

public void setAdjustedSubTreeNodeSize(int size)

Enhydra 5.1 API