Class TagAnnotationWrapper

Direct Known Subclasses:
TagSetWrapper

public class TagAnnotationWrapper extends GenericAnnotationWrapper<TagAnnotationData>
Class containing a TagAnnotationData object.

Wraps function calls to the TagAnnotationData contained.

  • Field Details

    • NS_TAGSET

      public static final String NS_TAGSET
      The name space used to indicate that the tag is used a tag set.
      See Also:
  • Constructor Details

    • TagAnnotationWrapper

      public TagAnnotationWrapper(TagAnnotationData tag)
      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

      public String getName()
      Gets the tag name.
      Returns:
      See above.
    • setName

      public void setName(String name)
      Sets the tag name.
      Parameters:
      name - The tag name. Mustn't be null.
      Throws:
      IllegalArgumentException - If the name is null.
    • 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

      public TagSetWrapper toTagSet()
      Converts this tag annotation to a tag set.
      Returns:
      See above.
    • asTagAnnotationData

      @Deprecated public TagAnnotationData asTagAnnotationData()
      Deprecated.
      Gets the TagAnnotationData contained. Use GenericObjectWrapper.asDataObject() instead.
      Returns:
      the TagAnnotationData contained.