net.sf.jlayercheck.util.modeltree
Class DefaultClassNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by net.sf.jlayercheck.util.modeltree.DefaultClassNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, ClassNode, NamedTreeNode
Direct Known Subclasses:
DependentClassNode

public class DefaultClassNode
extends DefaultMutableTreeNode
implements ClassNode

Author:
webmaster@earth3d.org
See Also:
ClassNode, Serialized Form

Field Summary
protected  Set<ClassDependency> classDependencies
           
protected  String classname
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultClassNode(String classname)
           
 
Method Summary
 void addClassDependency(ClassDependency cd)
          Adds a dependency to another class.
 Set<ClassDependency> getClassDependencies()
          Returns all dependencies of this class.
 String getClassname()
           
 String getName()
           
 String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Field Detail

classname

protected String classname

classDependencies

protected Set<ClassDependency> classDependencies
Constructor Detail

DefaultClassNode

public DefaultClassNode(String classname)
Method Detail

getClassname

public String getClassname()

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode

getName

public String getName()
Specified by:
getName in interface NamedTreeNode

addClassDependency

public void addClassDependency(ClassDependency cd)
Description copied from interface: ClassNode
Adds a dependency to another class.

Specified by:
addClassDependency in interface ClassNode

getClassDependencies

public Set<ClassDependency> getClassDependencies()
Description copied from interface: ClassNode
Returns all dependencies of this class.

Specified by:
getClassDependencies in interface ClassNode
Returns:


Copyright © 2007. All Rights Reserved.