gov.nasa.pds.harvest.crawler.actions
Class LidCheckerAction
java.lang.Object
gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
gov.nasa.pds.harvest.crawler.actions.LidCheckerAction
- All Implemented Interfaces:
- gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType
public class LidCheckerAction
- extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
Pre-ingest Crawler Action that checks to see if the logical identifier
of a PDS4 data product contains URN reserved and/or excluded characters.
- Author:
- mcayanan
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
LOG, phases |
Method Summary |
boolean |
performAction(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Performs the crawler action that looks for URN reserved and
excluded characters within a lid. |
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
getDescription, getId, getPhases, setDescription, setId, setPhases |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LidCheckerAction
public LidCheckerAction()
- Constructor.
performAction
public boolean performAction(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
- Performs the crawler action that looks for URN reserved and
excluded characters within a lid.
- Specified by:
performAction
in class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
- Parameters:
product
- The product file.metadata
- The product metadata.
- Returns:
- true if there are no URN reserved and/or excluded characters
in the lid.
- Throws:
gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
- None thrown.
Copyright © 2010–2014 Planetary Data System. All rights reserved.