Package digilib.io
Class DocuDirentImpl
java.lang.Object
digilib.io.DocuDirentImpl
- All Implemented Interfaces:
DocuDirent,Comparable<Object>
- Direct Known Subclasses:
TextFile
Abstract directory entry in a DocuDirectory.
- Author:
- casties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static FileOps.FileClassthe file class of this fileprotected FileMetametadata for this fileprotected DocuDirectorythe parent directory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidChecks metadata and does something with it.intComparator using the file name.abstract FilegetFile()static FileOps.FileClassgetMeta()Returns the meta-data for this file(set).getName()The name of the file.Returns the parent Directory.voidreadMeta()Reads meta-data for this Fileset if there is any.voidSets the meta-data for this file(set).voidsetParent(DocuDirectory parent) Sets the parent Directory.
-
Field Details
-
fileClass
the file class of this file -
meta
metadata for this file -
parent
the parent directory
-
-
Constructor Details
-
DocuDirentImpl
public DocuDirentImpl()
-
-
Method Details
-
getFile
-
checkMeta
public abstract void checkMeta()Description copied from interface:DocuDirentChecks metadata and does something with it.- Specified by:
checkMetain interfaceDocuDirent
-
getMeta
Description copied from interface:DocuDirentReturns the meta-data for this file(set).- Specified by:
getMetain interfaceDocuDirent- Returns:
- the FileMeta
-
setMeta
Description copied from interface:DocuDirentSets the meta-data for this file(set).- Specified by:
setMetain interfaceDocuDirent- Parameters:
fileMeta- The fileMeta to set
-
readMeta
public void readMeta()Description copied from interface:DocuDirentReads meta-data for this Fileset if there is any.- Specified by:
readMetain interfaceDocuDirent
-
getName
Description copied from interface:DocuDirentThe 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).- Specified by:
getNamein interfaceDocuDirent- Returns:
- the name
-
getParent
Description copied from interface:DocuDirentReturns the parent Directory.- Specified by:
getParentin interfaceDocuDirent- Returns:
- the DocuDirectory
-
setParent
Description copied from interface:DocuDirentSets the parent Directory.- Specified by:
setParentin interfaceDocuDirent- Parameters:
parent- The parent to set
-
getFileClass
- Returns:
- the FileClass
-
compareTo
Description copied from interface:DocuDirentComparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
compareToin interfaceComparable<Object>- Specified by:
compareToin interfaceDocuDirent- Parameters:
arg0- the other Object- See Also:
-