hudson.plugins.pmd.util
Class PackageDetail

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

public class PackageDetail
extends AbstractAnnotationsDetail

Result object to visualize the package statistics of a module.

See Also:
Serialized Form

Constructor Summary
PackageDetail(hudson.model.AbstractBuild<?,?> owner, JavaPackage javaPackage, java.lang.String header)
          Creates a new instance of ModuleDetail.
 
Method Summary
 java.lang.String getDisplayName()
          
 java.util.Collection<WorkspaceFile> getFiles()
          Gets the files of this module that have annotations.
 java.lang.String getHeader()
          Returns the header for the detail screen.
 JavaPackage getPackage()
          Returns the maven module.
 
Methods inherited from class hudson.plugins.pmd.util.AbstractAnnotationsDetail
createDetailGraph, getDynamic, getDynamic, getLocalizedPriority, getOwner, getPriorities, getTitle, isCurrent
 
Methods inherited from class hudson.plugins.pmd.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, annotationAdded, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackageCategoryName, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildPriorities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageDetail

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

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

getHeader

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

Returns:
the header

getDisplayName

public java.lang.String getDisplayName()


getPackage

public JavaPackage getPackage()
Returns the maven module.

Returns:
the maven module

getFiles

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

Returns:
the files with annotations


Copyright © 2008. All Rights Reserved.