hudson.plugins.findbugs
Class AbstractWarningsDetail

java.lang.Object
  extended by hudson.plugins.findbugs.util.model.AnnotationContainer
      extended by hudson.plugins.findbugs.AbstractWarningsDetail
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable
Direct Known Subclasses:
FixedWarningsDetail, ModuleDetail, NewWarningsDetail, PackageDetail

public abstract class AbstractWarningsDetail
extends AnnotationContainer
implements hudson.model.ModelObject

Base class for warning detail objects.

See Also:
Serialized Form

Constructor Summary
AbstractWarningsDetail(hudson.model.AbstractBuild<?,?> owner, java.util.Collection<FileAnnotation> annotations)
          Creates a new instance of AbstractWarningsDetail.
 
Method Summary
protected  void createDetailGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, AnnotationProvider detailObject, int upperBound)
          Creates a detail graph for the specified detail object.
 hudson.model.AbstractBuild<?,?> getOwner()
          Returns the build as owner of this action.
 boolean isCurrent()
          Returns whether this result belongs to the last build.
 
Methods inherited from class hudson.plugins.findbugs.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, annotationAdded, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildPriorities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.ModelObject
getDisplayName
 

Constructor Detail

AbstractWarningsDetail

public AbstractWarningsDetail(hudson.model.AbstractBuild<?,?> owner,
                              java.util.Collection<FileAnnotation> annotations)
Creates a new instance of AbstractWarningsDetail.

Parameters:
owner - current build as owner of this action.
annotations - the set of warnings represented by this object
Method Detail

getOwner

public final hudson.model.AbstractBuild<?,?> getOwner()
Returns the build as owner of this action.

Returns:
the owner

isCurrent

public final boolean isCurrent()
Returns whether this result belongs to the last build.

Returns:
true if this result belongs to the last build

createDetailGraph

protected final void createDetailGraph(org.kohsuke.stapler.StaplerRequest request,
                                       org.kohsuke.stapler.StaplerResponse response,
                                       AnnotationProvider detailObject,
                                       int upperBound)
                                throws java.io.IOException
Creates a detail graph for the specified detail object.

Parameters:
request - Stapler request
response - Stapler response
detailObject - the detail object to compute the graph for
upperBound - the upper bound of all tasks
Throws:
java.io.IOException - in case of an error


Copyright © 2008. All Rights Reserved.