Package org.apache.axis2.jaxws.utility
Class ClassUtils
- java.lang.Object
-
- org.apache.axis2.jaxws.utility.ClassUtils
-
public class ClassUtils extends Object
Contains static Class utility methods related to method parameter/argument marshalling.
-
-
Constructor Summary
Constructors Constructor Description ClassUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<Class>getClasses(Type type, Set<Class> list)static ConstructorgetDefaultPublicConstructor(Class clazz)Get the default public constructorstatic StringgetLoadableClassName(String text)static ClassgetPrimitiveClass(Class wrapper)static ClassgetPrimitiveClass(String text)static ThrowablegetRootCause(Throwable e)Gets the RootCause for an throwable.static StringgetTextClassName(String text)Converts text of the form [LFoo to the Foo[]static ClassgetWrapperClass(Class primitive)static booleanisJAXWSClass(Class cls)
-
-
-
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
-
-