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 TypeMethodDescriptionvoidcheckMeta(DocuDirectory dir) check and process metadata for this directory.returns metadata for this directoryprotected Map<String, MetadataMap> protected booleanprotected voidreadFileMeta(DocuDirectory dir, Map<String, MetadataMap> fileMeta, String relPath) Read metadata for the files in this directory.voidreadMeta(DocuDirectory dir) read and store metadata for this directory.voidRead metadata from all known parent directories.voidsetDirMeta(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:DirMetaread 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:DirMetacheck and process metadata for this directory. -
getDirMeta
Description copied from interface:DirMetareturns metadata for this directory- Specified by:
getDirMetain interfaceDirMeta- Returns:
- the MetadataMap
-
setDirMeta
Description copied from interface:DirMetasets the metadata for this directory.- Specified by:
setDirMetain interfaceDirMeta- Parameters:
dirMeta- the MetadataMap
-
hasUnresolvedFileMeta
protected boolean hasUnresolvedFileMeta()- Returns:
- has unresolved file meta
-
getUnresolvedFileMeta
- Returns:
- the unresolved file meta
-