Interface ComparisonOperatorService

All Superinterfaces:
StringCoercionExtension

public interface ComparisonOperatorService extends 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 Details

    • getOperators

      Returns:
      List<EngineComparatorExtension> of configured EngineComparatorExtensions.
    • setOperators

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

      boolean canCoerce(String type, String value)
      Description copied from interface: StringCoercionExtension
      Can this StringCoercionExtension coerce the given type and value into an Object?
      Specified by:
      canCoerce in interface StringCoercionExtension
      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

      Object coerce(String type, String value)
      Description copied from interface: StringCoercionExtension
      Returns an Object of the given type populated with the given value.
      Specified by:
      coerce in interface StringCoercionExtension
      Parameters:
      type - to coerce Object to
      value - to coerce
      Returns:
      Object of given type with given value
    • compare

      int compare(Object lhs, Object rhs)
      Returns the int result of a compare between the lhs and rhs objects.
      Parameters:
      lhs - left hand side object
      rhs - right hand side object
      Returns:
      int result of compare between lhs and rhs objects
    • 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<StringCoercionExtension>
    • setStringCoercionExtensions

      void setStringCoercionExtensions(List<StringCoercionExtension> 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