Interface ComparisonOperatorService
- All Superinterfaces:
StringCoercionExtension
Interface for registering
EngineComparatorExtension for use as a
org.kuali.rice.krms.framework.engine.expression.ComparisonOperator when comparing
org.kuali.rice.krms.framework.engine.Proposition Terms- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this StringCoercionExtension coerce the given type and value into an Object?booleancanCompare(Object leftHandSide, Object rightHandSide) Does the service have an Extension that can compare the given objects?Returns an Object of the given type populated with the given value.intReturns the int result of a compare between the lhs and rhs objects.findComparatorExtension(Object leftHandSide, Object rightHandSide) EngineComparatorExtensionthat canCompare the given ObjectsfindStringCoercionExtension(String type, String value) TheListofEngineComparatorExtensions.voidsetOperators(List<EngineComparatorExtension> operators) List<EngineComparatorExtension> to use.voidsetStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions) TheListofStringCoercionExtensions.
-
Method Details
-
getOperators
List<EngineComparatorExtension> getOperators()TheListofEngineComparatorExtensions.- Returns:
- List<EngineComparatorExtension> of configured
EngineComparatorExtensions.
-
setOperators
List<EngineComparatorExtension> to use. -
canCoerce
Description copied from interface:StringCoercionExtensionCan this StringCoercionExtension coerce the given type and value into an Object?- Specified by:
canCoercein interfaceStringCoercionExtension- Parameters:
type- of Object to coerce to.value- value to use for coerced type- Returns:
- boolean true if this StringCoercionExtension can coerce this type and value
-
coerce
Description copied from interface:StringCoercionExtensionReturns an Object of the given type populated with the given value.- Specified by:
coercein interfaceStringCoercionExtension- Parameters:
type- to coerce Object tovalue- to coerce- Returns:
- Object of given type with given value
-
compare
Returns the int result of a compare between the lhs and rhs objects.- Parameters:
lhs- left hand side objectrhs- right hand side object- Returns:
- int result of compare between lhs and rhs objects
-
canCompare
Does the service have an Extension that can compare the given objects?- Parameters:
leftHandSide- left hand side ObjectrightHandSide- right hand side Object- Returns:
- boolean true a configured
EngineComparatorExtensioncan compare the lhs and rhs Objects.
-
findComparatorExtension
EngineComparatorExtensionthat canCompare the given Objects- Parameters:
leftHandSide- left hand side ObjectrightHandSide- right hand side Object- Returns:
- the EngineComparatorExtension that can compare the given Objects.
-
getStringCoercionExtensions
List<StringCoercionExtension> getStringCoercionExtensions()- Returns:
- List<StringCoercionExtension>
-
setStringCoercionExtensions
TheListofStringCoercionExtensions. -
findStringCoercionExtension
- Parameters:
type- to coercevalue- to coerce- Returns:
StringCoercionExtensionthat can coerce the given type and value
-