org.shiftone.jrat.provider.tree.ui.hierarchy.nodes
Class PackageHierarchyNode

java.lang.Object
  extended by org.shiftone.jrat.provider.tree.ui.hierarchy.nodes.HierarchyNode
      extended by org.shiftone.jrat.provider.tree.ui.hierarchy.nodes.PackageHierarchyNode

public class PackageHierarchyNode
extends HierarchyNode

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
PackageHierarchyNode(java.lang.String name, MethodSummaryModel methodSummaryModel)
           
 
Method Summary
 void addClass(ClassHierarchyNode classNode)
           
 void addPackage(PackageHierarchyNode packageNode)
           
 void finalizeStatistics()
           
 ClassHierarchyNode getChildClass(java.lang.String name)
          Retreves the child class with the provided name or creates it if it does not exist.
 PackageHierarchyNode getChildPackage(java.lang.String name)
          Retreves the child package with the provided name or creates it if it does not exist.
 PackageHierarchyNode getChildPackage(java.lang.String[] nameParts)
           
 java.util.List getChildren()
           
 int getExecutedMethods()
           
 long getTotalDuration()
           
 long getTotalErrors()
           
 long getTotalExits()
           
 java.lang.Long getTotalMethodDuration()
           
 int getTotalMethods()
           
 
Methods inherited from class org.shiftone.jrat.provider.tree.ui.hierarchy.nodes.HierarchyNode
getChild, getChildCount, getCoverage, getErrorRate, getIndexOfChild, getMethodSummaryModel, getName, getTotalMethodPercent, getUncalledMethods, isLeaf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackageHierarchyNode

public PackageHierarchyNode(java.lang.String name,
                            MethodSummaryModel methodSummaryModel)
Method Detail

finalizeStatistics

public void finalizeStatistics()
Specified by:
finalizeStatistics in class HierarchyNode

getTotalMethodDuration

public java.lang.Long getTotalMethodDuration()
Specified by:
getTotalMethodDuration in class HierarchyNode

getTotalMethods

public int getTotalMethods()
Specified by:
getTotalMethods in class HierarchyNode

getExecutedMethods

public int getExecutedMethods()
Specified by:
getExecutedMethods in class HierarchyNode

getTotalDuration

public long getTotalDuration()
Specified by:
getTotalDuration in class HierarchyNode

getTotalExits

public long getTotalExits()
Specified by:
getTotalExits in class HierarchyNode

getTotalErrors

public long getTotalErrors()
Specified by:
getTotalErrors in class HierarchyNode

getChildren

public java.util.List getChildren()
Specified by:
getChildren in class HierarchyNode

addClass

public void addClass(ClassHierarchyNode classNode)

addPackage

public void addPackage(PackageHierarchyNode packageNode)

getChildPackage

public PackageHierarchyNode getChildPackage(java.lang.String name)
Retreves the child package with the provided name or creates it if it does not exist.


getChildPackage

public PackageHierarchyNode getChildPackage(java.lang.String[] nameParts)

getChildClass

public ClassHierarchyNode getChildClass(java.lang.String name)
Retreves the child class with the provided name or creates it if it does not exist.