org.expasy.jpl.commons.collection.tree
Interface TreeNode<T>

Type Parameters:
T - the node type.
All Superinterfaces:
Serializable, TreeView<T>
All Known Implementing Classes:
TreeNodeImpl

public interface TreeNode<T>
extends TreeView<T>, Serializable

A TreeNode interface should be implemented by any tree like structured node.

Version:
1.0
Author:
nikitin

Method Summary
 void addChild(TreeNode<T> child)
          Add the given child to the node.
 void setData(T data)
          Set the data to this node.
 void setParent(TreeNode<T> parent)
          Set the parent node.
 
Methods inherited from interface org.expasy.jpl.commons.collection.tree.TreeView
getChildAt, getChildren, getData, getLeaves, getNodes, getNumberOfChildren, getParent, isLeave, isRoot
 

Method Detail

setParent

void setParent(TreeNode<T> parent)
Set the parent node.


addChild

void addChild(TreeNode<T> child)
Add the given child to the node.


setData

void setData(T data)
Set the data to this node.



Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.