public final class ConverterRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convert(Object o,
Class c,
Object defaultValue) |
static ConverterRegistry |
getInstance() |
ValueConverter |
getValueConverter(Class c) |
static String |
toAttributeValue(Object o)
Converts an object to an attribute value.
|
static Object |
toPropertyValue(String s,
Class c)
Converts a string to a property value.
|
public static ConverterRegistry getInstance()
public ValueConverter getValueConverter(Class c)
public static String toAttributeValue(Object o) throws BeanException
o
- the object.BeanException
- if there was an error during the conversion.public static Object toPropertyValue(String s, Class c) throws BeanException
s
- the string.c
- the target class.BeanException
- if there was an error during the conversion.Copyright © 2017 Hitachi Vantara. All rights reserved.