hudson.plugins.covcomplplot
Class CovComplPlotMethods

java.lang.Object
  extended by hudson.plugins.covcomplplot.CovComplPlotMethods
All Implemented Interfaces:
Serializable

public class CovComplPlotMethods
extends Object
implements Serializable

Class containing coverage and complexity methods in the given value range and corresponding paging. This class handles detailed list of methods.

Author:
JunHo Yoon
See Also:
Serialized Form

Field Summary
 int compl
          Complexity lower bound value
 int cov
          Coverage lower bound value
 
Constructor Summary
CovComplPlotMethods(hudson.model.AbstractBuild<?,?> owner, List<MethodInfo> methodInfoList, Analyzer analyzer, int cov, int compl, int page, int totalCount)
          Constructor for detailed level information holder
 
Method Summary
 List<MethodInfo> getMethodInfoList()
          Get MethodInfo list contained this object
 String getMethodUrl(MethodInfo methodInfo)
          Return the Jenkins URL in which the source code is viewed.
 hudson.model.AbstractBuild<?,?> getOwner()
          Get the AbstractBuild instance which owns this information.
 Pagination getPagination()
          Get pagination object so that jelly can render the pagination.
 String getTitle()
          Get the title shown in the detailed method list page.
 int getTotalCount()
          Get total item count
 void setOwner(hudson.model.AbstractBuild<?,?> owner)
          Set AbstractBuild which owns this build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cov

public final int cov
Coverage lower bound value


compl

public final int compl
Complexity lower bound value

Constructor Detail

CovComplPlotMethods

public CovComplPlotMethods(hudson.model.AbstractBuild<?,?> owner,
                           List<MethodInfo> methodInfoList,
                           Analyzer analyzer,
                           int cov,
                           int compl,
                           int page,
                           int totalCount)
Constructor for detailed level information holder

Parameters:
owner - AbstractBuild owning this instance.
methodInfoList - MethodInfo list
cov - coverage lower bound value
compl - complexity lower bound value
Method Detail

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Get the AbstractBuild instance which owns this information.

Returns:
build object

getTitle

public String getTitle()
Get the title shown in the detailed method list page.

Returns:
title string

getMethodUrl

public String getMethodUrl(MethodInfo methodInfo)
Return the Jenkins URL in which the source code is viewed.

Parameters:
methodInfo - MethodInfo instance to be resolved
Returns:
Source code URL

getPagination

public Pagination getPagination()
Get pagination object so that jelly can render the pagination.

Returns:
Pagination instance

setOwner

public void setOwner(hudson.model.AbstractBuild<?,?> owner)
Set AbstractBuild which owns this build

Parameters:
owner - AbstractBuild

getMethodInfoList

public List<MethodInfo> getMethodInfoList()
Get MethodInfo list contained this object

Returns:
MethodInfo list

getTotalCount

public int getTotalCount()
Get total item count

Returns:
total item count


Copyright © 2004-2011. All Rights Reserved.