org.apache.oodt.cas.metadata.preconditions
Class PreCondEvalUtils

java.lang.Object
  extended by org.apache.oodt.cas.metadata.preconditions.PreCondEvalUtils
All Implemented Interfaces:
PreConditionOperatorMetKeys

public class PreCondEvalUtils
extends Object
implements PreConditionOperatorMetKeys

Version:
$Revision$

Evaluation utility for metadata extractor preconditions

.
Author:
bfoster, mattmann

Field Summary
 
Fields inherited from interface org.apache.oodt.cas.metadata.preconditions.PreConditionOperatorMetKeys
EQUAL_TO, GREATER_THAN, LESS_THAN, NOT_EQUAL_TO
 
Constructor Summary
PreCondEvalUtils(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
 boolean eval(List<String> preCondComparatorIds, File product)
          Evaluates whether all preconditions pass or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreCondEvalUtils

public PreCondEvalUtils(org.springframework.context.ApplicationContext applicationContext)
Method Detail

eval

public boolean eval(List<String> preCondComparatorIds,
                    File product)
Evaluates whether all preconditions pass or not

Parameters:
preconditions - The String identifiers of the PreConditionComparators in question
product - the File to test the preconditions against to determine whether or not the MetExtractor should be run or not.
Returns:
True if all preconditions pass and false otherwise


Copyright © 1999-2011 Apache Incubator. All Rights Reserved.