Class 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 Detail

      • NAME

        public static final java.lang.String NAME
        Identifies the DatasetI.NAME field.
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Identifies the DatasetI.DESCRIPTION field.
        See Also:
        Constant Field Values
      • IMAGE_LINKS

        public static final java.lang.String IMAGE_LINKS
        Identifies the DatasetI.IMAGELINKS field.
        See Also:
        Constant Field Values
      • PROJECT_LINKS

        public static final java.lang.String PROJECT_LINKS
        Identifies the DatasetI.PROJECTLINKS field.
        See Also:
        Constant Field Values
      • ANNOTATIONS

        public static final java.lang.String ANNOTATIONS
        Identifies the DatasetI.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 the Dataset model object. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the object is null.
    • 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 be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • 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 be null 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.