java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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.