public class DefaultTypeConverter extends Object implements TypeConverter
Constructor and Description |
---|
DefaultTypeConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
convertValue(Map context,
Object value,
Class toType) |
Object |
convertValue(Map context,
Object target,
Member member,
String propertyName,
Object value,
Class toType)
Converts the given value to a given type.
|
public Object convertValue(Map context, Object target, Member member, String propertyName, Object value, Class toType)
TypeConverter
convertValue
in interface TypeConverter
context
- OGNL context under which the conversion is being donetarget
- target object in which the property is being setmember
- member (Constructor, Method or Field) being setpropertyName
- property name being setvalue
- value to be convertedtoType
- type to which value is convertedCopyright © 1997–2021 The Apache Software Foundation. All rights reserved.