org.alfresco.web.evaluator
Interface Comparator

All Known Implementing Classes:
NullValueComparator, StringEqualsComparator

public interface Comparator

Contract supported by all classes that provide a comparison service for the ValueEvaluator class.

The comparator is free to inject (via Spring config) whatever criteria are needed to decide on the outcome.


Method Summary
 boolean compare(java.lang.Object nodeValue)
          Run the compare logic and return the result.
 

Method Detail

compare

boolean compare(java.lang.Object nodeValue)
Run the compare logic and return the result.

Parameters:
nodeValue - Object the node's value to compare
Returns:
true for a successful result, false otherwise


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