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:
FileAnnotationWrapper
,MapAnnotationWrapper
,RatingAnnotationWrapper
,TagAnnotationWrapper
,TextualAnnotationWrapper
public abstract class GenericAnnotationWrapper<T extends AnnotationData> extends GenericObjectWrapper<T>
Generic class containing an AnnotationData (or a subclass) object.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericAnnotationWrapper(T a)
Constructor of the GenericAnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countAnnotationLinks(Client client)
Returns the number of annotations links for this object.java.util.List<DatasetWrapper>
getDatasets(Client client)
Gets all datasets with this annotation from OMERO.java.lang.String
getDescription()
Retrieves thedescription
of the underlyingAnnotationData
instance.java.util.List<FolderWrapper>
getFolders(Client client)
Gets all folders with this annotation from OMERO.java.util.List<ImageWrapper>
getImages(Client client)
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 theAnnotationData
namespace of the underlyingAnnotationData
instance.java.util.List<PlateAcquisitionWrapper>
getPlateAcquisitions(Client client)
Gets all plate acquisitions with this annotation from OMERO.java.util.List<PlateWrapper>
getPlates(Client client)
Gets all plates with this annotation from OMERO.java.util.List<ProjectWrapper>
getProjects(Client client)
Gets all projects with this annotation from OMERO.java.util.List<ScreenWrapper>
getScreens(Client client)
Gets all screens with this annotation from OMERO.java.util.List<WellWrapper>
getWells(Client client)
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 name space of the underlyingAnnotationData
instance.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
GenericAnnotationWrapper
protected GenericAnnotationWrapper(T a)
Constructor of the GenericAnnotationWrapper class.- Parameters:
a
- The AnnotationData to wrap.
-
-
Method Detail
-
getNameSpace
public java.lang.String getNameSpace()
Retrieves theAnnotationData
namespace of the underlyingAnnotationData
instance.- Returns:
- See above.
-
setNameSpace
public void setNameSpace(java.lang.String name)
Sets the name space of the underlyingAnnotationData
instance.- Parameters:
name
- The value to set.
-
getLastModified
public java.sql.Timestamp getLastModified()
Returns the time when the annotation was last modified.- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Retrieves thedescription
of the underlyingAnnotationData
instance.- Returns:
- See above
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationData
instance.- Parameters:
description
- The description
-
countAnnotationLinks
public int countAnnotationLinks(Client client) throws ServiceException, OMEROServerError
Returns the number of annotations links for this object.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.OMEROServerError
- Server error.
-
getProjects
public java.util.List<ProjectWrapper> getProjects(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all projects with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getDatasets
public java.util.List<DatasetWrapper> getDatasets(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all datasets with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImages
public java.util.List<ImageWrapper> getImages(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all images with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getScreens
public java.util.List<ScreenWrapper> getScreens(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all screens with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlates
public java.util.List<PlateWrapper> getPlates(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all plates with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlateAcquisitions
public java.util.List<PlateAcquisitionWrapper> getPlateAcquisitions(Client client) throws ServiceException, OMEROServerError
Gets all plate acquisitions with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.OMEROServerError
- Server error.
-
getWells
public java.util.List<WellWrapper> getWells(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all wells with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getFolders
public java.util.List<FolderWrapper> getFolders(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all folders with this annotation from OMERO.- Parameters:
client
- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
-