Class TagAnnotationData


  • public class TagAnnotationData
    extends AnnotationData
    A tag annotation can either be related to an image or a tag but not to both at the same time.
    Since:
    OME3.0
    • Field Detail

      • INSIGHT_TAGSET_NS

        public static final java.lang.String INSIGHT_TAGSET_NS
        The name space used to indicate that the tag is used a tag set.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TagAnnotationData

        public TagAnnotationData​(java.lang.String tag,
                                 boolean asTagSet)
        Creates a new instance.
        Parameters:
        tag - The text of the tag.
        asTagSet - Pass true to create the tag as a tag set, false otherwise.
      • TagAnnotationData

        public TagAnnotationData​(java.lang.String tag)
        Creates a new instance.
        Parameters:
        tag - The text of the tag.
      • TagAnnotationData

        public TagAnnotationData​(java.lang.String tag,
                                 java.lang.String description)
        Creates a new instance.
        Parameters:
        tag - The text of the tag.
        description - The description of the tag.
      • TagAnnotationData

        public TagAnnotationData​(java.lang.String tag,
                                 java.lang.String description,
                                 boolean asTagSet)
        Creates a new instance.
        Parameters:
        tag - The text of the tag.
        description - The description of the tag.
        asTagSet - Pass true to create the tag as a tag set, false otherwise.
      • TagAnnotationData

        public TagAnnotationData​(omero.model.TagAnnotation tag)
        Creates a new instance.
        Parameters:
        tag - The tag to wrap.
      • TagAnnotationData

        public TagAnnotationData​(omero.model.TagAnnotation tag,
                                 java.util.List<omero.model.CommentAnnotation> value)
        Creates a new instance.
        Parameters:
        tag - The tag to wrap.
        value - The descriptions of the tag.
    • Method Detail

      • setDataObjects

        public void setDataObjects​(java.util.Set<DataObject> dataObjects)
        Sets the collection of data objects related to that tag.
        Parameters:
        dataObjects - The value to set.
      • getTags

        public java.util.Set<TagAnnotationData> getTags()
        Returns the collection of tags related to this tag.
        Returns:
        See above.
      • getDataObjects

        public java.util.Set<DataObject> getDataObjects()
        Returns the collection of data objects related to this tag. FIXME
        Returns:
        See above.
      • setTagDescriptions

        public void setTagDescriptions​(java.util.List<TextualAnnotationData> value)
        Sets the tag's descriptions.
        Parameters:
        value - The collection to set.
      • getTagDescriptions

        public java.util.List getTagDescriptions()
        Returns the descriptions linked to that tag.
        Returns:
        See above.
      • setTagDescription

        public void setTagDescription​(java.lang.String value)
        Sets the description of the tag.
        Parameters:
        value - The value to set.
      • getTagDescription

        public java.lang.String getTagDescription()
        Returns the description of the tag.
        Returns:
        See above.
      • setTagValue

        public void setTagValue​(java.lang.String tag)
        Sets the value of the tag.
        Parameters:
        tag - The value to set.
      • getTagValue

        public java.lang.String getTagValue()
        Returns the text of the tag.
        Returns:
        See above.