Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer.msm
Class ExistingMetadataLoader  view ExistingMetadataLoader download ExistingMetadataLoader.java

java.lang.Object
  extended byorg.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

Field Summary
private  java.util.ArrayList parsers
          A list of currently loaded metadata parsers.
 
Constructor Summary
ExistingMetadataLoader()
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsers

private java.util.ArrayList parsers
A list of currently loaded metadata parsers.

Constructor Detail

ExistingMetadataLoader

public ExistingMetadataLoader()
Constructor.

Method Detail

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.