Interface StringCoercionExtension

All Known Subinterfaces:
ComparisonOperatorService

public interface StringCoercionExtension
Interface to extend to implement custom coerce of Strings to an instance of the given type, when when validating org.kuali.rice.krms.framework.engine.Proposition Terms
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canCoerce(String type, String value)
    Can this StringCoercionExtension coerce the given type and value into an Object?
    coerce(String type, String value)
    Returns an Object of the given type populated with the given value.
  • Method Details

    • canCoerce

      boolean canCoerce(String type, String value)
      Can this StringCoercionExtension coerce the given type and value into an Object?
      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)
      Returns an Object of the given type populated with the given value.
      Parameters:
      type - to coerce Object to
      value - to coerce
      Returns:
      Object of given type with given value