public class EfferentNode extends PackageNode
EfferentNode
class is a PackageNode
for an
efferent Java package and its efferent packages.Constructor and Description |
---|
EfferentNode(PackageNode parent,
JavaPackage jPackage)
Constructs an
EfferentNode with the specified parent node
and efferent Java package. |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection |
getCoupledPackages()
Returns the collection of Java packages coupled to the package
represented in this node.
|
boolean |
isChild(JavaPackage jPackage)
Indicates whether the specified package should be displayed as a child of
this node.
|
protected PackageNode |
makeNode(PackageNode parent,
JavaPackage jPackage)
Creates and returns a
PackageNode with the specified
parent node and Java package. |
java.lang.String |
toString()
Returns the string representation of this node in it's current tree
context.
|
getChildren, getPackage, getParent, isLeaf, toMetricsString
public EfferentNode(PackageNode parent, JavaPackage jPackage)
EfferentNode
with the specified parent node
and efferent Java package.parent
- Parent package node.jPackage
- Efferent Java package.protected PackageNode makeNode(PackageNode parent, JavaPackage jPackage)
PackageNode
with the specified
parent node and Java package.makeNode
in class PackageNode
parent
- Parent package node.jPackage
- Java package.PackageNode
protected java.util.Collection getCoupledPackages()
getCoupledPackages
in class PackageNode
public boolean isChild(JavaPackage jPackage)
Efferent packages without classes are never shown at the root level to exclude non-analyzed packages.
isChild
in class PackageNode
jPackage
- Package to test.true
to display the package; false
otherwise.public java.lang.String toString()
toString
in class PackageNode
Copyright ? 1999-2005 Clarkware Consulting, Inc.