gov.nasa.pds.harvest.crawler.metadata.extractor
Class Pds4MetExtractorConfig

java.lang.Object
  extended by gov.nasa.pds.harvest.crawler.metadata.extractor.Pds4MetExtractorConfig
All Implemented Interfaces:
gov.nasa.jpl.oodt.cas.metadata.MetExtractorConfig

public class Pds4MetExtractorConfig
extends Object
implements gov.nasa.jpl.oodt.cas.metadata.MetExtractorConfig

Configuration class for extracting metadata from PDS4 data products.

Author:
mcayanan

Constructor Summary
Pds4MetExtractorConfig(List<Pds4ProductMetadata> candidates)
          Default contstructor.
 
Method Summary
 List<XPath> getMetXPaths(String objectType)
          Gets XPath expressions for an object type.
 boolean hasObjectType(String objectType)
          Determines whether an object type exists in the configuration class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pds4MetExtractorConfig

public Pds4MetExtractorConfig(List<Pds4ProductMetadata> candidates)
Default contstructor.

Parameters:
candidates - A class that contains what product types to extract and which metadata fields to get from those product types.
Method Detail

getMetXPaths

public List<XPath> getMetXPaths(String objectType)
Gets XPath expressions for an object type.

Parameters:
objectType - The PDS object type.
Returns:
A list of XPath expressions based on the given object type.

hasObjectType

public boolean hasObjectType(String objectType)
Determines whether an object type exists in the configuration class.

Parameters:
objectType - The object type to search.
Returns:
true if the supplied object type was found.


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.