org.kuali.rice.krms.api.engine.expression
Interface ComparisonOperatorService

All Superinterfaces:
StringCoercionExtension
All Known Implementing Classes:
ComparisonOperatorServiceImpl

public interface ComparisonOperatorService
extends StringCoercionExtension

Interface for registering EngineComparatorExtension for use as a ComparisonOperator when comparing Proposition Terms

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 boolean canCompare(Object leftHandSide, Object rightHandSide)
          Does the service have an Extension that can compare the given 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 to use.
 void setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
          The List of StringCoercionExtensions.
 
Methods inherited from interface org.kuali.rice.krms.framework.engine.expression.StringCoercionExtension
canCoerce, coerce
 

Method Detail

getOperators

List<EngineComparatorExtension> getOperators()
The List of EngineComparatorExtensions.

Returns:
List of configured EngineComparatorExtensions.

setOperators

void setOperators(List<EngineComparatorExtension> operators)
List to use.

Parameters:
operators -

canCompare

boolean canCompare(Object leftHandSide,
                   Object rightHandSide)
Does the service have an Extension that can compare the given objects?

Parameters:
leftHandSide - left hand side Object
rightHandSide - right hand side Object
Returns:
boolean true a configured EngineComparatorExtension can compare the lhs and rhs Objects.

findComparatorExtension

EngineComparatorExtension findComparatorExtension(Object leftHandSide,
                                                  Object rightHandSide)
EngineComparatorExtension that canCompare the given Objects

Parameters:
leftHandSide - left hand side Object
rightHandSide - right hand side Object
Returns:
the EngineComparatorExtension that can compare the given Objects.

getStringCoercionExtensions

List<StringCoercionExtension> getStringCoercionExtensions()
Returns:
List

setStringCoercionExtensions

void setStringCoercionExtensions(List<StringCoercionExtension> stringCoercionExtensions)
The List of StringCoercionExtensions.

Parameters:
stringCoercionExtensions -

findStringCoercionExtension

StringCoercionExtension findStringCoercionExtension(String type,
                                                    String value)
Parameters:
type - to coerce
value - to coerce
Returns:
StringCoercionExtension that can coerce the given type and value


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.