public final class ConverterRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ConverterRegistry |
getInstance() |
ValueConverter |
getValueConverter(java.lang.Class c) |
static java.lang.String |
toAttributeValue(java.lang.Object o)
Converts an object to an attribute value.
|
static java.lang.Object |
toPropertyValue(java.lang.String s,
java.lang.Class c)
Converts a string to a property value.
|
public static ConverterRegistry getInstance()
public ValueConverter getValueConverter(java.lang.Class c)
public static java.lang.String toAttributeValue(java.lang.Object o) throws BeanException
o
- the object.BeanException
- if there was an error during the conversion.public static java.lang.Object toPropertyValue(java.lang.String s, java.lang.Class c) throws BeanException
s
- the string.BeanException
- if there was an error during the conversion.