Package digilib.io

Interface DocuDirent

All Superinterfaces:
Comparable<Object>
All Known Implementing Classes:
DocuDirentImpl, DocuImageSet, ImageFileSet, TextFile

public interface DocuDirent extends Comparable<Object>
Interface for an object that represents the content of a DocuDirectory.
Author:
casties
  • Method Details

    • getName

      String getName()
      The name of the file. If this is a Fileset, the method returns the name of the default file (for image filesets the highest resolution file).
      Returns:
      the name
    • getParent

      DocuDirectory getParent()
      Returns the parent Directory.
      Returns:
      the DocuDirectory
    • setParent

      void setParent(DocuDirectory parent)
      Sets the parent Directory.
      Parameters:
      parent - The parent to set
    • readMeta

      void readMeta()
      Reads meta-data for this Fileset if there is any.
    • checkMeta

      void checkMeta()
      Checks metadata and does something with it.
    • getMeta

      FileMeta getMeta()
      Returns the meta-data for this file(set).
      Returns:
      the FileMeta
    • setMeta

      void setMeta(FileMeta fileMeta)
      Sets the meta-data for this file(set).
      Parameters:
      fileMeta - The fileMeta to set
    • compareTo

      int compareTo(Object arg0)
      Comparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).
      Specified by:
      compareTo in interface Comparable<Object>
      Parameters:
      arg0 - the other Object
      See Also: