ognl
public class DefaultTypeConverter extends java.lang.Object implements TypeConverter
Constructor and Description |
---|
DefaultTypeConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertValue(java.util.Map context,
java.lang.Object value,
java.lang.Class toType) |
java.lang.Object |
convertValue(java.util.Map context,
java.lang.Object target,
java.lang.reflect.Member member,
java.lang.String propertyName,
java.lang.Object value,
java.lang.Class toType)
Converts the given value to a given type.
|
public java.lang.Object convertValue(java.util.Map context, java.lang.Object value, java.lang.Class toType)
public java.lang.Object convertValue(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName, java.lang.Object value, java.lang.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 converted