Package digilib.io

Class DocuDirentImpl

    • Field Detail

      • fileClass

        protected static FileOps.FileClass fileClass
        the file class of this file
      • meta

        protected FileMeta meta
        metadata for this file
    • Constructor Detail

      • DocuDirentImpl

        public DocuDirentImpl()
    • Method Detail

      • getFile

        public abstract File getFile()
      • checkMeta

        public abstract void checkMeta()
        Description copied from interface: DocuDirent
        Checks metadata and does something with it.
        Specified by:
        checkMeta in interface DocuDirent
      • getMeta

        public FileMeta getMeta()
        Description copied from interface: DocuDirent
        Returns the meta-data for this file(set).
        Specified by:
        getMeta in interface DocuDirent
        Returns:
        the FileMeta
      • setMeta

        public void setMeta​(FileMeta fileMeta)
        Description copied from interface: DocuDirent
        Sets the meta-data for this file(set).
        Specified by:
        setMeta in interface DocuDirent
        Parameters:
        fileMeta - The fileMeta to set
      • readMeta

        public void readMeta()
        Description copied from interface: DocuDirent
        Reads meta-data for this Fileset if there is any.
        Specified by:
        readMeta in interface DocuDirent
      • getName

        public String getName()
        Description copied from interface: DocuDirent
        The name of the file. If this is a Fileset, the method returns the name of the default file (for image filesets the highest resolution file).
        Specified by:
        getName in interface DocuDirent
        Returns:
        the name
      • setParent

        public void setParent​(DocuDirectory parent)
        Description copied from interface: DocuDirent
        Sets the parent Directory.
        Specified by:
        setParent in interface DocuDirent
        Parameters:
        parent - The parent to set
      • getFileClass

        public static FileOps.FileClass getFileClass()
        Returns:
        the FileClass