com.unitesk.atp.tree
Class TreeClass
java.lang.Object
com.unitesk.atp.tree.TreeClass
- All Implemented Interfaces:
- Tree, Serializable
- Direct Known Subclasses:
- Tree
public class TreeClass
- extends Object
- implements Tree, Serializable
Attributed Tree.
- Version:
- $Id: TreeClass.java,v 1.14 2005/10/08 05:28:39 all-x Exp $
- Author:
- Alexey Demakov
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected File file
root
protected Node root
TreeClass
public TreeClass()
getFile
public File getFile()
- Returns source file for this tree or
null if tree was build not from file.
- Specified by:
getFile
in interface Tree
setFile
public void setFile(File file)
- Specified by:
setFile
in interface Tree
getRootNode
public Node getRootNode()
- Returns root of this tree.
- Specified by:
getRootNode
in interface Tree
- Returns:
- root node or null if it was not set
setRootNode
public void setRootNode(Node root)
- Sets root node of this tree.
- Specified by:
setRootNode
in interface Tree
- Parameters:
root
- Root node
- Throws:
NullPointerException
- if root is null
Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.