hudson.plugins.warnings.parser
Class Warning

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

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

A serializable Java Bean class representing a warning.

Note: this class has a natural ordering that is inconsistent with equals.

Author:
Ulli Hafner
See Also:
Serialized Form

Field Summary
static java.lang.String ORIGIN
          Origin of the annotation.
 
Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
WORKSPACE_FILES
 
Constructor Summary
Warning(java.lang.String fileName, int start, java.lang.String type, java.lang.String category, java.lang.String message)
          Creates a new instance of Warning.
Warning(java.lang.String fileName, int start, java.lang.String type, java.lang.String category, java.lang.String message, hudson.plugins.analysis.util.model.Priority priority)
          Creates a new instance of Warning.
 
Method Summary
 java.lang.String getToolTip()
          
 
Methods inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
addLineRange, canDisplayFile, compareTo, equals, getCategory, getContextHashCode, getFileName, getKey, getLineRanges, getMessage, getModuleName, getOrigin, getPackageName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hashCode, hasPackageName, setContextHashCode, setFileName, setModuleName, setOrigin, setPackageName, setPriority
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIGIN

public static final java.lang.String ORIGIN
Origin of the annotation.

See Also:
Constant Field Values
Constructor Detail

Warning

public Warning(java.lang.String fileName,
               int start,
               java.lang.String type,
               java.lang.String category,
               java.lang.String message)
Creates a new instance of Warning.

Parameters:
fileName - the name of the file
start - the first line of the line range
type - the identifier of the warning type
category - the warning category
message - the message of the warning

Warning

public Warning(java.lang.String fileName,
               int start,
               java.lang.String type,
               java.lang.String category,
               java.lang.String message,
               hudson.plugins.analysis.util.model.Priority priority)
Creates a new instance of Warning.

Parameters:
fileName - the name of the file
start - the first line of the line range
type - the identifier of the warning type
category - the warning category
message - the message of the warning
priority - the priority of the warning
Method Detail

getToolTip

public java.lang.String getToolTip()



Copyright © 2010. All Rights Reserved.