hudson.plugins.tasks.parser
Class Task

java.lang.Object
  extended by hudson.plugins.analysis.util.model.AbstractAnnotation
      extended by hudson.plugins.tasks.parser.Task
All Implemented Interfaces:
hudson.plugins.analysis.util.model.FileAnnotation, Serializable, Comparable<hudson.plugins.analysis.util.model.FileAnnotation>

public class Task
extends hudson.plugins.analysis.util.model.AbstractAnnotation

A serializable Java Bean class representing an open task.

Author:
Ulli Hafner
See Also:
Serialized Form

Field Summary
static String ORIGIN
          Origin of the annotation.
 
Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
WORKSPACE_FILES
 
Constructor Summary
Task(hudson.plugins.analysis.util.model.Priority priority, int lineNumber, String taskTag, String message)
          Creates a new instance of Task.
 
Method Summary
 String getDetailMessage()
          Returns the detail message of the task (the text after the task keyword).
 String getMatch()
          Gets the matching text of a tasks including the tag.
 String getMessage()
           
 String getToolTip()
          
 String toString()
           
 
Methods inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
addLineRange, canDisplayFile, compareTo, equals, getCategory, getContextHashCode, getFileName, getKey, getLineRanges, getLinkLineNumber, getLinkName, getModuleName, getOrigin, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hashCode, hasPackageName, setColumnPosition, setContextHashCode, setFileName, setModuleName, setOrigin, setPackageName, setPathName, setPriority
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ORIGIN

public static final String ORIGIN
Origin of the annotation.

See Also:
Constant Field Values
Constructor Detail

Task

public Task(hudson.plugins.analysis.util.model.Priority priority,
            int lineNumber,
            String taskTag,
            String message)
Creates a new instance of Task.

Parameters:
priority - the priority
lineNumber - the line number of the task in the corresponding file
taskTag - the found task tag
message - the message of the task (the text after the task keyword)
Method Detail

getDetailMessage

public String getDetailMessage()
Returns the detail message of the task (the text after the task keyword).

Returns:
the detail message of the task

getMessage

public String getMessage()
Specified by:
getMessage in interface hudson.plugins.analysis.util.model.FileAnnotation
Overrides:
getMessage in class hudson.plugins.analysis.util.model.AbstractAnnotation

getToolTip

public String getToolTip()


getMatch

public String getMatch()
Gets the matching text of a tasks including the tag.

Returns:
the match

toString

public String toString()
Overrides:
toString in class hudson.plugins.analysis.util.model.AbstractAnnotation


Copyright © 2004-2012 Hudson. All Rights Reserved.