Class FolderData


  • public class FolderData
    extends DataObject
    Pojo wrapper for an OME Folder.
    • Constructor Detail

      • FolderData

        public FolderData()
        Creates a new instance.
      • FolderData

        public FolderData​(omero.model.Folder folder)
        Creates a new instance.
        Parameters:
        folder - Back pointer to the Folder model object. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the object is null.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the Folder
        Returns:
        See above
      • setName

        public void setName​(java.lang.String name)
        Set the name of the Folder
        Parameters:
        name - The name
      • getDescription

        public java.lang.String getDescription()
        Get the description of the Folder
        Returns:
        See above
      • setDescription

        public void setDescription​(java.lang.String desc)
        Set the description of the Folder
        Parameters:
        desc - The description
      • getParentFolder

        public FolderData getParentFolder()
        Get the the parent folder
        Returns:
        See above.
      • setParentFolder

        public void setParentFolder​(omero.model.Folder parent)
        Set the the parent folder
        Parameters:
        parent - The parent folder
      • setFolder

        public void setFolder​(omero.model.Folder f)
        Set the Folder
        Parameters:
        f - The folder
      • subfolderCount

        public int subfolderCount()
        Get the number of sub folders
        Returns:
        See above.
      • imageCount

        public int imageCount()
        Get the number of images linked to this folder
        Returns:
        See above.
      • roiCount

        public int roiCount()
        Get the number of ROIs linked to this folder
        Returns:
        See above.
      • copyChildFolders

        public java.util.List<FolderData> copyChildFolders()
        Copy the list of child folders, see Folder.copyChildFolders()
        Returns:
        See above.
      • copyAnnotationLinks

        public java.util.List<AnnotationData> copyAnnotationLinks()
        Copy the list of annotation links, see Folder.copyAnnotationLinks()
        Returns:
        See above.
      • copyImageLinks

        public java.util.List<ImageData> copyImageLinks()
        Copy the list of image links, see Folder.copyImageLinks()
        Returns:
        See above.
      • copyROILinks

        public java.util.List<ROIData> copyROILinks()
        Copy the list of roi links, see Folder.copyRoiLinks()
        Returns:
        See above.
      • toString

        public java.lang.String toString()
        Description copied from class: DataObject
        Overridden to return the name of the class and the object id.
        Overrides:
        toString in class DataObject
        See Also:
        Object.toString()
      • getFolderPathString

        public java.lang.String getFolderPathString()
        Returns the folder path as string
        Returns:
        See above
      • getFolderPathString

        public java.lang.String getFolderPathString​(char pathSeparator)
        Returns the folder path as string using a custom path separator
        Parameters:
        pathSeparator - The path separator character
        Returns:
        See above