|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcyvis.core.metrics.ProjectMetric
public class ProjectMetric
This class stores a list of class's metrics. An instance of this class will hold the metrics for all the classes.
| Constructor Summary | |
|---|---|
ProjectMetric()
|
|
| Method Summary | |
|---|---|
void |
add(ClassMetric classmetric)
Adds a new Classmetric object to the project |
int |
classCount()
Returns the number of classes in this project. |
boolean |
contains(String packageName)
Checks if the project contains a particular package |
void |
generateHTML(Writer out,
StreamSource xsl)
Generates an HTML report of this project's metrics. |
void |
generateText(Writer out)
Generates a plain-text report of this project's metrics. |
String |
generateXML()
Generates an XML report of this project's metrics. |
ClassMetric |
getClassMetric(String packageName,
String className)
Finds and returns an ClassMetric Object given the package & class names. |
PackageMetric |
getPackageMetric(String packageName)
returns a package with the given name |
List<PackageMetric> |
getPackages()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectMetric()
| Method Detail |
|---|
public void add(ClassMetric classmetric)
classmetric - the class to be added
public ClassMetric getClassMetric(String packageName,
String className)
packageName - the name of the package in which to find.className - the name of the class to find.
public int classCount()
public boolean contains(String packageName)
packageName - the package name
public List<PackageMetric> getPackages()
public PackageMetric getPackageMetric(String packageName)
packageName - the package name
public void generateText(Writer out)
throws IOException
out - Writer to which the report is written
IOExceptionpublic String generateXML()
public void generateHTML(Writer out,
StreamSource xsl)
throws TransformerConfigurationException,
TransformerException
generateXML()) transformed
by the given XML stylesheet.
out - Writer to which the generated HTML is writtenxsl - XML stylesheet for transforming the XML to HTML
TransformerConfigurationException
TransformerExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||