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 protected
GenericAnnotationWrapper(T annotation)
Constructor of the GenericAnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Retrieves thedescription
of the underlyingAnnotationData
instance.Timestamp
getLastModified()
Returns the time when the annotation was last modified.String
getNameSpace()
Retrieves theAnnotationData
namespace of the underlyingAnnotationData
instance.void
setDescription(String description)
Sets the description of the underlyingAnnotationData
instance.void
setNameSpace(String name)
Sets the name space of the underlyingAnnotationData
instance.-
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 theAnnotationData
namespace of the underlyingAnnotationData
instance.- Returns:
- See above.
-
setNameSpace
public void setNameSpace(String name)
Sets the name space of the underlyingAnnotationData
instance.- 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 thedescription
of the underlyingAnnotationData
instance.- Returns:
- See above
-
setDescription
public void setDescription(String description)
Sets the description of the underlyingAnnotationData
instance.- Parameters:
description
- The description
-
-