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.StringINSIGHT_TAGSET_NSThe 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.ObjectgetContent()Returns the textual content of the annotation.java.lang.StringgetContentAsString()Returns the textual content of the annotation.java.util.Set<DataObject>getDataObjects()Returns the collection of data objects related to this tag.java.lang.StringgetTagDescription()Returns the description of the tag.java.util.ListgetTagDescriptions()Returns the descriptions linked to that tag.java.util.Set<TagAnnotationData>getTags()Returns the collection of tags related to this tag.java.lang.StringgetTagValue()Returns the text of the tag.voidsetContent(java.lang.Object content)Sets the text annotation.voidsetDataObjects(java.util.Set<DataObject> dataObjects)Sets the collection of data objects related to that tag.voidsetTagDescription(java.lang.String value)Sets the description of the tag.voidsetTagDescriptions(java.util.List<TextualAnnotationData> value)Sets the tag's descriptions.voidsetTagValue(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- Passtrueto create the tag as a tag set,falseotherwise.
-
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- Passtrueto create the tag as a tag set,falseotherwise.
-
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:
getContentin classAnnotationData- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the textual content of the annotation.- Specified by:
getContentAsStringin classAnnotationData- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the text annotation.- Specified by:
setContentin classAnnotationData- Parameters:
content- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-