public abstract class AnnotationData extends DataObject
Annotation
instance in a wrapper.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_TRANSFER_NS
The name space used to identify the file transfer type.
|
Modifier | Constructor and Description |
---|---|
protected |
AnnotationData(A annotation)
Creates a new instance.
|
protected |
AnnotationData(java.lang.Class<? extends omero.model.Annotation> annotationClass)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
getContent()
Returns the content of the annotation.
|
abstract java.lang.String |
getContentAsString()
Returns the content of the annotation as a
String , which is
parsed on a Class -by-Class basis. |
java.lang.String |
getDescription()
Retrieves the
description of the
underlying Annotation instance. |
java.sql.Timestamp |
getLastModified()
Returns the time when the annotation was last modified.
|
java.lang.String |
getNameSpace()
Retrieves the
nameSpace of the underlying
Annotation instance. |
abstract void |
setContent(java.lang.Object content)
Sets the annotation value.
|
void |
setDescription(java.lang.String description)
Sets the description of the underlying
Annotation instance. |
void |
setNameSpace(java.lang.String name)
Sets the name space of the underlying
Annotation instance. |
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
public static final java.lang.String FILE_TRANSFER_NS
protected AnnotationData(java.lang.Class<? extends omero.model.Annotation> annotationClass)
annotationClass
- The type of annotation to create.java.lang.IllegalArgumentException
- If the type is not supported or if the passed parameter is
null
.protected AnnotationData(A annotation)
annotation
- The Annotation
object corresponding to this
DataObject
. Mustn't be null
.java.lang.IllegalArgumentException
- If the object is null
.public void setNameSpace(java.lang.String name)
Annotation
instance.name
- The value to set.public java.lang.String getNameSpace()
nameSpace
of the underlying
Annotation
instance.public java.sql.Timestamp getLastModified()
public java.lang.String getDescription()
description
of the
underlying Annotation
instance.public void setDescription(java.lang.String description)
Annotation
instance.description
- The descriptionpublic abstract void setContent(java.lang.Object content)
Annotation
, then an
IllegalArgumentException
will be thrown.content
- The value to set.public abstract java.lang.Object getContent()
public abstract java.lang.String getContentAsString()
String
, which is
parsed on a Class
-by-Class
basis.