Class FileAnnotationWrapper

    • Constructor Detail

      • FileAnnotationWrapper

        public FileAnnotationWrapper​(FileAnnotationData annotation)
        Constructor of the AnnotationWrapper class.
        Parameters:
        annotation - FileAnnotationData to wrap.
    • Method Detail

      • getOriginalMimetype

        public java.lang.String getOriginalMimetype()
        Returns the format of the original file.
        Specified by:
        getOriginalMimetype in interface FileAnnotation
        Returns:
        See above.
      • getServerFileMimetype

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

        public java.lang.String getFileFormat()
        Returns the format of the uploaded file.
        Specified by:
        getFileFormat in interface FileAnnotation
        Returns:
        See above.
      • getFileKind

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

        public java.io.File getAttachedFile()
        Returns the file to upload to the server.
        Specified by:
        getAttachedFile in interface FileAnnotation
        Returns:
        See above.
      • getFileName

        public java.lang.String getFileName()
        Returns the name of the file.
        Specified by:
        getFileName in interface FileAnnotation
        Returns:
        See above.
      • getFilePath

        public java.lang.String getFilePath()
        Returns the absolute path to the file.
        Specified by:
        getFilePath in interface FileAnnotation
        Returns:
        See above.
      • getFileSize

        public long getFileSize()
        Returns the size of the file.
        Specified by:
        getFileSize in interface FileAnnotation
        Returns:
        See above.
      • getFileID

        public long getFileID()
        Returns the ID of the file.
        Specified by:
        getFileID in interface FileAnnotation
        Returns:
        See above.
      • isMovieFile

        public boolean isMovieFile()
        Returns true if it is a movie file. false otherwise.
        Specified by:
        isMovieFile in interface FileAnnotation
        Returns:
        See above.