|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.framework.engine.expression.ComparisonOperatorServiceImpl
public class ComparisonOperatorServiceImpl
ComparisonOperatorService
Implementation.
Method Summary | |
---|---|
boolean |
canCoerce(String type,
String value)
Can this StringCoercionExtension coerce the given type and value into an Object? |
boolean |
canCompare(Object lhs,
Object rhs)
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 lhs,
Object rhs)
Returns the EngineComparatorExtension that can compare the lhs and rhs objects. |
StringCoercionExtension |
findStringCoercionExtension(String type,
String value)
Returns the EngineComparatorExtension that can coerce the lhs and rhs objects. |
static ComparisonOperatorService |
getInstance()
Factory method for getting a ComparisonOperatorService |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ComparisonOperatorService getInstance()
ComparisonOperatorService
ComparisonOperatorService
public List<StringCoercionExtension> getStringCoercionExtensions()
getStringCoercionExtensions
in interface ComparisonOperatorService
public void setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
ComparisonOperatorService
List
of StringCoercionExtension
s.
setStringCoercionExtensions
in interface ComparisonOperatorService
public List<EngineComparatorExtension> getOperators()
ComparisonOperatorService
List
of EngineComparatorExtension
s.
getOperators
in interface ComparisonOperatorService
EngineComparatorExtension
s.public void setOperators(List<EngineComparatorExtension> operators)
ComparisonOperatorService
setOperators
in interface ComparisonOperatorService
public EngineComparatorExtension findComparatorExtension(Object lhs, Object rhs)
EngineComparatorExtension
that can compare the lhs and rhs objects. If none, then returns the
DefaultComparisonOperator
findComparatorExtension
in interface ComparisonOperatorService
lhs
- left hand side objectrhs
- right hand side object
public int compare(Object lhs, Object rhs)
ComparisonOperatorService
compare
in interface ComparisonOperatorService
lhs
- left hand side objectrhs
- right hand side object
public boolean canCompare(Object lhs, Object rhs)
ComparisonOperatorService
canCompare
in interface ComparisonOperatorService
lhs
- left hand side Objectrhs
- right hand side Object
EngineComparatorExtension
can compare the lhs and rhs Objects.public StringCoercionExtension findStringCoercionExtension(String type, String value)
EngineComparatorExtension
that can coerce the lhs and rhs objects. If none, then returns the
DefaultComparisonOperator
, which also handles default coercion
findStringCoercionExtension
in interface ComparisonOperatorService
type
- class type to attempt to coerce tovalue
- value to attempt to coerce the given type with
public boolean canCoerce(String type, String value)
StringCoercionExtension
canCoerce
in interface ComparisonOperatorService
canCoerce
in interface StringCoercionExtension
type
- of Object to coerce to.value
- value to use for coerced type
public Object coerce(String type, String value)
StringCoercionExtension
coerce
in interface ComparisonOperatorService
coerce
in interface StringCoercionExtension
type
- to coerce Object tovalue
- to coerce
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |