gov.nasa.pds.harvest.crawler.actions
Class AssociationCheckerAction

java.lang.Object
  extended by gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
      extended by gov.nasa.pds.harvest.crawler.actions.AssociationCheckerAction
All Implemented Interfaces:
gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType

public class AssociationCheckerAction
extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction

Class to check the validity of an association entry in a product.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
LOG, phases
 
Constructor Summary
AssociationCheckerAction()
          Constructor.
 
Method Summary
 boolean performAction(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
          Perform the action.
 
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
 

Constructor Detail

AssociationCheckerAction

public AssociationCheckerAction()
Constructor.

Method Detail

performAction

public boolean performAction(File product,
                             gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
                      throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
Perform the action.

Specified by:
performAction in class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
Parameters:
product - The product associated with the association entries.
metadata - The metadata associated with the given product.
Returns:
Method returns false if any of the association entries are missing a LID or LID-VID reference or the reference_association_type tag.
Throws:
gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException


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