public class DefaultConverter extends Object
| Constructor and Description |
|---|
DefaultConverter(Object loader) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object fromValue,
ReifiedType type) |
Object |
convert(Object source,
Type target) |
Object |
convertFromString(String value,
Class toType,
Object loader) |
Object |
convertToNumber(Number value,
Class toType) |
static boolean |
isAssignable(Object source,
ReifiedType target) |
public DefaultConverter(Object loader)
public Object convert(Object fromValue, ReifiedType type) throws Exception
Exceptionpublic Object convertToNumber(Number value, Class toType) throws Exception
Exceptionpublic Object convertFromString(String value, Class toType, Object loader) throws Exception
Exceptionpublic static boolean isAssignable(Object source, ReifiedType target)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.