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 String
s to an instance of the given type, when when validating
Proposition
Term
s
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
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)
- Parameters:
type
- to coerce Object tovalue
- to coerce
- Returns:
- Object of given type with given value
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.