Class 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 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.