Package digilib.meta

Class 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
    • 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.
        Specified by:
        readMeta in interface FileMeta
        Parameters:
        file - the DocuDirent
      • checkMeta

        public void checkMeta​(DocuDirent file)
        Description copied from interface: FileMeta
        check and process metadata for this file.
        Specified by:
        checkMeta in interface FileMeta
        Parameters:
        file - the DocuDirent
      • getFileMeta

        public MetadataMap getFileMeta()
        Description copied from interface: FileMeta
        returns a MetadataMap with metadata for this File.
        Specified by:
        getFileMeta in interface FileMeta
        Returns:
        the MetadataMap
      • setFileMeta

        public void setFileMeta​(MetadataMap fileMeta)
        Description copied from interface: FileMeta
        set metadata for this file.
        Specified by:
        setFileMeta in interface FileMeta
        Parameters:
        fileMeta - the MetadataMap