hudson.plugins.findbugs.util.model
Interface FileAnnotation

All Known Implementing Classes:
AbstractAnnotation, Bug

public interface FileAnnotation

Annotates a collection of line ranges in a file. An annotation consists of a description and a tooltip.

Author:
Ulli Hafner

Method Summary
 java.lang.String getFileName()
          Returns the absolute path of the workspace file that contains this annotation.
 long getKey()
          Returns the unique key of this annotation.
 java.util.Collection<LineRange> getLineRanges()
          Returns a collection of line ranges for this annotation.
 java.lang.String getMessage()
          Returns the message of this annotation.
 java.lang.String getModuleName()
          Returns the name of the maven or ant module that contains this annotation.
 java.lang.String getPackageName()
          Returns the name of package (or namespace) that contains this annotation.
 int getPrimaryLineNumber()
          Returns the primary line number of this annotation that defines the anchor of this annotation.
 Priority getPriority()
          Returns the priority of this annotation.
 java.lang.String getToolTip()
          Returns the a detailed description that will be used as tooltip.
 

Method Detail

getMessage

java.lang.String getMessage()
Returns the message of this annotation.

Returns:
the message of this annotation

getToolTip

java.lang.String getToolTip()
Returns the a detailed description that will be used as tooltip.

Returns:
the tooltip of this annotation

getPrimaryLineNumber

int getPrimaryLineNumber()
Returns the primary line number of this annotation that defines the anchor of this annotation.

Returns:
the primary line number of this annotation

getLineRanges

java.util.Collection<LineRange> getLineRanges()
Returns a collection of line ranges for this annotation.

Returns:
the collection of line ranges for this annotation.

getKey

long getKey()
Returns the unique key of this annotation.

Returns:
the unique key of this annotation.

getPriority

Priority getPriority()
Returns the priority of this annotation.

Returns:
the priority of this annotation

getFileName

java.lang.String getFileName()
Returns the absolute path of the workspace file that contains this annotation.

Returns:
the name of the workspace file that contains this annotation

getModuleName

java.lang.String getModuleName()
Returns the name of the maven or ant module that contains this annotation.

Returns:
the name of the module that contains this annotation

getPackageName

java.lang.String getPackageName()
Returns the name of package (or namespace) that contains this annotation.

Returns:
the name of the package that contains this annotation


Copyright © 2008. All Rights Reserved.