Package omero.gateway.model
Class TagAnnotationData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.AnnotationData
-
- omero.gateway.model.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 Summary
Fields Modifier and Type Field Description static java.lang.String
INSIGHT_TAGSET_NS
The name space used to indicate that the tag is used a tag set.-
Fields inherited from class omero.gateway.model.AnnotationData
FILE_TRANSFER_NS
-
-
Constructor Summary
Constructors Constructor Description TagAnnotationData(java.lang.String tag)
Creates a new instance.TagAnnotationData(java.lang.String tag, boolean asTagSet)
Creates a new instance.TagAnnotationData(java.lang.String tag, java.lang.String description)
Creates a new instance.TagAnnotationData(java.lang.String tag, java.lang.String description, boolean asTagSet)
Creates a new instance.TagAnnotationData(omero.model.TagAnnotation tag)
Creates a new instance.TagAnnotationData(omero.model.TagAnnotation tag, java.util.List<omero.model.CommentAnnotation> value)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent()
Returns the textual content of the annotation.java.lang.String
getContentAsString()
Returns the textual content of the annotation.java.util.Set<DataObject>
getDataObjects()
Returns the collection of data objects related to this tag.java.lang.String
getTagDescription()
Returns the description of the tag.java.util.List
getTagDescriptions()
Returns the descriptions linked to that tag.java.util.Set<TagAnnotationData>
getTags()
Returns the collection of tags related to this tag.java.lang.String
getTagValue()
Returns the text of the tag.void
setContent(java.lang.Object content)
Sets the text annotation.void
setDataObjects(java.util.Set<DataObject> dataObjects)
Sets the collection of data objects related to that tag.void
setTagDescription(java.lang.String value)
Sets the description of the tag.void
setTagDescriptions(java.util.List<TextualAnnotationData> value)
Sets the tag's descriptions.void
setTagValue(java.lang.String tag)
Sets the value of the tag.-
Methods inherited from class omero.gateway.model.AnnotationData
getDescription, getLastModified, getNameSpace, setDescription, setNameSpace
-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
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
- Passtrue
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
- Passtrue
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.
-
getContent
public java.lang.Object getContent()
Returns the textual content of the annotation.- Specified by:
getContent
in classAnnotationData
- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the textual content of the annotation.- Specified by:
getContentAsString
in classAnnotationData
- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the text annotation.- Specified by:
setContent
in classAnnotationData
- Parameters:
content
- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-