public interface ComparisonOperatorService extends StringCoercionExtension
EngineComparatorExtension
for use as a
ComparisonOperator
when comparing
Proposition
Term
sModifier 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)
EngineComparatorExtension that canCompare the given Objects |
StringCoercionExtension |
findStringCoercionExtension(String type,
String value) |
List<EngineComparatorExtension> |
getOperators()
The
List of EngineComparatorExtension s. |
List<StringCoercionExtension> |
getStringCoercionExtensions() |
void |
setOperators(List<EngineComparatorExtension> operators)
List
|
void |
setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
The
List of StringCoercionExtension s. |
List<EngineComparatorExtension> getOperators()
List
of EngineComparatorExtension
s.EngineComparatorExtension
s.void setOperators(List<EngineComparatorExtension> operators)
operators
- boolean canCoerce(String type, String value)
StringCoercionExtension
canCoerce
in interface StringCoercionExtension
type
- of Object to coerce to.value
- value to use for coerced typeObject coerce(String type, String value)
StringCoercionExtension
coerce
in interface StringCoercionExtension
type
- 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 StringCoercionExtension
s.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.