org.apache.oodt.cas.metadata.preconditions
Class PreCondEvalUtils
java.lang.Object
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
|
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 |
PreCondEvalUtils
public PreCondEvalUtils(org.springframework.context.ApplicationContext applicationContext)
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 questionproduct - 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.