org.apache.axis2.jaxws.utility
Class ClassUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.utility.ClassUtils

public class ClassUtils
extends Object

Contains static Class utility methods related to method parameter/argument marshalling.


Constructor Summary
ClassUtils()
           
 
Method Summary
static Set<Class> getClasses(Type type, Set<Class> list)
           
static Constructor getDefaultPublicConstructor(Class clazz)
          Get the default public constructor
static String getLoadableClassName(String text)
           
static Class getPrimitiveClass(Class wrapper)
           
static Class getPrimitiveClass(String text)
           
static Throwable getRootCause(Throwable e)
          Gets the RootCause for an throwable.
static String getTextClassName(String text)
          Converts text of the form [LFoo to the Foo[]
static Class getWrapperClass(Class primitive)
           
static boolean isJAXWSClass(Class cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtils

public ClassUtils()
Method Detail

getRootCause

public static Throwable getRootCause(Throwable e)
Gets the RootCause for an throwable. The root cause is defined as the first non-InvocationTargetException.

Parameters:
e - Throwable
Returns:
Throwable root cause

getLoadableClassName

public static String getLoadableClassName(String text)
Parameters:
text - String
Returns:
String that can be used for Class.forName

getTextClassName

public static String getTextClassName(String text)
Converts text of the form [LFoo to the Foo[]


getWrapperClass

public static Class getWrapperClass(Class primitive)
Parameters:
primitive -
Returns:
java wrapper class or null

getPrimitiveClass

public static Class getPrimitiveClass(Class wrapper)
Parameters:
wrapper -
Returns:
primitive clas or null

getDefaultPublicConstructor

public static Constructor getDefaultPublicConstructor(Class clazz)
Get the default public constructor

Parameters:
clazz -
Returns:
Constructor or null

getPrimitiveClass

public static Class getPrimitiveClass(String text)
Parameters:
name - of primitive type
Returns:
primitive Class or null

isJAXWSClass

public static final boolean isJAXWSClass(Class cls)
Parameters:
cls -
Returns:
true if this is a JAX-WS or JAX-WS generated class

getClasses

public static Set<Class> getClasses(Type type,
                                    Set<Class> list)


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