hudson.plugins.findbugs.util
Class ModuleDetail

java.lang.Object
  extended by hudson.plugins.findbugs.util.model.AnnotationContainer
      extended by hudson.plugins.findbugs.util.AbstractAnnotationsDetail
          extended by hudson.plugins.findbugs.util.ModuleDetail
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable

public class ModuleDetail
extends AbstractAnnotationsDetail

Result object to visualize the package statistics of a module.

Author:
Ulli Hafner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.findbugs.util.model.AnnotationContainer
AnnotationContainer.Hierarchy
 
Constructor Summary
ModuleDetail(hudson.model.AbstractBuild<?,?> owner, MavenModule module, java.lang.String header)
          Creates a new instance of ModuleDetail.
 
Method Summary
protected  java.util.Collection<? extends AnnotationContainer> getChildren()
          Returns the children containers of this container.
 java.lang.String getDisplayName()
          
 hudson.model.ModelObject getDynamic(java.lang.String link)
          Returns a package detail object if there are more packages available.
 WorkspaceFile getFile(java.lang.String fileName)
          Gets the file with the given name.
 java.util.Collection<WorkspaceFile> getFiles()
          Gets the files of this container that have annotations.
 java.lang.String getHeader()
          Returns the header for the detail screen.
 MavenModule getModule()
          Returns the maven module.
 java.util.Collection<JavaPackage> getPackages()
          Returns the packages of this module.
 java.lang.String getToolTip(java.lang.String packageName)
          Returns a tooltip showing the distribution of priorities for the selected package.
 boolean isSinglePackageModule()
          Returns whether this module contains just one Java package.
 
Methods inherited from class hudson.plugins.findbugs.util.AbstractAnnotationsDetail
createDetailGraph, doModuleStatistics, doPackageStatistics, getDynamic, getLocalizedPriority, getOwner, getPriorities, isCurrent, isSingleModuleProject, isSinglePackageProject
 
Methods inherited from class hudson.plugins.findbugs.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, containsFile, containsModule, containsPackage, getAnnotation, getAnnotation, getAnnotationBound, getAnnotations, getAnnotations, getAnnotations, getModule, getModules, getName, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackage, getPackageCategoryName, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleDetail

public ModuleDetail(hudson.model.AbstractBuild<?,?> owner,
                    MavenModule module,
                    java.lang.String header)
Creates a new instance of ModuleDetail.

Parameters:
owner - current build as owner of this action.
module - the module to show the details for
header - header to be shown on detail page
Method Detail

getDisplayName

public java.lang.String getDisplayName()


getHeader

public java.lang.String getHeader()
Returns the header for the detail screen.

Returns:
the header

getModule

public MavenModule getModule()
Returns the maven module.

Returns:
the maven module

getPackages

public java.util.Collection<JavaPackage> getPackages()
Returns the packages of this module.

Overrides:
getPackages in class AnnotationContainer
Returns:
the packages of this module

isSinglePackageModule

public boolean isSinglePackageModule()
Returns whether this module contains just one Java package. In this case we show the warnings statistics instead of package statistics.

Returns:
true if this project contains just one Java package

getDynamic

public hudson.model.ModelObject getDynamic(java.lang.String link)
Returns a package detail object if there are more packages available. Otherwise a null value is returned.

Overrides:
getDynamic in class AbstractAnnotationsDetail
Parameters:
link - the link to identify the sub page to show
Returns:
the dynamic result of this module detail view

getToolTip

public java.lang.String getToolTip(java.lang.String packageName)
Returns a tooltip showing the distribution of priorities for the selected package.

Parameters:
packageName - the package to show the distribution for
Returns:
a tooltip showing the distribution of priorities

getFiles

public java.util.Collection<WorkspaceFile> getFiles()
Gets the files of this container that have annotations.

Overrides:
getFiles in class AnnotationContainer
Returns:
the files with annotations

getFile

public WorkspaceFile getFile(java.lang.String fileName)
Gets the file with the given name.

Overrides:
getFile in class AnnotationContainer
Parameters:
fileName - the short name of the file
Returns:
the file with the given name

getChildren

protected java.util.Collection<? extends AnnotationContainer> getChildren()
Returns the children containers of this container. If we are already at the leaf level, then an empty collection is returned.

Specified by:
getChildren in class AnnotationContainer
Returns:
the children containers of this container.


Copyright © 2008. All Rights Reserved.