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

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

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

Configuration class for extracting metadata from PDS4 data products.

Author:
mcayanan

Constructor Summary
PDSMetExtractorConfig(Candidate candidates)
          Default contstructor.
 
Method Summary
 List<String> getMetXPaths(String objectType)
          Gets XPath expressions for an object type.
 PDSNamespaceContext getNamespaceContext()
          Gets a NamespaceContext for use with resolving namespaces in an XML document.
 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

PDSMetExtractorConfig

public PDSMetExtractorConfig(Candidate 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<String> 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.

getNamespaceContext

public PDSNamespaceContext getNamespaceContext()
Gets a NamespaceContext for use with resolving namespaces in an XML document.

Returns:
a PDSNamespaceContext object

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 © 2005-2010 Planetary Data System. All Rights Reserved.