public class StringToObjectConverter extends Object
Constructor and Description |
---|
StringToObjectConverter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canBeBuiltFromSimpleString(Class<?> parameterClass) |
static Object |
convertArg(ContextAware ca,
String val,
Class<?> type)
Convert
val a String parameter to an object of a given type. |
public static boolean canBeBuiltFromSimpleString(Class<?> parameterClass)
public static Object convertArg(ContextAware ca, String val, Class<?> type)
val
a String parameter to an object of a given type.ca
- contextval
- string representation of valuetype
- target class to convert val intoCopyright © 2005–2014 QOS.ch. All rights reserved.