hudson.plugins.analysis.collector
Class Warning

java.lang.Object
  extended by hudson.plugins.analysis.util.model.AbstractAnnotation
      extended by hudson.plugins.analysis.collector.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
 
Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
WORKSPACE_FILES
 
Constructor Summary
Warning(hudson.plugins.analysis.util.model.AbstractAnnotation warning, java.lang.String origin)
          Creates a new Warning based on the specified warning.
 
Method Summary
 java.lang.String getOrigin()
          Returns the origin of this warning.
 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, 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
 

Constructor Detail

Warning

public Warning(hudson.plugins.analysis.util.model.AbstractAnnotation warning,
               java.lang.String origin)
Creates a new Warning based on the specified warning.

Parameters:
warning - the warning to copy
origin - the plug-in that created the warning
Method Detail

getToolTip

public java.lang.String getToolTip()


getOrigin

public java.lang.String getOrigin()
Returns the origin of this warning.

Specified by:
getOrigin in interface hudson.plugins.analysis.util.model.FileAnnotation
Overrides:
getOrigin in class hudson.plugins.analysis.util.model.AbstractAnnotation
Returns:
the origin of this warning


Copyright © 2010. All Rights Reserved.