org.apache.felix.gogo.commands.converter
Class DefaultConverter
java.lang.Object
org.apache.felix.gogo.commands.converter.DefaultConverter
public class DefaultConverter
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConverter
public DefaultConverter(Object loader)
convert
public Object convert(Object source,
Type target)
throws Exception
- Throws:
Exception
convert
public Object convert(Object fromValue,
ReifiedType type)
throws Exception
- Throws:
Exception
convertToNumber
public Object convertToNumber(Number value,
Class toType)
throws Exception
- Throws:
Exception
convertFromString
public Object convertFromString(String value,
Class toType,
Object loader)
throws Exception
- Throws:
Exception
isAssignable
public static boolean isAssignable(Object source,
ReifiedType target)
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.