edu.stanford.smi.protege.util
Class Tree<X>
java.lang.Object
edu.stanford.smi.protege.util.Tree<X>
- All Implemented Interfaces:
- Cloneable
public class Tree<X>
- extends Object
- implements Cloneable
A utility class that maintains a tree. Why isn't something like this in java.util?
- Author:
- Ray Fergerson
Tree
public Tree(X root)
Tree
public Tree()
clone
public Tree<X> clone()
- Overrides:
clone
in class Object
setRoot
public void setRoot(X root)
swapNode
public void swapNode(X oldNode,
X newNode)
getRoot
public X getRoot()
isReachable
public boolean isReachable(X node)
addChild
public void addChild(X parent,
X child)
removeChild
public void removeChild(X parent,
X child)
removeNode
public void removeNode(X node)
getChildren
public Set<X> getChildren(X parent)
getNodeAndDescendents
public Set<X> getNodeAndDescendents(X parent)
getDescendents
public Set<X> getDescendents(X parent)
getNodes
public Set<X> getNodes()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.