Package fr.igred.omero.annotations
Class AnnotationWrapper<T extends AnnotationData>
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.annotations.AnnotationWrapper<T>
-
- Type Parameters:
T
- Subclass ofAnnotationData
- All Implemented Interfaces:
Annotation
,ContainerLinked
,HCSLinked
,ImageLinked
,RemoteObject
- Direct Known Subclasses:
FileAnnotationWrapper
,MapAnnotationWrapper
,RatingAnnotationWrapper
,TagAnnotationWrapper
,TextualAnnotationWrapper
public abstract class AnnotationWrapper<T extends AnnotationData> extends ObjectWrapper<T> implements Annotation
Generic class containing an AnnotationData (or a subclass) object.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.ObjectWrapper
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationWrapper(T a)
Constructor of the AnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Dataset>
getDatasets(Browser browser)
Gets all datasets with this annotation from OMERO.java.lang.String
getDescription()
Gets the annotation description.java.util.List<Folder>
getFolders(Browser browser)
Gets all folders with this annotation from OMERO.java.util.List<Image>
getImages(Browser browser)
Gets all images with this annotation from OMERO.java.sql.Timestamp
getLastModified()
Returns the time when the annotation was last modified.java.lang.String
getNameSpace()
Retrieves the annotation namespace.java.util.List<PlateAcquisition>
getPlateAcquisitions(Browser browser)
Gets all plate acquisitions with this annotation from OMERO.java.util.List<Plate>
getPlates(Browser browser)
Gets all plates with this annotation from OMERO.java.util.List<Project>
getProjects(Browser browser)
Gets all projects with this annotation from OMERO.java.util.List<Screen>
getScreens(Browser browser)
Gets all screens with this annotation from OMERO.java.util.List<Well>
getWells(Browser browser)
Gets all wells with this annotation from OMERO.void
setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationData
instance.void
setNameSpace(java.lang.String name)
Sets the annotation namespace.-
Methods inherited from class fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.annotations.Annotation
asDataObject, countAnnotationLinks
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Constructor Detail
-
AnnotationWrapper
protected AnnotationWrapper(T a)
Constructor of the AnnotationWrapper class.- Parameters:
a
- The AnnotationData to wrap.
-
-
Method Detail
-
getNameSpace
public java.lang.String getNameSpace()
Retrieves the annotation namespace.- Specified by:
getNameSpace
in interfaceAnnotation
- Returns:
- See above.
-
setNameSpace
public void setNameSpace(java.lang.String name)
Sets the annotation namespace.- Specified by:
setNameSpace
in interfaceAnnotation
- Parameters:
name
- The value to set.
-
getLastModified
public java.sql.Timestamp getLastModified()
Returns the time when the annotation was last modified.- Specified by:
getLastModified
in interfaceAnnotation
- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Gets the annotation description.- Specified by:
getDescription
in interfaceAnnotation
- Returns:
- See above
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationData
instance.- Specified by:
setDescription
in interfaceAnnotation
- Parameters:
description
- The description
-
getProjects
public java.util.List<Project> getProjects(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all projects with this annotation from OMERO.- Specified by:
getProjects
in interfaceContainerLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getDatasets
public java.util.List<Dataset> getDatasets(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all datasets with this annotation from OMERO.- Specified by:
getDatasets
in interfaceContainerLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImages
public java.util.List<Image> getImages(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all images with this annotation from OMERO.- Specified by:
getImages
in interfaceImageLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getScreens
public java.util.List<Screen> getScreens(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all screens with this annotation from OMERO.- Specified by:
getScreens
in interfaceHCSLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlates
public java.util.List<Plate> getPlates(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all plates with this annotation from OMERO.- Specified by:
getPlates
in interfaceHCSLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlateAcquisitions
public java.util.List<PlateAcquisition> getPlateAcquisitions(Browser browser) throws ServiceException, ServerException
Gets all plate acquisitions with this annotation from OMERO.- Specified by:
getPlateAcquisitions
in interfaceHCSLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.ServerException
- Server error.
-
getWells
public java.util.List<Well> getWells(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all wells with this annotation from OMERO.- Specified by:
getWells
in interfaceHCSLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getFolders
public java.util.List<Folder> getFolders(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all folders with this annotation from OMERO.- Specified by:
getFolders
in interfaceAnnotation
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
-