public class SubProductExistenceCheckComparator extends ExistanceCheckComparator
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.| Constructor and Description |
|---|
SubProductExistenceCheckComparator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilePath() |
protected int |
performCheck(File product,
Boolean compareItem) |
void |
setFilePath(String filePath)
Sets the sub-product file path (must be relative to the product absolute path).
|
getDescription, getId, passes, setCompareItem, setDescription, setFileExtension, setId, setTypepublic String getFilePath()
public void setFilePath(String filePath)
protected int performCheck(File product, Boolean compareItem) throws PreconditionComparatorException
performCheck in class ExistanceCheckComparatorPreconditionComparatorExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.