XMT-O Reference Software

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:


Field Summary
private  java.util.Vector children
           
private static boolean debug_
          Whether debug information is to be printed to the console.
private  TreeElement parent_
           
 
Constructor Summary
TreeElement()
           
 
Method Summary
 void addChild(TreeElement child)
           
 java.util.Vector getChildren()
          Get a clone of the vector of children.
 TreeElement getParent()
           
 void removeChild(TreeElement child)
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 void setParent(TreeElement parent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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_
Constructor Detail

TreeElement

public TreeElement()
Method Detail

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

XMT-O Reference Software