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.String
ANNOTATIONS
Identifies theDatasetI.ANNOTATIONLINKS
field.static java.lang.String
DESCRIPTION
Identifies theDatasetI.DESCRIPTION
field.static java.lang.String
IMAGE_LINKS
Identifies theDatasetI.IMAGELINKS
field.static java.lang.String
NAME
Identifies theDatasetI.NAME
field.static java.lang.String
PROJECT_LINKS
Identifies theDatasetI.PROJECTLINKS
field.
-
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.String
getDescription()
Returns the description of the dataset.java.util.Set<ImageData>
getImages()
Returns a set of images contained in the dataset.java.lang.String
getName()
Returns the name of the dataset.java.util.Set<ProjectData>
getProjects()
Returns a set of projects containing the dataset.void
setAnnotations(java.util.Set newValue)
Sets the annotations related to this dataset.void
setDescription(java.lang.String description)
Sets the description of the dataset.void
setImages(java.util.Set<ImageData> newValue)
Sets the images contained in this dataset.void
setName(java.lang.String name)
Sets the name of the dataset.void
setProjects(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.NAME
field.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Identifies theDatasetI.DESCRIPTION
field.- See Also:
- Constant Field Values
-
IMAGE_LINKS
public static final java.lang.String IMAGE_LINKS
Identifies theDatasetI.IMAGELINKS
field.- See Also:
- Constant Field Values
-
PROJECT_LINKS
public static final java.lang.String PROJECT_LINKS
Identifies theDatasetI.PROJECTLINKS
field.- See Also:
- Constant Field Values
-
ANNOTATIONS
public static final java.lang.String ANNOTATIONS
Identifies theDatasetI.ANNOTATIONLINKS
field.- 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 theDataset
model 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 benull
if 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.
-
-