Package fr.igred.omero.annotations
Class GenericAnnotationWrapper<T extends AnnotationData>
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.annotations.GenericAnnotationWrapper<T>
-
- Type Parameters:
T- Subclass ofAnnotationData
- Direct Known Subclasses:
MapAnnotationWrapper,TagAnnotationWrapper
public abstract class GenericAnnotationWrapper<T extends AnnotationData> extends GenericObjectWrapper<T>
Generic class containing an AnnotationData (or a subclass) object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.igred.omero.GenericObjectWrapper
GenericObjectWrapper.SortById<U extends GenericObjectWrapper<?>>
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericAnnotationWrapper(T annotation)Constructor of the GenericAnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Retrieves thedescriptionof the underlyingAnnotationDatainstance.TimestampgetLastModified()Returns the time when the annotation was last modified.StringgetNameSpace()Retrieves theAnnotationDatanamespace of the underlyingAnnotationDatainstance.voidsetDescription(String description)Sets the description of the underlyingAnnotationDatainstance.voidsetNameSpace(String name)Sets the name space of the underlyingAnnotationDatainstance.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString
-
-
-
-
Constructor Detail
-
GenericAnnotationWrapper
protected GenericAnnotationWrapper(T annotation)
Constructor of the GenericAnnotationWrapper class.- Parameters:
annotation- Annotation to be contained.
-
-
Method Detail
-
getNameSpace
public String getNameSpace()
Retrieves theAnnotationDatanamespace of the underlyingAnnotationDatainstance.- Returns:
- See above.
-
setNameSpace
public void setNameSpace(String name)
Sets the name space of the underlyingAnnotationDatainstance.- Parameters:
name- The value to set.
-
getLastModified
public Timestamp getLastModified()
Returns the time when the annotation was last modified.- Returns:
- See above.
-
getDescription
public String getDescription()
Retrieves thedescriptionof the underlyingAnnotationDatainstance.- Returns:
- See above
-
setDescription
public void setDescription(String description)
Sets the description of the underlyingAnnotationDatainstance.- Parameters:
description- The description
-
-