public abstract class AnnotationData extends DataObject
Annotation
instance in a wrapper.Modifier and Type | Field and Description |
---|---|
static 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(Class<? extends omero.model.Annotation> annotationClass)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
getContent()
Returns the content of the annotation.
|
abstract String |
getContentAsString()
|
String |
getDescription()
Retrieves the
description of the
underlying Annotation instance. |
Timestamp |
getLastModified()
Returns the time when the annotation was last modified.
|
String |
getNameSpace()
Retrieves the
nameSpace of the underlying
Annotation instance. |
abstract void |
setContent(Object content)
Sets the annotation value.
|
void |
setDescription(String description)
Sets the description of the underlying
Annotation instance. |
void |
setNameSpace(String name)
Sets the name space of the underlying
Annotation instance. |
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, 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 String FILE_TRANSFER_NS
protected AnnotationData(Class<? extends omero.model.Annotation> annotationClass)
annotationClass
- The type of annotation to create.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
.IllegalArgumentException
- If the object is null
.public void setNameSpace(String name)
Annotation
instance.name
- The value to set.public String getNameSpace()
nameSpace
of the underlying
Annotation
instance.public Timestamp getLastModified()
public String getDescription()
description
of the
underlying Annotation
instance.public void setDescription(String description)
Annotation
instance.description
- The descriptionpublic abstract void setContent(Object content)
Annotation
, then an
IllegalArgumentException
will be thrown.content
- The value to set.public abstract Object getContent()
public abstract String getContentAsString()
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.