net.sf.jlayercheck.util.modeltree
Class DefaultModuleNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
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
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 |
moduleName
protected String moduleName
unassignedModule
protected boolean unassignedModule
DefaultModuleNode
public DefaultModuleNode(String moduleName)
DefaultModuleNode
public DefaultModuleNode(String moduleName2,
boolean unassignedModule2)
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.