Class FileData


  • public class FileData
    extends DataObject
    DataObject used to handle the file visible via FS.
    Since:
    3.0-Beta4
    • Constructor Detail

      • FileData

        public FileData​(omero.model.OriginalFile object)
        Creates a new instance.
        Parameters:
        object - The object to store.
      • FileData

        public FileData​(omero.model.OriginalFile object,
                        boolean directory)
        Creates a new instance.
        Parameters:
        object - The object to store.
        directory - Pass true if the object is a directory, false otherwise.
      • FileData

        public FileData​(omero.model.OriginalFile object,
                        boolean directory,
                        boolean hidden)
        Creates a new instance.
        Parameters:
        object - The object to store.
        directory - Pass true if the object is a directory, false otherwise.
    • Method Detail

      • setRegisteredFile

        public void setRegisteredFile​(omero.model.OriginalFile object)
        Sets the registered file.
        Parameters:
        object - The object to store.
      • getDescription

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

        public void setDescription​(java.lang.String description)
        Sets the description.
        Parameters:
        description - The value to set.
      • setRepositoryPath

        public void setRepositoryPath​(java.lang.String path)
        Sets the path to the parent.
        Parameters:
        path - The value to set.
      • getName

        public java.lang.String getName()
        Returns the name of the file.
        Returns:
        See above.
      • getPath

        public java.lang.String getPath()
        Returns the (relative) path of the file.
        Returns:
        See above.
      • getAbsolutePath

        public java.lang.String getAbsolutePath()
        Returns the absolute path.
        Returns:
        See above.
      • isHidden

        public boolean isHidden()
        Returns true if the file is hidden, false otherwise.
        Returns:
        See above.
      • lastModified

        public long lastModified()
        Returns when the file was last modified.
        Returns:
        See above.
      • isDirectory

        public boolean isDirectory()
        Returns true if the file is a directory, false otherwise.
        Returns:
        See above.