Package fr.igred.omero.annotations
Class TagAnnotationWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.annotations.GenericAnnotationWrapper<TagAnnotationData>
-
- fr.igred.omero.annotations.TagAnnotationWrapper
-
public class TagAnnotationWrapper extends GenericAnnotationWrapper<TagAnnotationData>
Class containing a TagAnnotationDataImplements function using the TagAnnotationData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description TagAnnotationWrapper(Client client, String name, String description)Constructor of the TagAnnotationWrapper class.TagAnnotationWrapper(TagAnnotationData tag)Constructor of the TagAnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagAnnotationDataasTagAnnotationData()Gets the TagAnnotationData contained.StringgetName()Gets the name of the TagData.voidsetName(String name)Sets the name of the TagData.-
Methods inherited from class fr.igred.omero.annotations.GenericAnnotationWrapper
getDatasets, getDescription, getImages, getLastModified, getNameSpace, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpace
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
TagAnnotationWrapper
public TagAnnotationWrapper(TagAnnotationData tag)
Constructor of the TagAnnotationWrapper class.- Parameters:
tag- Tag to be contained.
-
TagAnnotationWrapper
public TagAnnotationWrapper(Client client, String name, String description) throws ServiceException, AccessException, ExecutionException
Constructor of the TagAnnotationWrapper class. Creates the tag and save it in OMERO.- Parameters:
client- The client handling the connection.name- Annotation name.description- Tag description.- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.ExecutionException- A Facility can't be retrieved or instantiated.
-
-
Method Detail
-
getName
public String getName()
Gets the name of the TagData.- Returns:
- TagData name.
-
setName
public void setName(String name)
Sets the name of the TagData.- Parameters:
name- The name of the TagData. Mustn't benull.- Throws:
IllegalArgumentException- If the name isnull.
-
asTagAnnotationData
public TagAnnotationData asTagAnnotationData()
Gets the TagAnnotationData contained.- Returns:
- the
TagAnnotationDatacontained.
-
-