|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.compiler.ElementInfo
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(org.w3c.dom.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. |
org.w3c.dom.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. |
java.lang.String |
getReferenceName()
Get the reference name 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 |
public ElementInfo(org.w3c.dom.Element element, int nodeSize, int subTreeNodeSize, MetaData metaData, XMLCDocument xmlcDoc)
Method Detail |
public org.w3c.dom.Element getElement()
public java.lang.String getClassName()
public java.lang.String getReferenceName()
public java.lang.String getXmlId()
public java.lang.String getJavaId()
public java.lang.String[] getElementClassNames()
public java.lang.String getElementName()
public boolean hasInvalidJavaId()
public int getNumAccessMethods()
public ElementInfo.AccessorInfo[] getAccessors()
public boolean createSetText()
public int getNodeSize()
public int getSubTreeNodeSize()
public int getAdjustedSubTreeNodeSize()
public void setAdjustedSubTreeNodeSize(int size)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |