Package digilib.meta
Class SimpleDirMeta
- java.lang.Object
-
- digilib.meta.SimpleDirMeta
-
- All Implemented Interfaces:
DirMeta
- Direct Known Subclasses:
CdstarArchiveMeta
public class SimpleDirMeta extends Object implements DirMeta
Minimal DirMeta implementation just holding a MetadataMap.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataMap
meta
-
Constructor Summary
Constructors Constructor Description SimpleDirMeta()
SimpleDirMeta(MetadataMap meta)
-
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 directoryvoid
readMeta(DocuDirectory dir)
read and store metadata for this directory.void
setDirMeta(MetadataMap dirMeta)
sets the metadata for this directory.
-
-
-
Field Detail
-
meta
protected MetadataMap meta
-
-
Constructor Detail
-
SimpleDirMeta
public SimpleDirMeta()
-
SimpleDirMeta
public SimpleDirMeta(MetadataMap meta)
-
-
Method Detail
-
readMeta
public void readMeta(DocuDirectory dir)
Description copied from interface:DirMeta
read and store metadata for this directory.
-
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
-
-