Class FileAnnotationData


  • public class FileAnnotationData
    extends AnnotationData
    Annotation to upload files to the server.
    Since:
    OME3.0
    • Field Detail

      • FLIM_NS

        public static final java.lang.String FLIM_NS
        Identifies the FLIM namespace.
        See Also:
        Constant Field Values
      • EXPERIMENTER_PHOTO_NS

        public static final java.lang.String EXPERIMENTER_PHOTO_NS
        The name space used to identify the experimenter photo.
        See Also:
        Constant Field Values
      • COMPANION_FILE_NS

        public static final java.lang.String COMPANION_FILE_NS
        The name space used to indicate that the FileAnnotation is a companion file.
        See Also:
        Constant Field Values
      • LOG_FILE_NS

        public static final java.lang.String LOG_FILE_NS
        The name space used to indicate that the FileAnnotation is an import log file.
        See Also:
        Constant Field Values
      • MOVIE_NS

        public static final java.lang.String MOVIE_NS
        The name space used to indicate that the FileAnnotation is a movie.
        See Also:
        Constant Field Values
      • MEASUREMENT_NS

        public static final java.lang.String MEASUREMENT_NS
        The name space used to indicate that the FileAnnotation is a Measurement file.
        See Also:
        Constant Field Values
      • BULK_ANNOTATIONS_NS

        public static final java.lang.String BULK_ANNOTATIONS_NS
        The name space used to indicate that the FileAnnotation is a Bulk Annotations file.
        See Also:
        Constant Field Values
      • ORIGINAL_METADATA_NAME

        public static final java.lang.String ORIGINAL_METADATA_NAME
        The default name for the original metadata file.
        See Also:
        Constant Field Values
      • PDF

        public static final java.lang.String PDF
        Identifies the PDF file formats.
        See Also:
        Constant Field Values
      • TEXT

        public static final java.lang.String TEXT
        Identifies the Text file formats.
        See Also:
        Constant Field Values
      • CSV

        public static final java.lang.String CSV
        Identifies the CSV file formats.
        See Also:
        Constant Field Values
      • XML

        public static final java.lang.String XML
        Identifies the XML file formats.
        See Also:
        Constant Field Values
      • HTML

        public static final java.lang.String HTML
        Identifies the HTML file formats.
        See Also:
        Constant Field Values
      • HTM

        public static final java.lang.String HTM
        Identifies the HTM file formats.
        See Also:
        Constant Field Values
      • MS_WORD

        public static final java.lang.String MS_WORD
        Identifies the Word file formats.
        See Also:
        Constant Field Values
      • MS_WORD_X

        public static final java.lang.String MS_WORD_X
        Identifies the Word file formats.
        See Also:
        Constant Field Values
      • MS_EXCEL

        public static final java.lang.String MS_EXCEL
        Identifies the Excel file formats.
        See Also:
        Constant Field Values
      • MS_POWER_POINT

        public static final java.lang.String MS_POWER_POINT
        Identifies the Power point file formats.
        See Also:
        Constant Field Values
      • MS_POWER_POINT_X

        public static final java.lang.String MS_POWER_POINT_X
        Identifies the Power point file formats.
        See Also:
        Constant Field Values
      • MS_POWER_POINT_SHOW

        public static final java.lang.String MS_POWER_POINT_SHOW
        Identifies the Power point file formats.
        See Also:
        Constant Field Values
      • RTF

        public static final java.lang.String RTF
        Identifies the RTF file formats.
        See Also:
        Constant Field Values
      • UNKNOWN

        public static final java.lang.String UNKNOWN
        Indicates that the format is not recognized.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileAnnotationData

        public FileAnnotationData​(java.io.File file)
        Creates a new instance.
        Parameters:
        file - The file to attach.
      • FileAnnotationData

        public FileAnnotationData​(omero.model.FileAnnotation annotation)
        Creates a new instance.
        Parameters:
        annotation - The annotation to wrap.
    • Method Detail

      • getFile

        public omero.model.OriginalFile getFile()
        Returns the original file if loaded, null otherwise.
        Returns:
        See above.
      • getOriginalMimetype

        public java.lang.String getOriginalMimetype()
        Returns the format of the original file.
        Returns:
        See above.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description of the annotation.
        Overrides:
        setDescription in class AnnotationData
        Parameters:
        description - The value to set.
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the annotation.
        Overrides:
        getDescription in class AnnotationData
        Returns:
        See above.
      • getServerFileMimetype

        public java.lang.String getServerFileMimetype()
        Returns the file format as defined by the specification, corresponding to the file extension.
        Returns:
        See above.
      • getFileFormat

        public java.lang.String getFileFormat()
        Returns the format of the uploaded file.
        Returns:
        See above.
      • getFileKind

        public java.lang.String getFileKind()
        Returns a user readable description of the file.
        Returns:
        See above.
      • getAttachedFile

        public java.io.File getAttachedFile()
        Returns the file to upload to the server.
        Returns:
        See above.
      • getFileName

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

        public java.lang.String getFilePath()
        Returns the absolute path to the file.
        Returns:
        See above.
      • getFileSize

        public long getFileSize()
        Returns the size of the file.
        Returns:
        See above.
      • getFileID

        public long getFileID()
        Returns the id of the file.
        Returns:
        See above.
      • isMovieFile

        public boolean isMovieFile()
        Returns true if it is a movie file. false otherwise.
        Returns:
        See above.