Class AfferentNode


  • public class AfferentNode
    extends PackageNode
    The AfferentNode class is a PackageNode for an afferent Java package and its afferent packages.
    Author:
    Mike Clark, Clarkware Consulting, Inc.
    • Constructor Detail

      • AfferentNode

        public AfferentNode​(PackageNode parent,
                            JavaPackage jPackage)
        Constructs an AfferentNode with the specified parent node and afferent Java package.
        Parameters:
        parent - Parent package node.
        jPackage - Afferent Java package.
    • Method Detail

      • makeNode

        protected PackageNode makeNode​(PackageNode parent,
                                       JavaPackage jPackage)
        Creates and returns a PackageNode with the specified parent node and Java package.
        Specified by:
        makeNode in class PackageNode
        Parameters:
        parent - Parent package node.
        jPackage - Java package.
        Returns:
        A non-null PackageNode
      • getCoupledPackages

        protected java.util.Collection getCoupledPackages()
        Returns the collection of Java packages coupled to the package represented in this node.
        Specified by:
        getCoupledPackages in class PackageNode
        Returns:
        Collection of coupled packages.
      • toString

        public java.lang.String toString()
        Returns the string representation of this node in it's current tree context.
        Overrides:
        toString in class PackageNode
        Returns:
        Node label.