Package omero.gateway.model
Class XMLAnnotationData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.AnnotationData
-
- omero.gateway.model.XMLAnnotationData
-
public class XMLAnnotationData extends AnnotationData
Defines an XML Annotation.- Since:
- 3.0-Beta4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MODULO_NS
The name space used to identify modulo concept.-
Fields inherited from class omero.gateway.model.AnnotationData
FILE_TRANSFER_NS
-
-
Constructor Summary
Constructors Constructor Description XMLAnnotationData()
Creates a new instance.XMLAnnotationData(java.lang.String text)
Creates a new instance.XMLAnnotationData(omero.model.XmlAnnotation annotation)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent()
Returns the content of the annotation.java.lang.String
getContentAsString()
Returns the textual content of the annotation.java.lang.String
getDescription()
Returns the description of the annotation.java.lang.String
getText()
Returns the text of this annotation.void
setContent(java.lang.Object content)
Sets the annotation.void
setDescription(java.lang.String value)
Sets the description of the annotation.void
setText(java.lang.String value)
Sets the text value.-
Methods inherited from class omero.gateway.model.AnnotationData
getLastModified, getNameSpace, 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
-
-
-
-
Field Detail
-
MODULO_NS
public static final java.lang.String MODULO_NS
The name space used to identify modulo concept.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLAnnotationData
public XMLAnnotationData()
Creates a new instance.
-
XMLAnnotationData
public XMLAnnotationData(java.lang.String text)
Creates a new instance.- Parameters:
text
- The text to set.
-
XMLAnnotationData
public XMLAnnotationData(omero.model.XmlAnnotation annotation)
Creates a new instance.- Parameters:
annotation
- TheXmlAnnotation
object corresponding to thisDataObject
. Mustn't benull
.
-
-
Method Detail
-
setDescription
public void setDescription(java.lang.String value)
Sets the description of the annotation.- Overrides:
setDescription
in classAnnotationData
- Parameters:
value
- The value to set.
-
getDescription
public java.lang.String getDescription()
Returns the description of the annotation.- Overrides:
getDescription
in classAnnotationData
- Returns:
- See above.
-
setText
public void setText(java.lang.String value)
Sets the text value.- Parameters:
value
- 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 content of the annotation.- Specified by:
getContent
in classAnnotationData
- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the textual content of the annotation.- Specified by:
getContentAsString
in classAnnotationData
- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the annotation.- Specified by:
setContent
in classAnnotationData
- Parameters:
content
- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-