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 protectedAnnotationWrapper(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.StringgetDescription()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.TimestampgetLastModified()Returns the time when the annotation was last modified.java.lang.StringgetNameSpace()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.voidsetDescription(java.lang.String description)Sets the description of the underlyingAnnotationDatainstance.voidsetNameSpace(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:
getNameSpacein interfaceAnnotation- Returns:
- See above.
-
setNameSpace
public void setNameSpace(java.lang.String name)
Sets the annotation namespace.- Specified by:
setNameSpacein interfaceAnnotation- Parameters:
name- The value to set.
-
getLastModified
public java.sql.Timestamp getLastModified()
Returns the time when the annotation was last modified.- Specified by:
getLastModifiedin interfaceAnnotation- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Gets the annotation description.- Specified by:
getDescriptionin interfaceAnnotation- Returns:
- See above
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationDatainstance.- Specified by:
setDescriptionin 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:
getProjectsin 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:
getDatasetsin 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:
getImagesin 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:
getScreensin 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:
getPlatesin 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:
getPlateAcquisitionsin 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:
getWellsin 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:
getFoldersin 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.
-
-