public class ValueConvertor extends Object
Constructor and Description |
---|
ValueConvertor() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertValue(Class<? extends Object> clazz,
Object value)
Convert a value
|
static Object |
convertValue(Class<? extends Object> clazz,
Object value,
boolean replaceProperties)
Convert a value
|
static Object |
convertValue(Class<? extends Object> clazz,
Object value,
boolean replaceProperties,
boolean trim)
Convert a value
|
static Object |
progressValue(Class<? extends Object> clazz,
Object value)
Progress a value
|
public static Object convertValue(Class<? extends Object> clazz, Object value) throws Throwable
clazz
- the classvalue
- the valueThrowable
- for any errorpublic static Object convertValue(Class<? extends Object> clazz, Object value, boolean replaceProperties) throws Throwable
clazz
- the classvalue
- the valuereplaceProperties
- whether to replace system propertiesThrowable
- for any errorpublic static Object convertValue(Class<? extends Object> clazz, Object value, boolean replaceProperties, boolean trim) throws Throwable
clazz
- the classvalue
- the valuereplaceProperties
- whether to replace system propertiestrim
- whether to trim string valueThrowable
- for any errorCopyright © 2017 JBoss by Red Hat. All rights reserved.