org.springframework.extensions.config.evaluator
Class StringEvaluator
java.lang.Object
org.springframework.extensions.config.evaluator.StringEvaluator
- All Implemented Interfaces:
- Evaluator
public class StringEvaluator
- extends Object
- implements Evaluator
Evaluator that tests whether an object is equal to a string
- Author:
- gavinc
Method Summary |
boolean |
applies(Object obj,
String condition)
Tests whether the given object is equal to the string given in the condition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringEvaluator
public StringEvaluator()
applies
public boolean applies(Object obj,
String condition)
- Tests whether the given object is equal to the string given in the condition
- Specified by:
applies
in interface Evaluator
- Parameters:
obj
- The object to use as the basis for the testcondition
- The condition to test
- Returns:
- true if this evaluator applies to the given object, false otherwise
- See Also:
Evaluator.applies(java.lang.Object, java.lang.String)
Copyright © 2009 SpringSource, Inc. All Rights Reserved.