no.uio.labmed.util.output
Class ObjectTreeAdapter

java.lang.Object
  |
  +--no.uio.labmed.util.output.TreeAdapterNode
        |
        +--no.uio.labmed.util.output.ObjectTreeAdapter
All Implemented Interfaces:
java.lang.Cloneable, TreeNodeInterface, TreeNodePointerInterface

public class ObjectTreeAdapter
extends TreeAdapterNode
implements TreeNodePointerInterface, TreeNodeInterface

NB: FORELDET!!!!!!!


Constructor Summary
ObjectTreeAdapter()
          Constructor
ObjectTreeAdapter(java.lang.Object object)
          Constructor
 
Method Summary
 ChildIterator childIterator()
          Return an iterator to iterate over the children.
 java.lang.Object clone()
          Clone the pointer
 java.lang.String field()
           
protected  TreeAdapterNode[] getChildren()
          Get array containing the children of the node.
 TreeNodeInterface getNode()
          Return node
 boolean hasChildren()
          Return true is node has children
 java.lang.String toString()
          Return string representation of node.
 java.lang.String value()
           
 
Methods inherited from class no.uio.labmed.util.output.TreeAdapterNode
getChildren
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectTreeAdapter

public ObjectTreeAdapter()
Constructor


ObjectTreeAdapter

public ObjectTreeAdapter(java.lang.Object object)
Constructor

Method Detail

getNode

public TreeNodeInterface getNode()
Description copied from interface: TreeNodePointerInterface
Return node

Specified by:
getNode in interface TreeNodePointerInterface

hasChildren

public boolean hasChildren()
Description copied from interface: TreeNodePointerInterface
Return true is node has children

Specified by:
hasChildren in interface TreeNodePointerInterface

childIterator

public ChildIterator childIterator()
Description copied from interface: TreeNodePointerInterface
Return an iterator to iterate over the children.

Specified by:
childIterator in interface TreeNodePointerInterface

getChildren

protected TreeAdapterNode[] getChildren()
Description copied from class: TreeAdapterNode
Get array containing the children of the node.

Overrides:
getChildren in class TreeAdapterNode

clone

public java.lang.Object clone()
Description copied from interface: TreeNodePointerInterface
Clone the pointer

Specified by:
clone in interface TreeNodePointerInterface
Overrides:
clone in class java.lang.Object

field

public java.lang.String field()

value

public java.lang.String value()

toString

public java.lang.String toString()
Description copied from class: TreeAdapterNode
Return string representation of node.

Overrides:
toString in class TreeAdapterNode