hudson.plugins.checkstyle.util
Interface ResultAction<T extends BuildResult>

Type Parameters:
T - type of the result
All Superinterfaces:
hudson.model.Action, hudson.model.ModelObject
All Known Implementing Classes:
AbstractResultAction, CheckStyleResultAction, MavenCheckStyleResultAction

public interface ResultAction<T extends BuildResult>
extends hudson.model.Action

Defines an action that is responsible for handling results of the given type T.

Author:
Ulli Hafner

Method Summary
 hudson.model.AbstractBuild<?,?> getBuild()
          Returns the associated build of this action.
 AbstractHealthDescriptor getHealthDescriptor()
          Gets the associated health descriptor.
 ResultAction<T> getPreviousResultAction()
          Returns the result action from the previous build.
 T getResult()
          Returns the current result of this action.
 ToolTipProvider getToolTipProvider()
          Returns the associated tool tip provider.
 boolean hasPreviousResultAction()
          Returns whether a previous build already has a result action of this type attached.
 void setResult(T result)
          Sets the result for this build.
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 

Method Detail

getResult

T getResult()
Returns the current result of this action.

Returns:
the current result

setResult

void setResult(T result)
Sets the result for this build.

Parameters:
result - the result to set

hasPreviousResultAction

boolean hasPreviousResultAction()
Returns whether a previous build already has a result action of this type attached.

Returns:
true a previous build already has a result action of this type attached

getPreviousResultAction

ResultAction<T> getPreviousResultAction()
Returns the result action from the previous build.

Returns:
the result of the previous build.
Throws:
java.util.NoSuchElementException - if there is no previous result action is found

getBuild

hudson.model.AbstractBuild<?,?> getBuild()
Returns the associated build of this action.

Returns:
the associated build of this action

getToolTipProvider

ToolTipProvider getToolTipProvider()
Returns the associated tool tip provider.

Returns:
the tool tip provider

getHealthDescriptor

AbstractHealthDescriptor getHealthDescriptor()
Gets the associated health descriptor.

Returns:
the health descriptor


Copyright © 2009. All Rights Reserved.