|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComparisonOperatorService
Interface for registering EngineComparatorExtension for use as a
ComparisonOperator when comparing
Proposition Terms
| Method Summary | |
|---|---|
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)
EngineComparatorExtension that canCompare the given Objects |
StringCoercionExtension |
findStringCoercionExtension(String type,
String value)
|
List<EngineComparatorExtension> |
getOperators()
The List of EngineComparatorExtensions. |
List<StringCoercionExtension> |
getStringCoercionExtensions()
|
void |
setOperators(List<EngineComparatorExtension> operators)
List |
void |
setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
The List of StringCoercionExtensions. |
| Method Detail |
|---|
List<EngineComparatorExtension> getOperators()
List of EngineComparatorExtensions.
EngineComparatorExtensions.void setOperators(List<EngineComparatorExtension> operators)
operators -
boolean canCoerce(String type,
String value)
StringCoercionExtension
canCoerce in interface StringCoercionExtensiontype - of Object to coerce to.value - value to use for coerced type
Object coerce(String type,
String value)
StringCoercionExtension
coerce in interface StringCoercionExtensiontype - to coerce Object tovalue - to coerce
int compare(Object lhs,
Object rhs)
lhs - left hand side objectrhs - right hand side object
boolean canCompare(Object leftHandSide,
Object rightHandSide)
leftHandSide - left hand side ObjectrightHandSide - right hand side Object
EngineComparatorExtension can compare the lhs and rhs Objects.
EngineComparatorExtension findComparatorExtension(Object leftHandSide,
Object rightHandSide)
EngineComparatorExtension that canCompare the given Objects
leftHandSide - left hand side ObjectrightHandSide - right hand side Object
List<StringCoercionExtension> getStringCoercionExtensions()
void setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
List of StringCoercionExtensions.
stringCoercionExtensions -
StringCoercionExtension findStringCoercionExtension(String type,
String value)
type - to coercevalue - to coerce
StringCoercionExtension that can coerce the given type and value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||