com.unitesk.atp.tree
Class TreeClass

java.lang.Object
  extended by 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

Nested Class Summary
static class TreeClass.EnumClass
          Abstract base class for translation of TreeDL enumeration types.
static class TreeClass.NodeClass
          The default implementation of Node interface.
 
Field Summary
protected  File file
           
protected  Node root
           
 
Constructor Summary
TreeClass()
           
 
Method Summary
 File getFile()
          Returns source file for this tree or null if tree was build not from file.
 Node getRootNode()
          Returns root of this tree.
 void setFile(File file)
           
 void setRootNode(Node root)
          Sets root node of this tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected File file

root

protected Node root
Constructor Detail

TreeClass

public TreeClass()
Method Detail

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.