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
- Direct Known Subclasses:
TagSetWrapper
Class containing a TagAnnotationData object.
Wraps function calls to the TagAnnotationData contained.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name space used to indicate that the tag is used a tag set.Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
Constructor Summary
ConstructorDescriptionTagAnnotationWrapper
(Client client, String name, String description) Constructor of the TagAnnotationWrapper class.Constructor of the TagAnnotationWrapper class. -
Method Summary
Methods inherited from class fr.igred.omero.annotations.GenericAnnotationWrapper
countAnnotationLinks, getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpace
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Field Details
-
NS_TAGSET
The name space used to indicate that the tag is used a tag set.- See Also:
-
-
Constructor Details
-
TagAnnotationWrapper
Constructor of the TagAnnotationWrapper class.- Parameters:
tag
- TagAnnotationData to wrap.
-
TagAnnotationWrapper
public TagAnnotationWrapper(Client client, String name, String description) throws ServiceException, AccessException, ExecutionException Constructor of the TagAnnotationWrapper class. Creates the tag and saves it to 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 Details
-
getName
Gets the tag name.- Returns:
- See above.
-
setName
Sets the tag name.- Parameters:
name
- The tag name. Mustn't benull
.- Throws:
IllegalArgumentException
- If the name isnull
.
-
isTagSet
public boolean isTagSet()Returns whether this tag is a TagSet or not.- Returns:
true
if this tag is a tag set,false
otherwise.
-
toTagSet
Converts this tag annotation to a tag set.- Returns:
- See above.
-
asTagAnnotationData
Deprecated.Gets the TagAnnotationData contained. UseGenericObjectWrapper.asDataObject()
instead.- Returns:
- the
TagAnnotationData
contained.
-