org.alfresco.repo.action.evaluator.compare
Interface PropertyValueComparator

All Known Implementing Classes:
DatePropertyValueComparator, NumericPropertyValueComparator, TextPropertyValueComparator

public interface PropertyValueComparator

Property value comparator interface


Method Summary
 boolean compare(java.io.Serializable propertyValue, java.io.Serializable compareValue, ComparePropertyValueOperation operation)
          Compares the value of a property with the compare value, using the operator passed.
 void registerComparator(ComparePropertyValueEvaluator evaluator)
          Callback method to register this comparator with the evaluator.
 

Method Detail

registerComparator

void registerComparator(ComparePropertyValueEvaluator evaluator)
Callback method to register this comparator with the evaluator.

Parameters:
evaluator - the compare property value evaluator

compare

boolean compare(java.io.Serializable propertyValue,
                java.io.Serializable compareValue,
                ComparePropertyValueOperation operation)
Compares the value of a property with the compare value, using the operator passed.

Parameters:
propertyValue - the property value
compareValue - the compare value
operation - the operation used to compare the two values
Returns:
the result of the comparison, true if successful false otherwise


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.