org.alfresco.repo.action.evaluator.compare
Class NumericPropertyValueComparator

java.lang.Object
  extended by org.alfresco.repo.action.evaluator.compare.NumericPropertyValueComparator
All Implemented Interfaces:
PropertyValueComparator

public class NumericPropertyValueComparator
extends java.lang.Object
implements PropertyValueComparator

Numeric property value comparator.


Constructor Summary
NumericPropertyValueComparator()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericPropertyValueComparator

public NumericPropertyValueComparator()
Method Detail

compare

public boolean compare(java.io.Serializable propertyValue,
                       java.io.Serializable compareValue,
                       ComparePropertyValueOperation operation)
Description copied from interface: PropertyValueComparator
Compares the value of a property with the compare value, using the operator passed.

Specified by:
compare in interface PropertyValueComparator
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
See Also:
PropertyValueComparator.compare(java.io.Serializable, java.io.Serializable, org.alfresco.repo.action.evaluator.compare.ComparePropertyValueOperation)

registerComparator

public void registerComparator(ComparePropertyValueEvaluator evaluator)
Description copied from interface: PropertyValueComparator
Callback method to register this comparator with the evaluator.

Specified by:
registerComparator in interface PropertyValueComparator
Parameters:
evaluator - the compare property value evaluator
See Also:
PropertyValueComparator.registerComparator(org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator)


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