org.apache.oodt.cas.metadata.preconditions
Class SubProductExistenceCheckComparator
java.lang.Object
org.apache.oodt.cas.metadata.preconditions.PreConditionComparator<Boolean>
org.apache.oodt.cas.metadata.preconditions.ExistanceCheckComparator
org.apache.oodt.cas.metadata.preconditions.SubProductExistenceCheckComparator
- All Implemented Interfaces:
- SpringSetIdInjectionType
public class SubProductExistenceCheckComparator
- extends ExistanceCheckComparator
A PreConditionComparator that checks for the existence of an arbitrary file (a "sub-product")
within the product directory.
If the product is not a directory, or the filePath field is not specified, this class behaves
exactly like the superclass ExistanceCheckComparator.
- Author:
- luca (Luca Cinquini)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubProductExistenceCheckComparator
public SubProductExistenceCheckComparator()
getFilePath
public String getFilePath()
setFilePath
public void setFilePath(String filePath)
- Sets the sub-product file path (must be relative to the product absolute path).
performCheck
protected int performCheck(File product,
Boolean compareItem)
throws PreconditionComparatorException
- Overrides:
performCheck in class ExistanceCheckComparator
- Throws:
PreconditionComparatorException
Copyright © 1999-2013 Apache OODT. All Rights Reserved.