Package digilib.meta
Class IndexMetaDirMeta
- java.lang.Object
-
- digilib.meta.IndexMetaDirMeta
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description IndexMetaDirMeta()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMeta(DocuDirectory dir)
check and process metadata for this directory.MetadataMap
getDirMeta()
returns metadata for this directoryprotected Map<String,MetadataMap>
getUnresolvedFileMeta()
protected boolean
hasUnresolvedFileMeta()
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
readParentMeta(FsDocuDirectory dir)
Read metadata from all known parent directories.void
setDirMeta(MetadataMap dirMeta)
sets the metadata for this directory.
-
-
-
Method Detail
-
readMeta
public void readMeta(DocuDirectory dir)
Description copied from interface:DirMeta
read and store metadata for this directory.
-
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 DocuDirectoryfileMeta
- the FileMetarelPath
- the relPath
-
checkMeta
public void checkMeta(DocuDirectory dir)
Description copied from interface:DirMeta
check and process metadata for this directory.
-
getDirMeta
public MetadataMap getDirMeta()
Description copied from interface:DirMeta
returns metadata for this directory- Specified by:
getDirMeta
in interfaceDirMeta
- Returns:
- the MetadataMap
-
setDirMeta
public void setDirMeta(MetadataMap dirMeta)
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
protected Map<String,MetadataMap> getUnresolvedFileMeta()
- Returns:
- the unresolved file meta
-
-