Package omero.gateway.model
Class DatasetData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.DatasetData
-
public class DatasetData extends DataObject
The data that makes up an OME Dataset along with links to its contained Images and enclosing Project as well as the Experimenter that owns this Dataset.- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringANNOTATIONSIdentifies theDatasetI.ANNOTATIONLINKSfield.static java.lang.StringDESCRIPTIONIdentifies theDatasetI.DESCRIPTIONfield.static java.lang.StringIMAGE_LINKSIdentifies theDatasetI.IMAGELINKSfield.static java.lang.StringNAMEIdentifies theDatasetI.NAMEfield.static java.lang.StringPROJECT_LINKSIdentifies theDatasetI.PROJECTLINKSfield.
-
Constructor Summary
Constructors Constructor Description DatasetData()Creates a new instance.DatasetData(omero.model.Dataset dataset)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<AnnotationData>getAnnotations()Returns the annotations related to this dataset.java.util.Map<java.lang.Long,java.lang.Long>getAnnotationsCounts()Returns the number of annotations linked to the object, key: id of the user, value: number of annotation.java.lang.StringgetDescription()Returns the description of the dataset.java.util.Set<ImageData>getImages()Returns a set of images contained in the dataset.java.lang.StringgetName()Returns the name of the dataset.java.util.Set<ProjectData>getProjects()Returns a set of projects containing the dataset.voidsetAnnotations(java.util.Set newValue)Sets the annotations related to this dataset.voidsetDescription(java.lang.String description)Sets the description of the dataset.voidsetImages(java.util.Set<ImageData> newValue)Sets the images contained in this dataset.voidsetName(java.lang.String name)Sets the name of the dataset.voidsetProjects(java.util.Set<ProjectData> newValue)Sets the projects containing the dataset.-
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
-
NAME
public static final java.lang.String NAME
Identifies theDatasetI.NAMEfield.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Identifies theDatasetI.DESCRIPTIONfield.- See Also:
- Constant Field Values
-
IMAGE_LINKS
public static final java.lang.String IMAGE_LINKS
Identifies theDatasetI.IMAGELINKSfield.- See Also:
- Constant Field Values
-
PROJECT_LINKS
public static final java.lang.String PROJECT_LINKS
Identifies theDatasetI.PROJECTLINKSfield.- See Also:
- Constant Field Values
-
ANNOTATIONS
public static final java.lang.String ANNOTATIONS
Identifies theDatasetI.ANNOTATIONLINKSfield.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DatasetData
public DatasetData()
Creates a new instance.
-
DatasetData
public DatasetData(omero.model.Dataset dataset)
Creates a new instance.- Parameters:
dataset- Back pointer to theDatasetmodel object. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the object isnull.
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Sets the name of the dataset.- Parameters:
name- The name of the dataset. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the name isnull.
-
getName
public java.lang.String getName()
Returns the name of the dataset.- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the dataset.- Parameters:
description- The description of the dataset.
-
getDescription
public java.lang.String getDescription()
Returns the description of the dataset.- Returns:
- See above.
-
getAnnotationsCounts
public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationsCounts()
Returns the number of annotations linked to the object, key: id of the user, value: number of annotation. The map may benullif no annotation.- Returns:
- See above.
-
getImages
public java.util.Set<ImageData> getImages()
Returns a set of images contained in the dataset.- Returns:
- See above.
-
getProjects
public java.util.Set<ProjectData> getProjects()
Returns a set of projects containing the dataset.- Returns:
- See above.
-
setImages
public void setImages(java.util.Set<ImageData> newValue)
Sets the images contained in this dataset.- Parameters:
newValue- The set of images.
-
setProjects
public void setProjects(java.util.Set<ProjectData> newValue)
Sets the projects containing the dataset.- Parameters:
newValue- The set of projects.
-
getAnnotations
public java.util.Set<AnnotationData> getAnnotations()
Returns the annotations related to this dataset. Not sure we are going to keep this method.- Returns:
- See Above
-
setAnnotations
public void setAnnotations(java.util.Set newValue)
Sets the annotations related to this dataset.- Parameters:
newValue- The set of annotations.
-
-