Package omero.gateway.model
Class LongAnnotationData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.AnnotationData
-
- omero.gateway.model.LongAnnotationData
-
public class LongAnnotationData extends AnnotationData
Wraps a long annotation.- Since:
- OME3.0
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.AnnotationData
FILE_TRANSFER_NS
-
-
Constructor Summary
Constructors Constructor Description LongAnnotationData()
Creates a new instance.LongAnnotationData(long value)
Creates a new instance.LongAnnotationData(omero.model.LongAnnotation annotation)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent()
Returns the rating value.java.lang.String
getContentAsString()
Returns the value as a string.long
getDataValue()
Returns the value.void
setContent(java.lang.Object content)
Sets the text annotation.void
setDataValue(long value)
Sets the rating value.-
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
-
LongAnnotationData
public LongAnnotationData(long value)
Creates a new instance.- Parameters:
value
- The value to set.
-
LongAnnotationData
public LongAnnotationData()
Creates a new instance.
-
LongAnnotationData
public LongAnnotationData(omero.model.LongAnnotation annotation)
Creates a new instance.- Parameters:
annotation
- TheLongAnnotation
object corresponding to thisDataObject
. Mustn't benull
.
-
-
Method Detail
-
setDataValue
public void setDataValue(long value)
Sets the rating value.- Parameters:
value
- The value to set.
-
getDataValue
public long getDataValue()
Returns the value.- Returns:
- See above.
-
getContent
public java.lang.Object getContent()
Returns the rating value.- Specified by:
getContent
in classAnnotationData
- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the value as a string.- Specified by:
getContentAsString
in classAnnotationData
- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the text annotation.- Specified by:
setContent
in classAnnotationData
- Parameters:
content
- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-