|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.enablement.oda.xml.util.ui.ATreeNode
public class ATreeNode
The instance of this class is used as tree node of the xml schema tree that is passed to gui.
| Field Summary | |
|---|---|
static int |
ATTRIBUTE_TYPE
|
static int |
ELEMENT_TYPE
|
static int |
OTHER_TYPE
|
| Constructor Summary | |
|---|---|
ATreeNode(org.apache.xerces.impl.xs.XSElementDecl element)
|
|
| Method Summary | |
|---|---|
void |
addChild(java.lang.Object child)
Add a child to the tree node. |
java.lang.Object[] |
getChildren()
Return the children of tree node. |
java.lang.String |
getDataType()
Return the data type of tree node. |
ATreeNode |
getParent()
Return the parent of tree node. |
int |
getType()
Return the type of tree node. |
java.lang.Object |
getValue()
Return the value of tree node. |
void |
setDataType(java.lang.String type)
Set the data type of tree node ( either attribute or element) |
void |
setParent(ATreeNode parent)
Set the parent of the tree node. |
void |
setType(int type)
Set the type of tree node ( either attribute or element) |
void |
setValue(java.lang.Object value)
Set the value to be held by this tree node. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ELEMENT_TYPE
public static final int ATTRIBUTE_TYPE
public static final int OTHER_TYPE
| Constructor Detail |
|---|
public ATreeNode(org.apache.xerces.impl.xs.XSElementDecl element)
throws OdaException
element -
OdaException| Method Detail |
|---|
public java.lang.Object getValue()
public java.lang.Object[] getChildren()
throws OdaException
OdaExceptionpublic ATreeNode getParent()
public void setValue(java.lang.Object value)
value - public void addChild(java.lang.Object child)
child - public void setParent(ATreeNode parent)
parent - public java.lang.String toString()
toString in class java.lang.Objectpublic int getType()
public void setType(int type)
type -
public java.lang.String getDataType()
throws OdaException
OdaException
public void setDataType(java.lang.String type)
throws OdaException
type -
OdaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||