Package digilib.meta

Class IndexMetaDirMeta

  • All Implemented Interfaces:
    DirMeta

    public class IndexMetaDirMeta
    extends Object
    implements DirMeta
    Author:
    casties
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • IndexMetaDirMeta

        public IndexMetaDirMeta()
    • Method Detail

      • readMeta

        public void readMeta​(DocuDirectory dir)
        Description copied from interface: DirMeta
        read and store metadata for this directory.
        Specified by:
        readMeta in interface DirMeta
        Parameters:
        dir - the DocuDirectory
      • readParentMeta

        public void readParentMeta​(FsDocuDirectory dir)
        Read metadata from all known parent directories.
        Parameters:
        dir - the FsDocuDirectory
      • readFileMeta

        protected void readFileMeta​(DocuDirectory dir,
                                    Map<String,​MetadataMap> fileMeta,
                                    String relPath)
        Read metadata for the files in this directory. Takes a Map with meta-information, adding the relative path before the lookup.
        Parameters:
        dir - the DocuDirectory
        fileMeta - the FileMeta
        relPath - the relPath
      • checkMeta

        public void checkMeta​(DocuDirectory dir)
        Description copied from interface: DirMeta
        check and process metadata for this directory.
        Specified by:
        checkMeta in interface DirMeta
        Parameters:
        dir - the DocuDirectory
      • getDirMeta

        public MetadataMap getDirMeta()
        Description copied from interface: DirMeta
        returns metadata for this directory
        Specified by:
        getDirMeta in interface DirMeta
        Returns:
        the MetadataMap
      • setDirMeta

        public void setDirMeta​(MetadataMap dirMeta)
        Description copied from interface: DirMeta
        sets the metadata for this directory.
        Specified by:
        setDirMeta in interface DirMeta
        Parameters:
        dirMeta - the MetadataMap
      • hasUnresolvedFileMeta

        protected boolean hasUnresolvedFileMeta()
        Returns:
        has unresolved file meta
      • getUnresolvedFileMeta

        protected Map<String,​MetadataMap> getUnresolvedFileMeta()
        Returns:
        the unresolved file meta