Package net.sf.basedb.util.overview
Class Fix
java.lang.Object
net.sf.basedb.util.overview.Fix
Holds information about a suggested fix to a failure.
- Version:
- 2.2
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-08-21 14:32:11 +0200 (fr, 21 aug 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate Annotation
private AnnotationType
private DataFileType
private boolean
private BasicItem
private FileSetMember
private String
-
Constructor Summary
ConstructorDescriptionCreate a new suggested fix for an item.Fix
(String message, BasicItem item, Annotation annotation) Create a new suggested fix for the annotation of an item.Fix
(String message, BasicItem item, AnnotationType annotationType, boolean fromInherited) Create a new suggested fix for the annotation of an item.Fix
(String message, BasicItem item, DataFileType fileType) Fix
(String message, BasicItem item, FileSetMember member) -
Method Summary
Modifier and TypeMethodDescriptionGet the annotation that needs to be edited for this fix.Get the annotation type of the annotation that needs to be edited for this fix.getItem()
Get the item that needs to be edited for this fix.Get a message explaining what needs to be fixed.boolean
If this fix involves editing an annotation or not.boolean
boolean
If this fix involves editing an inherited annotation or a primary annotation.toString()
-
Field Details
-
message
-
item
-
annotationType
-
annotation
-
fromInherited
private boolean fromInherited -
member
-
fileType
-
-
Constructor Details
-
Fix
Create a new suggested fix for an item.- Parameters:
message
- A message explaining what needs to be fixeditem
- The item that needs to be edited by this fix
-
Fix
Create a new suggested fix for the annotation of an item.- Parameters:
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 annotation
-
Fix
Create a new suggested fix for the annotation of an item.- Parameters:
message
- A message explaining what needs to be fixeditem
- The item that needs to be edited by this fixannotation
- The annotation that needs to be edited by this fix- Since:
- 3.6
-
Fix
-
Fix
-
-
Method Details
-
getMessage
Get a message explaining what needs to be fixed. -
getItem
Get the item that needs to be edited for this fix. -
getAnnotationType
Get the annotation type of the annotation that needs to be edited for this fix.- Returns:
- An annotation type or null if this is not a fix for annotations
-
getAnnotation
Get the annotation that needs to be edited for this fix.- Returns:
- An annotation or null if this is not a fix for annotations
- Since:
- 3.6
-
isAnnotationFix
public boolean isAnnotationFix()If this fix involves editing an annotation or not.- See Also:
-
isFromInherited
public boolean isFromInherited()If this fix involves editing an inherited annotation or a primary annotation.- See Also:
-
getFileSetMember
-
getDataFileType
-
isDataFileFix
public boolean isDataFileFix() -
toString
-