org.apache.axis2.datasource.jaxb
Class XSDListUtils

java.lang.Object
  extended by org.apache.axis2.datasource.jaxb.XSDListUtils

public class XSDListUtils
extends java.lang.Object

Utilities to convert to/from xsd:list String to Object[]/List values.


Method Summary
static java.lang.Object fromStringArray(java.lang.String[] items, java.lang.Class type)
           
static java.lang.Object fromXSDListString(java.lang.String xsdListString, java.lang.Class type)
          Convert from xsdListString to an array/list
static java.lang.String[] toStringArraay(java.lang.Object container)
           
static java.lang.String toXSDListString(java.lang.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 java.lang.String toXSDListString(java.lang.Object container)
                                        throws java.lang.NoSuchMethodException,
                                               java.lang.IllegalArgumentException,
                                               java.lang.InstantiationException,
                                               java.lang.IllegalAccessException,
                                               java.lang.reflect.InvocationTargetException
Convert to String that can be used as an xsd:list content

Parameters:
container - Object
Returns:
xsd:list String
Throws:
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

fromXSDListString

public static java.lang.Object fromXSDListString(java.lang.String xsdListString,
                                                 java.lang.Class type)
                                          throws java.lang.IllegalArgumentException,
                                                 java.lang.NoSuchMethodException,
                                                 java.lang.InstantiationException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.reflect.InvocationTargetException,
                                                 java.text.ParseException,
                                                 javax.xml.datatype.DatatypeConfigurationException
Convert from xsdListString to an array/list

Parameters:
xsdListString -
type - Class of return
Returns:
Array or List
Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.text.ParseException
javax.xml.datatype.DatatypeConfigurationException

fromStringArray

public static java.lang.Object fromStringArray(java.lang.String[] items,
                                               java.lang.Class type)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

toStringArraay

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


Copyright © 2007 Apache Web Services Project. All Rights Reserved.