|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.FindBugsResult
public class FindBugsResult
Represents the results of the FindBugs analysis. One instance of this class is persisted for each build via an XML file.
| Constructor Summary | |
|---|---|
FindBugsResult(hudson.model.AbstractBuild<?,?> build,
JavaProject project)
Creates a new instance of FindBugsResult. |
|
FindBugsResult(hudson.model.AbstractBuild<?,?> build,
JavaProject project,
JavaProject previousProject,
long highScore)
Creates a new instance of FindBugsResult. |
|
| Method Summary | |
|---|---|
void |
doModuleStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of a maven module. |
void |
doPackageStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of a Java package. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations of this project. |
int |
getDelta()
Returns the delta. |
java.lang.String |
getDetails()
Returns the detail messages for the summary.jelly file. |
java.lang.String |
getDisplayName()
|
java.lang.Object |
getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the dynamic result of the FindBugs analysis (a detail page for a module, package or warnings file or a detail object for new or fixed warnings). |
java.util.Set<FileAnnotation> |
getFixedWarnings()
Returns the fixed warnings of this build. |
java.util.Collection<MavenModule> |
getModules()
Returns the modules of this project. |
java.util.Set<FileAnnotation> |
getNewWarnings()
Returns the new warnings of this build. |
int |
getNumberOfAnnotations()
Gets the number of warnings. |
int |
getNumberOfAnnotations(Priority priority)
Returns the total number of warnings of the specified priority for this object. |
int |
getNumberOfAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
int |
getNumberOfFixedWarnings()
Gets the number of fixed warnings. |
int |
getNumberOfModules()
Returns the number of modules in this project. |
int |
getNumberOfNewWarnings()
Gets the number of new warnings. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the build as owner of this action. |
java.util.Collection<JavaPackage> |
getPackages()
Returns the packages of this project. |
int |
getPreviousNumberOfWarnings(java.lang.String packageName)
Returns the number of warnings of the specified package in the previous build. |
JavaProject |
getPreviousResult()
Returns the results of the previous build. |
Priority[] |
getPriorities()
Returns all possible priorities. |
JavaProject |
getProject()
Returns the associated project of this result. |
java.lang.String |
getSummary()
Returns a summary message for the summary.jelly file. |
java.lang.String |
getToolTip(java.lang.String name)
Returns a tooltip showing the distribution of priorities for the selected package. |
long |
getZeroWarningsHighScore()
Returns the maximum period with zero warnings in a build. |
int |
getZeroWarningsSinceBuild()
Returns the build since we have zero warnings. |
long |
getZeroWarningsSinceDate()
Returns the time since we have zero warnings. |
boolean |
hasAnnotations()
Returns whether we have annotations in this project. |
boolean |
hasError()
Returns whether a module with an error is part of this project. |
boolean |
hasPreviousResult()
Returns whether a previous build result exists. |
boolean |
isCurrent()
Returns whether this result belongs to the last build. |
boolean |
isSingleModuleProject()
Returns whether this project contains just one maven module. |
boolean |
isSinglePackageProject()
Returns whether we only have a single package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FindBugsResult(hudson.model.AbstractBuild<?,?> build,
JavaProject project)
FindBugsResult.
build - the current build as owner of this actionproject - the parsed FindBugs result
public FindBugsResult(hudson.model.AbstractBuild<?,?> build,
JavaProject project,
JavaProject previousProject,
long highScore)
FindBugsResult.
build - the current build as owner of this actionproject - the parsed FindBugs resultpreviousProject - the parsed FindBugs result of the previous buildhighScore - the maximum period with zero warnings in a build| Method Detail |
|---|
public java.lang.String getSummary()
public java.lang.String getDetails()
public final boolean isCurrent()
true if this result belongs to the last buildpublic final hudson.model.AbstractBuild<?,?> getOwner()
public boolean hasError()
true if at least one module has an error.public int getNumberOfModules()
public int getZeroWarningsSinceBuild()
public long getZeroWarningsSinceDate()
public long getZeroWarningsHighScore()
public java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic int getNumberOfAnnotations()
public int getNumberOfAnnotations(Priority priority)
priority - the priority
public final boolean hasAnnotations()
true if we have annotations in this projectpublic java.util.Collection<FileAnnotation> getAnnotations()
public int getNumberOfAnnotations(java.lang.String priority)
priority - the priority as a string object
public int getNumberOfFixedWarnings()
public int getNumberOfNewWarnings()
public int getDelta()
public JavaProject getProject()
public java.util.Set<FileAnnotation> getNewWarnings()
public java.util.Set<FileAnnotation> getFixedWarnings()
public java.lang.Object getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
link - the link to identify the sub page to showrequest - Stapler requestresponse - Stapler response
public java.util.Collection<JavaPackage> getPackages()
public java.util.Collection<MavenModule> getModules()
public boolean isSingleModuleProject()
true if this project contains just one maven
modulepublic boolean isSinglePackageProject()
true for single module projectspublic int getPreviousNumberOfWarnings(java.lang.String packageName)
packageName - the package to return the warnings for
public JavaProject getPreviousResult()
null if no
such build existspublic boolean hasPreviousResult()
true if a previous build result exists.
public final void doModuleStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error
public final void doPackageStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an errorpublic java.lang.String getToolTip(java.lang.String name)
name - the package to show the distribution for
public Priority[] getPriorities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||