public interface ComparisonOperatorService extends StringCoercionExtension
EngineComparatorExtension for use as a
 ComparisonOperator when comparing
 Proposition Terms| Modifier and Type | Method and Description | 
|---|---|
| boolean | canCoerce(String type,
                  String value)Can this StringCoercionExtension coerce the given type and value into an Object? | 
| boolean | canCompare(Object leftHandSide,
                    Object rightHandSide)Does the service have an Extension that can compare the given objects? | 
| Object | coerce(String type,
            String value)Returns an Object of the given type populated with the given value. | 
| int | compare(Object lhs,
              Object rhs)Returns the int result of a compare between the lhs and rhs objects. | 
| EngineComparatorExtension | findComparatorExtension(Object leftHandSide,
                                              Object rightHandSide)EngineComparatorExtensionthat canCompare the given Objects | 
| StringCoercionExtension | findStringCoercionExtension(String type,
                                                      String value) | 
| List<EngineComparatorExtension> | getOperators()The  ListofEngineComparatorExtensions. | 
| List<StringCoercionExtension> | getStringCoercionExtensions() | 
| void | setOperators(List<EngineComparatorExtension> operators)List | 
| void | setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)The  ListofStringCoercionExtensions. | 
List<EngineComparatorExtension> getOperators()
List of EngineComparatorExtensions.EngineComparatorExtensions.void setOperators(List<EngineComparatorExtension> operators)
operators - boolean canCoerce(String type, String value)
StringCoercionExtensioncanCoerce in interface StringCoercionExtensiontype - of Object to coerce to.value - value to use for coerced typeObject coerce(String type, String value)
StringCoercionExtensioncoerce in interface StringCoercionExtensiontype - to coerce Object tovalue - to coerceint compare(Object lhs, Object rhs)
lhs - left hand side objectrhs - right hand side objectboolean canCompare(Object leftHandSide, Object rightHandSide)
leftHandSide - left hand side ObjectrightHandSide - right hand side ObjectEngineComparatorExtension can compare the lhs and rhs Objects.EngineComparatorExtension findComparatorExtension(Object leftHandSide, Object rightHandSide)
EngineComparatorExtension that canCompare the given ObjectsleftHandSide - left hand side ObjectrightHandSide - right hand side ObjectList<StringCoercionExtension> getStringCoercionExtensions()
void setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
List of StringCoercionExtensions.stringCoercionExtensions - StringCoercionExtension findStringCoercionExtension(String type, String value)
type - to coercevalue - to coerceStringCoercionExtension that can coerce the given type and valueCopyright © 2005–2015 The Kuali Foundation. All rights reserved.