Package org.apache.axis2.jaxws.utility
Class ClassUtils
java.lang.Object
org.apache.axis2.jaxws.utility.ClassUtils
Contains static Class utility methods related to method parameter/argument marshalling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClasses(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 ThrowableGets the RootCause for an throwable.static StringgetTextClassName(String text) Converts text of the form [LFoo to the Foo[]static ClassgetWrapperClass(Class primitive) static final booleanisJAXWSClass(Class cls)
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
getRootCause
Gets the RootCause for an throwable. The root cause is defined as the first non-InvocationTargetException.- Parameters:
e- Throwable- Returns:
- Throwable root cause
-
getLoadableClassName
- Parameters:
text- String- Returns:
- String that can be used for Class.forName
-
getTextClassName
Converts text of the form [LFoo to the Foo[] -
getWrapperClass
- Parameters:
primitive-- Returns:
- java wrapper class or null
-
getPrimitiveClass
- Parameters:
wrapper-- Returns:
- primitive clas or null
-
getDefaultPublicConstructor
Get the default public constructor- Parameters:
clazz-- Returns:
- Constructor or null
-
getPrimitiveClass
- Parameters:
name- of primitive type- Returns:
- primitive Class or null
-
isJAXWSClass
- Parameters:
cls-- Returns:
- true if this is a JAX-WS or JAX-WS generated class
-
getClasses
-