xmto2xmta.tree
Class TreeElement
java.lang.Object
|
+--xmto2xmta.tree.TreeElement
- Direct Known Subclasses:
- ConvertElement
- public abstract class TreeElement
- extends java.lang.Object
Class which describes the basic tree attributes for convertion elements.
History:
- 13 Dec 2000 JSB - Created file.
Field Summary |
private java.util.Vector |
children
|
private static boolean |
debug_
Whether debug information is to be printed to the console. |
private TreeElement |
parent_
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
debug_
private static boolean debug_
- Whether debug information is to be printed to the console.
default is not have debug information printed (false).
children
private java.util.Vector children
parent_
private TreeElement parent_
TreeElement
public TreeElement()
addChild
public void addChild(TreeElement child)
getChildren
public java.util.Vector getChildren()
- Get a clone of the vector of children. Return a clone because the
children may be removed at anytime and an Enumeration of the children
is not kept up to date.
getParent
public TreeElement getParent()
removeChild
public void removeChild(TreeElement child)
setDebug
public static void setDebug(boolean debug)
- Enable debugging information to be printed to the console.
- Parameters:
debug
- sets debug information is printed
setParent
public void setParent(TreeElement parent)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object