Package fr.igred.omero.annotations
Interface MapAnnotation
-
- All Superinterfaces:
Annotation
,ContainerLinked
,HCSLinked
,ImageLinked
,RemoteObject
- All Known Implementing Classes:
MapAnnotationWrapper
public interface MapAnnotation extends Annotation
Interface to handle Map Annotations on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MapAnnotationData
asDataObject()
Returns aMapAnnotationData
corresponding to the handled object.java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>
getContent()
Gets the List of Key-Value pairs contained in the map annotation.default java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getContentAsMap()
Gets the List of Key-Value pairs contained in the map annotation as a map.void
setContent(java.util.Collection<? extends java.util.Map.Entry<java.lang.String,java.lang.String>> pairs)
Sets the content of the map annotation.-
Methods inherited from interface fr.igred.omero.annotations.Annotation
countAnnotationLinks, getDescription, getFolders, getLastModified, getNameSpace, setDescription, setNameSpace
-
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
MapAnnotationData asDataObject()
Returns aMapAnnotationData
corresponding to the handled object.- Specified by:
asDataObject
in interfaceAnnotation
- Specified by:
asDataObject
in interfaceRemoteObject
- Returns:
- See above.
-
getContent
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> getContent()
Gets the List of Key-Value pairs contained in the map annotation.- Returns:
- MapAnnotationData content.
-
setContent
void setContent(java.util.Collection<? extends java.util.Map.Entry<java.lang.String,java.lang.String>> pairs)
Sets the content of the map annotation.- Parameters:
pairs
- Collection of Key-Value pairs.
-
getContentAsMap
default java.util.Map<java.lang.String,java.util.List<java.lang.String>> getContentAsMap()
Gets the List of Key-Value pairs contained in the map annotation as a map.- Returns:
- See above.
-
-