net.sf.jlayercheck.util.modeltree
Class DefaultModuleNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by net.sf.jlayercheck.util.modeltree.DefaultModuleNode
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ModuleNode>, MutableTreeNode, TreeNode, ModuleNode, NamedTreeNode
Direct Known Subclasses:
DependentModuleNode

public class DefaultModuleNode
extends DefaultMutableTreeNode
implements ModuleNode

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

Field Summary
protected  String moduleName
           
protected  boolean unassignedModule
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultModuleNode(String moduleName)
           
DefaultModuleNode(String moduleName2, boolean unassignedModule2)
           
 
Method Summary
 void add(PackageNode packagenode)
          Adds the given package node as child.
 int compareTo(ModuleNode o)
           
 String getModuleName()
          Returns the name of this module.
 String getName()
           
 PackageNode getPackage(String packagename)
          Searches for the PackageNode with the given name.
 Vector<PackageNode> getPackages()
           
 boolean isLeaf()
           
 boolean isUnassignedModule()
          Returns true if this module is the "unassigned" module for excluded classes.
 void setUnassignedModule(boolean unassignedModule)
           
 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, 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
 

Field Detail

moduleName

protected String moduleName

unassignedModule

protected boolean unassignedModule
Constructor Detail

DefaultModuleNode

public DefaultModuleNode(String moduleName)

DefaultModuleNode

public DefaultModuleNode(String moduleName2,
                         boolean unassignedModule2)
Method Detail

getPackages

public Vector<PackageNode> getPackages()
Specified by:
getPackages in interface ModuleNode

getModuleName

public String getModuleName()
Returns the name of this module.

Specified by:
getModuleName in interface ModuleNode
Returns:
modulename

add

public void add(PackageNode packagenode)
Adds the given package node as child.

Specified by:
add in interface ModuleNode

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode
Overrides:
isLeaf in class DefaultMutableTreeNode

getName

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

getPackage

public PackageNode getPackage(String packagename)
Searches for the PackageNode with the given name.

Specified by:
getPackage in interface ModuleNode
Parameters:
packagename -
Returns:

compareTo

public int compareTo(ModuleNode o)
Specified by:
compareTo in interface Comparable<ModuleNode>

isUnassignedModule

public boolean isUnassignedModule()
Returns true if this module is the "unassigned" module for excluded classes.

Specified by:
isUnassignedModule in interface ModuleNode

setUnassignedModule

public void setUnassignedModule(boolean unassignedModule)


Copyright © 2007. All Rights Reserved.