java.lang.Object
org.greenstone.gatherer.msm.ExistingMetadataLoader
- public class ExistingMetadataLoader
- extends java.lang.Object
Attempts to locate and import any metadata already attatched to files about to be imported. This entire function is part of a critical file copy and so must be fast and reliable (or at least recover nicely when things go wrong). Futhermore this process must be aware of concerns such as previous greenstone collections having metadata sets that could be immediately imported, or hierarchy files needed to turn indexes into something more meaningful. We also must allow for the extensibility of this class to include custom metadata objects such as MARK records etc.
- Version:
- 2.3
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parsers
private java.util.ArrayList parsers
- A list of currently loaded metadata parsers.
ExistingMetadataLoader
public ExistingMetadataLoader()
- Constructor.
searchForMetadata
public boolean searchForMetadata(org.greenstone.gatherer.file.FileNode destination,
org.greenstone.gatherer.file.FileNode source,
boolean folder_level,
boolean dummy_run)
- Locates and assigns metadata for the given file by sequentially applying all active metadata parsers.