hudson.plugins.tasks
Class TasksResult

java.lang.Object
  extended by hudson.plugins.analysis.core.BuildResult
      extended by hudson.plugins.tasks.TasksResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.plugins.analysis.util.model.AnnotationProvider, Serializable
Direct Known Subclasses:
TasksMavenResult, TasksReporterResult

public class TasksResult
extends hudson.plugins.analysis.core.BuildResult

Represents the results of the task scanner. One instance of this class is persisted for each build via an XML file.

Author:
Ulli Hafner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.plugins.analysis.core.BuildResult
high, low, normal
 
Constructor Summary
  TasksResult(hudson.model.AbstractBuild<?,?> build, String defaultEncoding, TasksParserResult result, String highTags, String normalTags, String lowTags)
          Creates a new instance of TasksResult.
protected TasksResult(hudson.model.AbstractBuild<?,?> build, String defaultEncoding, TasksParserResult result, String highTags, String normalTags, String lowTags, Class<? extends hudson.plugins.analysis.core.ResultAction<TasksResult>> actionType)
          Creates a new instance of TasksResult.
 
Method Summary
protected  void configure(com.thoughtworks.xstream.XStream xstream)
           
protected  String createDeltaMessage()
           
 String getDisplayName()
          Returns the display name (bread crumb name) of this result.
 int getNumberOfFiles()
          Returns the number of scanned files in this project.
 String getPackageCategoryName()
          Returns the package category name for the scanned files.
 hudson.plugins.analysis.util.model.Priority[] getPriorities()
           
protected  Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()
           
protected  String getSerializationFileName()
           
 String getSummary()
           
 String getTags(hudson.plugins.analysis.util.model.Priority priority)
          Returns the tags for the specified priority.
 
Methods inherited from class hudson.plugins.analysis.core.BuildResult
canUseDeltaValues, createDefaultDeltaMessage, createDefaultSummary, createHistory, createUrl, evaluateStatus, evaluateStatus, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getApi, getContainer, getDataFile, getDays, getDefaultEncoding, getDelta, getDetails, getDynamic, getErrors, getFixedWarnings, getHeader, getHighDelta, getHighScoreGap, getHistory, getLowDelta, getModules, getNewWarnings, getNormalDelta, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfModules, getNumberOfNewWarnings, getNumberOfWarnings, getOwner, getPluginResult, getPreviousResult, getProject, getReason, getResultIcon, getSuccessfulHighScore, getSuccessfulHighScoreGap, getSuccessfulSinceBuild, getSuccessfulSinceDate, getThresholds, getWarningsDelta, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasAnnotations, hasAnnotations, hasAnnotations, hasError, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, hasPreviousResult, isCurrent, isNewSuccessfulHighScore, isNewZeroWarningsHighScore, isSuccessful, isSuccessfulTouched, readResolve, serializeAnnotations, setHighWarnings, setLowWarnings, setNormalWarnings, setResult, setWarnings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TasksResult

public TasksResult(hudson.model.AbstractBuild<?,?> build,
                   String defaultEncoding,
                   TasksParserResult result,
                   String highTags,
                   String normalTags,
                   String lowTags)
Creates a new instance of TasksResult.

Parameters:
build - the current build as owner of this action
defaultEncoding - the default encoding to be used when reading and parsing files
result - the parsed annotations
highTags - tag identifiers indicating high priority
normalTags - tag identifiers indicating normal priority
lowTags - tag identifiers indicating low priority

TasksResult

protected TasksResult(hudson.model.AbstractBuild<?,?> build,
                      String defaultEncoding,
                      TasksParserResult result,
                      String highTags,
                      String normalTags,
                      String lowTags,
                      Class<? extends hudson.plugins.analysis.core.ResultAction<TasksResult>> actionType)
Creates a new instance of TasksResult.

Parameters:
build - the current build as owner of this action
defaultEncoding - the default encoding to be used when reading and parsing files
result - the parsed annotations
highTags - tag identifiers indicating high priority
normalTags - tag identifiers indicating normal priority
lowTags - tag identifiers indicating low priority
actionType - the type of the result action
Method Detail

configure

protected void configure(com.thoughtworks.xstream.XStream xstream)
Overrides:
configure in class hudson.plugins.analysis.core.BuildResult

getSummary

public String getSummary()
Specified by:
getSummary in class hudson.plugins.analysis.core.BuildResult

createDeltaMessage

protected String createDeltaMessage()
Overrides:
createDeltaMessage in class hudson.plugins.analysis.core.BuildResult

getNumberOfFiles

public int getNumberOfFiles()
Returns the number of scanned files in this project.

Returns:
the number of scanned files in this project

getDisplayName

public String getDisplayName()
Returns the display name (bread crumb name) of this result.

Returns:
the display name of this result.

getSerializationFileName

protected String getSerializationFileName()
Specified by:
getSerializationFileName in class hudson.plugins.analysis.core.BuildResult

getPriorities

public hudson.plugins.analysis.util.model.Priority[] getPriorities()
Overrides:
getPriorities in class hudson.plugins.analysis.core.BuildResult

getTags

public final String getTags(hudson.plugins.analysis.util.model.Priority priority)
Returns the tags for the specified priority.

Parameters:
priority - the priority
Returns:
the tags for the specified priority

getPackageCategoryName

public String getPackageCategoryName()
Returns the package category name for the scanned files. Currently, only java and c# files are supported.

Returns:
the package category name for the scanned files

getResultActionType

protected Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()
Specified by:
getResultActionType in class hudson.plugins.analysis.core.BuildResult


Copyright © 2004-2012 Hudson. All Rights Reserved.