Package org.apache.axis2.datasource.jaxb
Class XSDListUtils
java.lang.Object
org.apache.axis2.datasource.jaxb.XSDListUtils
Utilities to convert to/from xsd:list String to Object[]/List values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectfromStringArray(String[] items, Class type) static ObjectfromXSDListString(String xsdListString, Class type) Convert from xsdListString to an array/liststatic String[]toStringArraay(Object container) static StringtoXSDListString(Object container) Convert to String that can be used as an xsd:list content
-
Method Details
-
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:
NoSuchMethodExceptionIllegalArgumentExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetException
-
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:
InvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionNoSuchMethodExceptionIllegalArgumentExceptionParseExceptionDatatypeConfigurationException
-
fromStringArray
- Throws:
Exception
-
toStringArraay
- Throws:
Exception
-