Class PDS3ProductCrawler

  • All Implemented Interfaces:
    gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType, gov.nasa.jpl.oodt.cas.filemgr.metadata.CoreMetKeys
    Direct Known Subclasses:
    PDS3FileCrawler

    public class PDS3ProductCrawler
    extends PDSProductCrawler
    Class to crawl PDS3 data products.
    Author:
    mcayanan
    • Constructor Detail

      • PDS3ProductCrawler

        public PDS3ProductCrawler()
    • Method Detail

      • getPDS3MetExtractorConfig

        public Pds3MetExtractorConfig getPDS3MetExtractorConfig()
        Gets the PDS3 metextractor configuration object.
        Returns:
        Return the configuration object.
      • setPDS3MetExtractorConfig

        public void setPDS3MetExtractorConfig​(Pds3MetExtractorConfig config)
        Sets the PDS3 metextractor configuration.
        Parameters:
        config - A configuration object.
      • getMetadataForProduct

        protected gov.nasa.jpl.oodt.cas.metadata.Metadata getMetadataForProduct​(File product)
        Extracts metadata from the given product.
        Overrides:
        getMetadataForProduct in class PDSProductCrawler
        Parameters:
        product - A PDS file.
        Returns:
        A Metadata object, which holds metadata from the product.
      • passesPreconditions

        protected boolean passesPreconditions​(File product)
        Determines whether the supplied file passes the necessary pre-conditions for the file to be registered.
        Overrides:
        passesPreconditions in class PDSProductCrawler
        Parameters:
        product - A file.
        Returns:
        true if the file passes.