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
Exception
public Object convertToNumber(Number value, Class toType) throws Exception
Exception
public Object convertFromString(String value, Class toType, Object loader) throws Exception
Exception
public static boolean isAssignable(Object source, ReifiedType target)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.