org.alfresco.web.evaluator
Class StringEqualsComparator

java.lang.Object
  extended by org.alfresco.web.evaluator.StringEqualsComparator
All Implemented Interfaces:
Comparator

public class StringEqualsComparator
extends java.lang.Object
implements Comparator

Compares a node value against an optionally case-insensitive value


Constructor Summary
StringEqualsComparator()
           
 
Method Summary
 boolean compare(java.lang.Object nodeValue)
          Run the compare logic and return the result.
 void setCaseInsensitive(java.lang.Boolean caseInsensitive)
          Setter for case insensitive comparison override
 void setValue(java.lang.String value)
          Setter for static string value to compare to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringEqualsComparator

public StringEqualsComparator()
Method Detail

setCaseInsensitive

public void setCaseInsensitive(java.lang.Boolean caseInsensitive)
Setter for case insensitive comparison override

Parameters:
caseInsensitive -

setValue

public void setValue(java.lang.String value)
Setter for static string value to compare to

Parameters:
value -

compare

public boolean compare(java.lang.Object nodeValue)
Description copied from interface: Comparator
Run the compare logic and return the result.

Specified by:
compare in interface Comparator
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.