|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueConverter
Converts a value (possibly null) to an alternate data type; typically from String to boolean or a number type.
Typically, a ValueConverter will select a particular
TypeConverter
to perform the conversion. The
ValueConverterImpl
implementation also makes use of built-in
PropertyEditor
s.
Method Summary | |
---|---|
Object |
coerceValue(Object value,
Class desiredType)
Performs a conversion of a value to a particular type. |
Method Detail |
---|
Object coerceValue(Object value, Class desiredType)
value
- The value to be converted (may be null)desiredType
- the type that will be converted to
org.apache.hivemind.ApplicationRuntimeException
- if the value can not be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |