PSE 2000 Group 4

jobmatch.business.company.profile.tree
Class AbstractNode

java.lang.Object
  |
  +--jobmatch.business.company.profile.tree.AbstractNode
Direct Known Subclasses:
LeafSupport, MemoryNode

abstract class AbstractNode
extends Object
implements TreeNode, Cloneable, Serializable

Common behaviour for Nodes

Since:
May 16 2000
Version:
$Revision: 1.3 $
See Also:
Serialized Form

Constructor Summary
protected AbstractNode(MatchTree tree, TreeNode parent)
           
 
Method Summary
 void and(TreeNode other)
           
 Object clone()
           
 boolean equals(Object other)
           
 String getDescription()
           
 TreeNode getParent()
           
 MatchTree getTree()
           
 void not()
           
 void or(TreeNode other)
           
protected static boolean semanticEquality(AbstractNode a, AbstractNode b)
           
 void setParent(TreeNode parent)
           
 void setTree(MatchTree tree)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractNode

protected AbstractNode(MatchTree tree,
                       TreeNode parent)
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface TreeNode

getTree

public MatchTree getTree()
Specified by:
getTree in interface TreeNode

setTree

public void setTree(MatchTree tree)
Specified by:
setTree in interface TreeNode

getParent

public TreeNode getParent()
Specified by:
getParent in interface TreeNode

setParent

public void setParent(TreeNode parent)
Specified by:
setParent in interface TreeNode

and

public void and(TreeNode other)
Specified by:
and in interface TreeNode

or

public void or(TreeNode other)
Specified by:
or in interface TreeNode

not

public void not()
Specified by:
not in interface TreeNode

equals

public boolean equals(Object other)
Overrides:
equals in class Object
See Also:
Object.equals

semanticEquality

protected static boolean semanticEquality(AbstractNode a,
                                          AbstractNode b)
Returns:
true if a is considered the same as b

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString

clone

public Object clone()
Overrides:
clone in class Object
See Also:
Object.clone

PSE 2000 Group 4