|
||||||||||
| 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 |
doStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of the specified object. |
FileAnnotation |
getAnnotation(long key)
Returns the annotation with the specified key. |
FileAnnotation |
getAnnotation(java.lang.String key)
Returns the annotation with the specified key. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(Priority priority)
Returns the annotations of the specified priority for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
AnnotationContainer |
getContainer()
|
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. |
MavenModule |
getModule(java.lang.String name)
Returns the module with the specified name. |
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. |
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. |
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 this objects has annotations. |
boolean |
hasAnnotations(Priority priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasAnnotations(java.lang.String priority)
Returns whether this objects has annotations with the specified priority. |
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. |
| 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()
getNumberOfAnnotations in interface AnnotationProviderpublic int getNumberOfAnnotations(Priority priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority
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 AnnotationContainer getContainer()
public MavenModule getModule(java.lang.String name)
name - the module to get
public java.util.Collection<MavenModule> getModules()
public 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 doStatistics(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 Priority[] getPriorities()
public FileAnnotation getAnnotation(long key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation
public FileAnnotation getAnnotation(java.lang.String key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation as a long value in string representation
public java.util.Collection<FileAnnotation> getAnnotations(Priority priority)
getAnnotations in interface AnnotationProviderpriority - the priority
public java.util.Collection<FileAnnotation> getAnnotations(java.lang.String priority)
getAnnotations in interface AnnotationProviderpriority - the priority as a string object
public boolean hasAnnotations(Priority priority)
hasAnnotations in interface AnnotationProviderpriority - the priority
true if this objects has annotations.public boolean hasAnnotations(java.lang.String priority)
hasAnnotations in interface AnnotationProviderpriority - the priority as a string object
true if this objects has annotations.public final boolean hasAnnotations()
hasAnnotations in interface AnnotationProvidertrue if this objects has annotations.public java.util.Collection<FileAnnotation> getAnnotations()
getAnnotations in interface AnnotationProviderpublic int getNumberOfAnnotations(java.lang.String priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority as a string object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||