Class Pds4MetExtractorConfig
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.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 SummaryConstructors Constructor Description Pds4MetExtractorConfig(List<Pds4ProductMetadata> candidates, References references)Default contstructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsReferenceTypeMap()Determines whether the config contains a reference type map.List<XPath>getMetXPaths(String objectType)Gets XPath expressions for an object type.StringgetReferenceTypeMap(String modelValue)Gets the mapped reference type of the given model value.booleanhasObjectType(String objectType)Determines whether an object type exists in the configuration class.
 
- 
- 
- 
Constructor Detail- 
Pds4MetExtractorConfigpublic 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- 
getMetXPathspublic 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.
 
 - 
hasObjectTypepublic 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.
 
 - 
getReferenceTypeMappublic 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.
 
 - 
containsReferenceTypeMappublic boolean containsReferenceTypeMap() Determines whether the config contains a reference type map.- Returns:
- 'true' if yes, 'false' otherwise.
 
 
- 
 
-