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, References references)
          Default contstructor.
 
Method Summary
 boolean containsReferenceTypeMap()
          Determines whether the config contains a reference type map.
 List<XPath> getMetXPaths(String objectType)
          Gets XPath expressions for an object type.
 String getReferenceTypeMap(String modelValue)
          Gets the mapped reference type of the given model value.
 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,
                              References references)
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.

getReferenceTypeMap

public String getReferenceTypeMap(String modelValue)
Gets the mapped reference type of the given model value.

Parameters:
modelValue - The model value.
Returns:
The mapped reference type associated with the given model value. Returns 'null' if nothing was found.

containsReferenceTypeMap

public boolean containsReferenceTypeMap()
Determines whether the config contains a reference type map.

Returns:
'true' if yes, 'false' otherwise.


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