org.gmetrics.resultsnode
Class PackageResultsNode

java.lang.Object
  extended by org.gmetrics.resultsnode.PackageResultsNode
All Implemented Interfaces:
groovy.lang.GroovyObject, ResultsNode

public class PackageResultsNode
extends java.lang.Object
implements groovy.lang.GroovyObject, ResultsNode

Represents a package node in the hierarchy of metric result nodes

Version:
$Revision: 24 $ - $Date: 2009-12-10 21:17:05 -0500 (Thu, 10 Dec 2009) $
Author:
Chris Mair

Constructor Summary
PackageResultsNode()
           
 
Method Summary
 void addChild(java.lang.String name, ResultsNode child)
           
 void addChildIfNotEmpty(java.lang.String name, ResultsNode child)
           
 void applyMetric(Metric metric)
           
 boolean containsClassResults()
           
 java.util.Map getChildren()
           
 MetricLevel getLevel()
           
 groovy.lang.MetaClass getMetaClass()
           
 MetricResult getMetricResult(Metric metric)
           
 java.util.List getMetricResults()
           
 java.lang.String getPath()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setPath(java.lang.String value)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackageResultsNode

public PackageResultsNode()
Method Detail

getLevel

public final MetricLevel getLevel()
Specified by:
getLevel in interface ResultsNode

getChildren

public final java.util.Map getChildren()
Specified by:
getChildren in interface ResultsNode

getMetricResults

public final java.util.List getMetricResults()
Specified by:
getMetricResults in interface ResultsNode

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String value)

containsClassResults

public boolean containsClassResults()
Specified by:
containsClassResults in interface ResultsNode

getMetricResult

public MetricResult getMetricResult(Metric metric)
Specified by:
getMetricResult in interface ResultsNode

addChildIfNotEmpty

public void addChildIfNotEmpty(java.lang.String name,
                               ResultsNode child)

addChild

public void addChild(java.lang.String name,
                     ResultsNode child)

applyMetric

public void applyMetric(Metric metric)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2010. All Rights Reserved.