Package digilib.io
Interface DocuDirent
- All Superinterfaces:
- Comparable<Object>
- All Known Implementing Classes:
- DocuDirentImpl,- DocuImageSet,- ImageFileSet,- TextFile
Interface for an object that represents the content of a DocuDirectory.
- Author:
- casties
- 
Method SummaryModifier and TypeMethodDescriptionvoidChecks metadata and does something with it.intComparator using the file name.getMeta()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.
- 
Method Details- 
getNameString 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
 
- 
getParentDocuDirectory getParent()Returns the parent Directory.- Returns:
- the DocuDirectory
 
- 
setParentSets the parent Directory.- Parameters:
- parent- The parent to set
 
- 
readMetavoid readMeta()Reads meta-data for this Fileset if there is any.
- 
checkMetavoid checkMeta()Checks metadata and does something with it.
- 
getMetaFileMeta getMeta()Returns the meta-data for this file(set).- Returns:
- the FileMeta
 
- 
setMetaSets the meta-data for this file(set).- Parameters:
- fileMeta- The fileMeta to set
 
- 
compareToComparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
- compareToin interface- Comparable<Object>
- Parameters:
- arg0- the other Object
- See Also:
 
 
-