Package fr.igred.omero.annotations
Interface Annotation
-
- All Superinterfaces:
ContainerLinked,HCSLinked,ImageLinked,RemoteObject
- All Known Subinterfaces:
FileAnnotation,MapAnnotation,RatingAnnotation,TagAnnotation,TextualAnnotation
- All Known Implementing Classes:
AnnotationWrapper,FileAnnotationWrapper,MapAnnotationWrapper,RatingAnnotationWrapper,TagAnnotationWrapper,TextualAnnotationWrapper
public interface Annotation extends ContainerLinked, HCSLinked
Interface to handle Annotations on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnnotationDataasDataObject()Returns anAnnotationDatacorresponding to the handled object.default intcountAnnotationLinks(Browser browser)Returns the number of annotations links for this object.java.lang.StringgetDescription()Gets the annotation description.java.util.List<Folder>getFolders(Browser browser)Gets all folders with this annotation from OMERO.java.sql.TimestampgetLastModified()Returns the time when the annotation was last modified.java.lang.StringgetNameSpace()Retrieves the annotation namespace.voidsetDescription(java.lang.String description)Sets the description of the underlyingAnnotationDatainstance.voidsetNameSpace(java.lang.String name)Sets the annotation namespace.-
Methods inherited from interface fr.igred.omero.ContainerLinked
getDatasets, getProjects
-
Methods inherited from interface fr.igred.omero.HCSLinked
getPlateAcquisitions, getPlates, getScreens, getWells
-
Methods inherited from interface fr.igred.omero.ImageLinked
getImages
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Method Detail
-
asDataObject
AnnotationData asDataObject()
Returns anAnnotationDatacorresponding to the handled object.- Specified by:
asDataObjectin interfaceRemoteObject- Returns:
- See above.
-
getNameSpace
java.lang.String getNameSpace()
Retrieves the annotation namespace.- Returns:
- See above.
-
setNameSpace
void setNameSpace(java.lang.String name)
Sets the annotation namespace.- Parameters:
name- The value to set.
-
getLastModified
java.sql.Timestamp getLastModified()
Returns the time when the annotation was last modified.- Returns:
- See above.
-
getDescription
java.lang.String getDescription()
Gets the annotation description.- Returns:
- See above
-
setDescription
void setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationDatainstance.- Parameters:
description- The description
-
countAnnotationLinks
default int countAnnotationLinks(Browser browser) throws ServiceException, ServerException
Returns the number of annotations links for this object.- Parameters:
browser- The data browser.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.ServerException- Server error.
-
getFolders
java.util.List<Folder> getFolders(Browser browser) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all folders with this annotation from OMERO.- 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.
-
-