Package digilib.meta
Class IndexMetaDirMeta
java.lang.Object
digilib.meta.IndexMetaDirMeta
- All Implemented Interfaces:
DirMeta
- Author:
- casties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkMeta
(DocuDirectory dir) check and process metadata for this directory.returns metadata for this directoryprotected Map
<String, MetadataMap> protected boolean
protected void
readFileMeta
(DocuDirectory dir, Map<String, MetadataMap> fileMeta, String relPath) Read metadata for the files in this directory.void
readMeta
(DocuDirectory dir) read and store metadata for this directory.void
Read metadata from all known parent directories.void
setDirMeta
(MetadataMap dirMeta) sets the metadata for this directory.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
IndexMetaDirMeta
public IndexMetaDirMeta()
-
-
Method Details
-
readMeta
Description copied from interface:DirMeta
read and store metadata for this directory. -
readParentMeta
Read metadata from all known parent directories.- Parameters:
dir
- the FsDocuDirectory
-
readFileMeta
Read metadata for the files in this directory. Takes a Map with meta-information, adding the relative path before the lookup.- Parameters:
dir
- the DocuDirectoryfileMeta
- the FileMetarelPath
- the relPath
-
checkMeta
Description copied from interface:DirMeta
check and process metadata for this directory. -
getDirMeta
Description copied from interface:DirMeta
returns metadata for this directory- Specified by:
getDirMeta
in interfaceDirMeta
- Returns:
- the MetadataMap
-
setDirMeta
Description copied from interface:DirMeta
sets the metadata for this directory.- Specified by:
setDirMeta
in interfaceDirMeta
- Parameters:
dirMeta
- the MetadataMap
-
hasUnresolvedFileMeta
protected boolean hasUnresolvedFileMeta()- Returns:
- has unresolved file meta
-
getUnresolvedFileMeta
- Returns:
- the unresolved file meta
-