com.thalesgroup.hudson.plugins.cppcheck
Class CppcheckResult

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.cppcheck.CppcheckResult
All Implemented Interfaces:
java.io.Serializable

@ExportedBean
public class CppcheckResult
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CppcheckResult(CppcheckReport report, CppcheckSourceContainer cppcheckSourceContainer, hudson.model.AbstractBuild<?,?> owner)
           
 
Method Summary
 hudson.model.Api getApi()
          Gets the remote API for the build result.
 CppcheckSourceContainer getCppcheckSourceContainer()
           
 java.lang.String getDetails()
          Renders the detailed summary Cppcheck report for the build result.
 java.lang.Object getDynamic(java.lang.String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Gets the dynamic result of the selection element.
 int getNumberErrorsAccordingConfiguration(CppcheckConfig cppecheckConfig, boolean checkNewError)
          Gets the number of errors according the selected severitiies form the configuration user object.
 int getNumberNewErrorsFromPreviousBuild()
          Returns the number of new errors from the previous build result.
 hudson.model.AbstractBuild<?,?> getOwner()
           
 CppcheckResult getPreviousResult()
          Gets the previous Cppcheck result for the build result.
 CppcheckReport getReport()
           
 java.lang.String getSummary()
          Renders the summary Cppcheck report for the build result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CppcheckResult

public CppcheckResult(CppcheckReport report,
                      CppcheckSourceContainer cppcheckSourceContainer,
                      hudson.model.AbstractBuild<?,?> owner)
Method Detail

getApi

public hudson.model.Api getApi()
Gets the remote API for the build result.

Returns:
the remote API

getReport

@Exported
public CppcheckReport getReport()

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()

getCppcheckSourceContainer

public CppcheckSourceContainer getCppcheckSourceContainer()

getDynamic

public java.lang.Object getDynamic(java.lang.String link,
                                   org.kohsuke.stapler.StaplerRequest request,
                                   org.kohsuke.stapler.StaplerResponse response)
Gets the dynamic result of the selection element.

Parameters:
link - the link to identify the sub page to show
request - Stapler request
response - Stapler response
Returns:
the dynamic result of the analysis (detail page).

getSummary

public java.lang.String getSummary()
Renders the summary Cppcheck report for the build result.

Returns:
the HTML fragment of the summary Cppcheck report

getDetails

public java.lang.String getDetails()
Renders the detailed summary Cppcheck report for the build result.

Returns:
the HTML fragment of the summary Cppcheck report

getPreviousResult

public CppcheckResult getPreviousResult()
Gets the previous Cppcheck result for the build result.

Returns:
the previous Cppcheck result

getNumberNewErrorsFromPreviousBuild

public int getNumberNewErrorsFromPreviousBuild()
Returns the number of new errors from the previous build result.

Returns:
the number of new errors

getNumberErrorsAccordingConfiguration

public int getNumberErrorsAccordingConfiguration(CppcheckConfig cppecheckConfig,
                                                 boolean checkNewError)
Gets the number of errors according the selected severitiies form the configuration user object.

Parameters:
cppecheckConfig - the Cppcheck configuration object
checkNewError - true, if the request is for the number of new errors
Returns:
the number of errors or new errors (if checkNewEroor is set to true) for the current configuration object


Copyright © 2009. All Rights Reserved.