org.kuali.rice.krms.framework.engine.expression
Interface StringCoercionExtension

All Known Subinterfaces:
ComparisonOperatorService
All Known Implementing Classes:
ComparisonOperatorServiceImpl, DefaultComparisonOperator

public interface StringCoercionExtension

Interface to extend to implement custom coerce of Strings to an instance of the given type, when when validating Proposition Terms

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

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

Method Detail

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


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