public class Fix
extends java.lang.Object
Failure.getFixes()
Modifier and Type | Field and Description |
---|---|
private AnnotationType |
annotationType |
private DataFileType |
fileType |
private boolean |
fromInherited |
private BasicItem |
item |
private FileSetMember |
member |
private java.lang.String |
message |
Constructor and Description |
---|
Fix(java.lang.String message,
BasicItem item)
Create a new suggested fix for an item.
|
Fix(java.lang.String message,
BasicItem item,
AnnotationType annotationType,
boolean fromInherited)
Create a new suggested fix for the annotation of an item.
|
Fix(java.lang.String message,
BasicItem item,
DataFileType fileType) |
Fix(java.lang.String message,
BasicItem item,
FileSetMember member) |
Modifier and Type | Method and Description |
---|---|
AnnotationType |
getAnnotationType()
Get the annotation type of the annotation that needs to be edited
for this fix.
|
DataFileType |
getDataFileType() |
FileSetMember |
getFileSetMember() |
BasicItem |
getItem()
Get the item that needs to be edited for this fix.
|
java.lang.String |
getMessage()
Get a message explaining what needs to be fixed.
|
boolean |
isAnnotationFix()
If this fix involves editing an annotation or not.
|
boolean |
isDataFileFix() |
boolean |
isFromInherited()
If this fix involves editing an inherited annotation or a primary annotation.
|
java.lang.String |
toString() |
private java.lang.String message
private BasicItem item
private AnnotationType annotationType
private boolean fromInherited
private FileSetMember member
private DataFileType fileType
public Fix(java.lang.String message, BasicItem item)
message
- A message explaining what needs to be fixeditem
- The item that needs to be edited by this fixpublic Fix(java.lang.String message, BasicItem item, AnnotationType annotationType, boolean fromInherited)
message
- A message explaining what needs to be fixeditem
- The item that needs to be edited by this fixannotationType
- The annotation that needs to be edited by this fix or null if
the fix doesn't include annotationsfromInherited
- TRUE if the annotation is an inherited annotation or
FALSE if it is a primary annotationpublic Fix(java.lang.String message, BasicItem item, FileSetMember member)
public Fix(java.lang.String message, BasicItem item, DataFileType fileType)
public java.lang.String getMessage()
public BasicItem getItem()
public AnnotationType getAnnotationType()
public boolean isAnnotationFix()
isFromInherited()
public boolean isFromInherited()
isAnnotationFix()
public FileSetMember getFileSetMember()
public DataFileType getDataFileType()
public boolean isDataFileFix()
public java.lang.String toString()
toString
in class java.lang.Object