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

java.lang.Object
  extended by org.apache.oodt.cas.metadata.preconditions.PreConditionComparator<Boolean>
      extended by org.apache.oodt.cas.metadata.preconditions.ExistanceCheckComparator
          extended by 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)

Constructor Summary
SubProductExistenceCheckComparator()
           
 
Method Summary
 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).
 
Methods inherited from class org.apache.oodt.cas.metadata.preconditions.PreConditionComparator
getDescription, getId, passes, setCompareItem, setDescription, setFileExtension, setId, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubProductExistenceCheckComparator

public SubProductExistenceCheckComparator()
Method Detail

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-2014 Apache OODT. All Rights Reserved.