Package omero.gateway.model
Class TextualAnnotationData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.AnnotationData
-
- omero.gateway.model.TextualAnnotationData
-
public class TextualAnnotationData extends AnnotationData
Basic textual annotation used to add comments to a given object.- Since:
- OME3.0
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.AnnotationData
FILE_TRANSFER_NS
-
-
Constructor Summary
Constructors Constructor Description TextualAnnotationData()Creates a new instance.TextualAnnotationData(java.lang.String text)Creates a new instance.TextualAnnotationData(omero.model.CommentAnnotation annotation)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()Returns the textual content of the annotation.java.lang.StringgetContentAsString()Returns the textual content of the annotation.java.lang.StringgetText()Returns the text of this annotation.voidsetContent(java.lang.Object content)Sets the text annotation.voidsetText(java.lang.String text)Sets the text.-
Methods inherited from class omero.gateway.model.AnnotationData
getDescription, getLastModified, getNameSpace, setDescription, setNameSpace
-
Methods inherited from class omero.gateway.model.DataObject
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
-
-
-
-
Constructor Detail
-
TextualAnnotationData
public TextualAnnotationData()
Creates a new instance.
-
TextualAnnotationData
public TextualAnnotationData(java.lang.String text)
Creates a new instance.- Parameters:
text- The text to set.
-
TextualAnnotationData
public TextualAnnotationData(omero.model.CommentAnnotation annotation)
Creates a new instance.- Parameters:
annotation- TheCommentAnnotationobject corresponding to thisDataObject. Mustn't benull.
-
-
Method Detail
-
setText
public void setText(java.lang.String text)
Sets the text.- Parameters:
text- The value to set.
-
getText
public java.lang.String getText()
Returns the text of this annotation.- Returns:
- See above.
-
getContent
public java.lang.Object getContent()
Returns the textual content of the annotation.- Specified by:
getContentin classAnnotationData- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the textual content of the annotation.- Specified by:
getContentAsStringin classAnnotationData- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the text annotation.- Specified by:
setContentin classAnnotationData- Parameters:
content- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-