public class SimpleTypeUtil extends Object
Constructor and Description |
---|
SimpleTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertFromXml(String value,
TypeDefinition type)
Convert a string belonging to a XML simple type to the binding specified
by the given type definition.
|
static <T> String |
convertToXml(T value,
TypeDefinition type)
Convert a simple type value to a string
|
public static <T> String convertToXml(T value, TypeDefinition type)
T
- the type of the valuevalue
- the valuetype
- the type definition of the simple typenull
if
the value is null
public static Object convertFromXml(String value, TypeDefinition type)
value
- the string valuetype
- the type definitionnull
if the string was null
, the
converted object with the binding type if possible, otherwise the
original stringBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a