org.apache.axis2.datasource.jaxb
Class XSDListUtils

java.lang.Object
  extended by 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
static Object fromStringArray(String[] items, Class type)
           
static Object fromXSDListString(String xsdListString, Class type)
          Convert from xsdListString to an array/list
static String[] toStringArraay(Object container)
           
static String toXSDListString(Object container)
          Convert to String that can be used as an xsd:list content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

toStringArraay

public static String[] toStringArraay(Object container)
                               throws Exception
Throws:
Exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.