|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.model.AbstractAnnotation
public abstract class AbstractAnnotation
A base class for annotations.
| Field Summary | |
|---|---|
static java.lang.String |
WORKSPACE_FILES
Temporary directory holding the workspace files. |
| Constructor Summary | |
|---|---|
AbstractAnnotation(Priority priority,
java.lang.String message,
int start,
int end,
java.lang.String category,
java.lang.String type)
Creates a new instance of AbstractAnnotation. |
|
AbstractAnnotation(java.lang.String message,
int start,
int end,
java.lang.String category,
java.lang.String type)
Creates a new instance of AbstractAnnotation. |
|
| Method Summary | |
|---|---|
void |
addLineRange(LineRange lineRange)
Adds another line range to this annotation. |
boolean |
canDisplayFile(hudson.model.AbstractBuild<?,?> owner)
Checks if the file exists. |
int |
compareTo(FileAnnotation other)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCategory()
Returns the category of the annotation. |
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 |
getShortFileName()
Gets the associated file name of this bug (without path). |
java.lang.String |
getTempName(hudson.model.AbstractBuild<?,?> owner)
Returns a file name for a temporary file that will hold the contents of the source. |
java.lang.String |
getType()
Returns the annotation type. |
int |
hashCode()
|
boolean |
hasPackageName()
Returns whether a package name has been defined. |
void |
setFileName(java.lang.String fileName)
Sets the file name to the specified value. |
void |
setModuleName(java.lang.String moduleName)
Sets the module name to the specified value. |
void |
setPackageName(java.lang.String packageName)
Sets the package name to the specified value. |
void |
setPriority(Priority priority)
Sets the priority to the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.plugins.findbugs.util.model.FileAnnotation |
|---|
getToolTip |
| Field Detail |
|---|
public static final java.lang.String WORKSPACE_FILES
| Constructor Detail |
|---|
public AbstractAnnotation(java.lang.String message,
int start,
int end,
java.lang.String category,
java.lang.String type)
AbstractAnnotation.
message - the message of the warningstart - the first line of the line rangeend - the last line of the line rangecategory - the category of the annotationtype - the type of the annotation
public AbstractAnnotation(Priority priority,
java.lang.String message,
int start,
int end,
java.lang.String category,
java.lang.String type)
AbstractAnnotation.
priority - the prioritymessage - the message of the warningstart - the first line of the line rangeend - the last line of the line rangecategory - the category of the annotationtype - the type of the annotation| Method Detail |
|---|
public void setPriority(Priority priority)
priority - the value to setpublic java.lang.String getMessage()
getMessage in interface FileAnnotationpublic Priority getPriority()
getPriority in interface FileAnnotationpublic final long getKey()
getKey in interface FileAnnotationpublic final java.lang.String getFileName()
getFileName in interface FileAnnotationpublic java.lang.String getTempName(hudson.model.AbstractBuild<?,?> owner)
getTempName in interface FileAnnotationowner - the owner that provides the root directory where the files are
stored
public java.lang.String getCategory()
getCategory in interface FileAnnotationpublic java.lang.String getType()
getType in interface FileAnnotationpublic final void setFileName(java.lang.String fileName)
setFileName in interface FileAnnotationfileName - the value to setpublic final java.lang.String getModuleName()
getModuleName in interface FileAnnotationpublic final void setModuleName(java.lang.String moduleName)
setModuleName in interface FileAnnotationmoduleName - the value to setpublic final java.lang.String getPackageName()
getPackageName in interface FileAnnotationpublic boolean hasPackageName()
true, if a package name has been definedpublic final void setPackageName(java.lang.String packageName)
packageName - the value to setpublic final java.util.Collection<LineRange> getLineRanges()
getLineRanges in interface FileAnnotationpublic final int getPrimaryLineNumber()
getPrimaryLineNumber in interface FileAnnotationpublic void addLineRange(LineRange lineRange)
lineRange - the line range to addpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getShortFileName()
getShortFileName in interface FileAnnotationpublic final boolean canDisplayFile(hudson.model.AbstractBuild<?,?> owner)
canDisplayFile in interface FileAnnotationowner - the owner that provides the root directory where the files are
stored
true, if successfulpublic int compareTo(FileAnnotation other)
compareTo in interface java.lang.Comparable<FileAnnotation>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||