public abstract class DataAnnotationType<TDataAnnotation extends DataAnnotation>
extends java.lang.Object
This base type is intended for annotations which are genuinely annotations of existing data units. Stand alone annotations, which create their own dataunit should base upon SoloAnnotationType
SoloAnnotationType
Constructor and Description |
---|
DataAnnotationType() |
Modifier and Type | Method and Description |
---|---|
TDataAnnotation |
autoAnnotate(PamDataUnit pamDataUnit)
Automatically annotate the data unit with this annotation.
|
abstract boolean |
canAnnotate(java.lang.Class dataUnitType)
Find out whether or not a particular type of data can be annotated
|
boolean |
canAutoAnnotate() |
abstract java.lang.String |
getAnnotationName() |
AnnotationDialogPanel |
getDialogPanel()
Get a dialog component that can be incorporated into a larger dialog.
|
SQLLoggingAddon |
getSQLLoggingAddon()
Get an SQLLogging add on.
|
java.lang.String |
toString(TDataAnnotation dataAnnotation) |
public abstract java.lang.String getAnnotationName()
public java.lang.String toString(TDataAnnotation dataAnnotation)
public abstract boolean canAnnotate(java.lang.Class dataUnitType)
dataUnitType
- Class of a type of data unit. Can be null in which
case annotation can be stand alone.public boolean canAutoAnnotate()
public TDataAnnotation autoAnnotate(PamDataUnit pamDataUnit)
pamDataUnit
- data unit to annotatepublic SQLLoggingAddon getSQLLoggingAddon()
public AnnotationDialogPanel getDialogPanel()