Package digilib.meta
Class SimpleFileMeta
- java.lang.Object
-
- digilib.meta.SimpleFileMeta
-
- All Implemented Interfaces:
FileMeta
- Direct Known Subclasses:
CdstarFileMeta
public class SimpleFileMeta extends Object implements FileMeta
Minimal FileMeta class just holding a MetadataMap.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataMap
meta
-
Constructor Summary
Constructors Constructor Description SimpleFileMeta()
SimpleFileMeta(MetadataMap meta)
Creates FileMeta with the given MetadataMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMeta(DocuDirent file)
check and process metadata for this file.MetadataMap
getFileMeta()
returns a MetadataMap with metadata for this File.void
readMeta(DocuDirent file)
read and store metadata for this file.void
setFileMeta(MetadataMap fileMeta)
set metadata for this file.
-
-
-
Field Detail
-
meta
protected MetadataMap meta
-
-
Constructor Detail
-
SimpleFileMeta
public SimpleFileMeta()
-
SimpleFileMeta
public SimpleFileMeta(MetadataMap meta)
Creates FileMeta with the given MetadataMap.
-
-
Method Detail
-
readMeta
public void readMeta(DocuDirent file)
Description copied from interface:FileMeta
read and store metadata for this file.
-
checkMeta
public void checkMeta(DocuDirent file)
Description copied from interface:FileMeta
check and process metadata for this file.
-
getFileMeta
public MetadataMap getFileMeta()
Description copied from interface:FileMeta
returns a MetadataMap with metadata for this File.- Specified by:
getFileMeta
in interfaceFileMeta
- Returns:
- the MetadataMap
-
setFileMeta
public void setFileMeta(MetadataMap fileMeta)
Description copied from interface:FileMeta
set metadata for this file.- Specified by:
setFileMeta
in interfaceFileMeta
- Parameters:
fileMeta
- the MetadataMap
-
-