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

Quick Search    Search Deep

org.greenstone.gatherer.msm.parsers
Class GreenstoneMetadataParser.CollectCFG  view GreenstoneMetadataParser.CollectCFG download GreenstoneMetadataParser.CollectCFG.java

java.lang.Object
  extended byorg.greenstone.gatherer.msm.parsers.GreenstoneMetadataParser.CollectCFG
Enclosing class:
GreenstoneMetadataParser

private class GreenstoneMetadataParser.CollectCFG
extends java.lang.Object

The CollectCFG object encapsulates important metadata information extracted from a collect.cfg file, such as required metadata sets, and hfile associations. As the former are merged, their references are removed from this object, whereas the for the later references are replaced a representation of the hfile itself.


Field Summary
private static java.lang.String CLASSIFY_COMMAND
          The token at the start of a classify command line within the collect.cfg.
private  java.util.HashMap hfiles
          A hash mapping from metadata element name to hierarchy file, or possibly hierarchy object.
private static java.lang.String METADATASET_COMMAND
          The token at the start of a metadataset command line within the collect.cfg.
private  java.util.ArrayList metadatasets
          A list of the metadata sets associated with the collect.cfg file.
 
Constructor Summary
GreenstoneMetadataParser.CollectCFG(java.io.File file)
          Constructor which takes a file assumed to be the location of a collect.cfg file belonging to a Greenstone Collection.
 
Method Summary
 GreenstoneMetadataParser.HFile getHFile(java.lang.String element)
          Attempts to retrieve the HFile object associated with a certain metadata element.
 java.util.ArrayList getMetadataSets()
          Retrieve the list of metadata sets associated with this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metadatasets

private java.util.ArrayList metadatasets
A list of the metadata sets associated with the collect.cfg file.


hfiles

private java.util.HashMap hfiles
A hash mapping from metadata element name to hierarchy file, or possibly hierarchy object.


CLASSIFY_COMMAND

private static final java.lang.String CLASSIFY_COMMAND
The token at the start of a classify command line within the collect.cfg.

See Also:
Constant Field Values

METADATASET_COMMAND

private static final java.lang.String METADATASET_COMMAND
The token at the start of a metadataset command line within the collect.cfg.

See Also:
Constant Field Values
Constructor Detail

GreenstoneMetadataParser.CollectCFG

public GreenstoneMetadataParser.CollectCFG(java.io.File file)
                                    throws java.lang.Exception
Constructor which takes a file assumed to be the location of a collect.cfg file belonging to a Greenstone Collection.

Method Detail

getHFile

public GreenstoneMetadataParser.HFile getHFile(java.lang.String element)
Attempts to retrieve the HFile object associated with a certain metadata element. This may have already been cached, or may need to be loaded. Then again it may not even be necessary.


getMetadataSets

public java.util.ArrayList getMetadataSets()
Retrieve the list of metadata sets associated with this collection.