org.argouml.ui.explorer.rules
Class AttributesNode

java.lang.Object
  extended byorg.argouml.ui.explorer.rules.AttributesNode
All Implemented Interfaces:
WeakExplorerNode

public class AttributesNode
extends Object
implements WeakExplorerNode

This class is a support class for The Navigation panel Go Rules. Don't confuse it with anything to do with GEF nodes or the like. $Revision: 1.4 $

Since:
argo 0.13.4, Created on 21 March 2003, 23:18

Field Summary
private  Object parent
           
 
Constructor Summary
AttributesNode(Object theParent)
          Creates a new instance of AttributesNode
 
Method Summary
 Object getParent()
           
 boolean subsumes(Object obj)
          This method is called by ExplorerTreeModel to check if this WeakExplorerNode subsumes another WeakExplorerNode, ie if this node should be preserved rather than adding the other node.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private Object parent
Constructor Detail

AttributesNode

public AttributesNode(Object theParent)
Creates a new instance of AttributesNode

Parameters:
theParent - the parent node
Method Detail

getParent

public Object getParent()
Returns:
the parent

toString

public String toString()
See Also:
Object.toString()

subsumes

public boolean subsumes(Object obj)
Description copied from interface: WeakExplorerNode
This method is called by ExplorerTreeModel to check if this WeakExplorerNode subsumes another WeakExplorerNode, ie if this node should be preserved rather than adding the other node.

This relation should be reflexive, so that if a is a WeakExplorerNode then a.subsumes(a) == true.

This relation should be symmetric, so that if a and b are WeakExplorerNodes and a.subsumes(b) == true then b.subsumes(a) == true.

This relation should be transitive, so that if a, b and c are WeakExplorerNodes, a.subsumes(b) == true and b.subsumes(c) == true then a.subsumes(c) == true.

Note: While this means that only other WeakExplorerNodes can be subsumed, the argument is still of Object type. This is just since there is no particular point in getting a WeakExplorerNode reference, you would either have to down-cast it further or wouldn't use it more than as an Object pointer.

Specified by:
subsumes in interface WeakExplorerNode
Parameters:
obj - another WeakExplorerNode
Returns:
true if this node subsumes obj, otherwise false.
See Also:
WeakExplorerNode.subsumes(java.lang.Object)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook