Package org.apache.axis2.datasource.jaxb
Class XSDListUtils
- java.lang.Object
-
- org.apache.axis2.datasource.jaxb.XSDListUtils
-
public class XSDListUtils extends Object
Utilities to convert to/from xsd:list String to Object[]/List values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
fromStringArray(String[] items, Class type)
static Object
fromXSDListString(String xsdListString, Class type)
Convert from xsdListString to an array/liststatic String[]
toStringArraay(Object container)
static String
toXSDListString(Object container)
Convert to String that can be used as an xsd:list content
-
-
-
Method Detail
-
toXSDListString
public static String toXSDListString(Object container) throws NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
Convert to String that can be used as an xsd:list content- Parameters:
container
- Object- Returns:
- xsd:list String
- Throws:
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException
-
fromXSDListString
public static Object fromXSDListString(String xsdListString, Class type) throws IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, ParseException, DatatypeConfigurationException
Convert from xsdListString to an array/list- Parameters:
xsdListString
-type
- Class of return- Returns:
- Array or List
- Throws:
InvocationTargetException
IllegalAccessException
InstantiationException
NoSuchMethodException
IllegalArgumentException
ParseException
DatatypeConfigurationException
-
fromStringArray
public static Object fromStringArray(String[] items, Class type) throws Exception
- Throws:
Exception
-
-