org.apache.axis2.jaxws.utility
Class ClassUtils

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

public class ClassUtils
extends java.lang.Object

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


Constructor Summary
ClassUtils()
           
 
Method Summary
static java.lang.reflect.Constructor getDefaultPublicConstructor(java.lang.Class clazz)
          Get the default public constructor
static java.lang.String getLoadableClassName(java.lang.String text)
           
static java.lang.Class getPrimitiveClass(java.lang.Class wrapper)
           
static java.lang.Class getPrimitiveClass(java.lang.String text)
           
static java.lang.Throwable getRootCause(java.lang.Throwable e)
          Gets the RootCause for an throwable.
static java.lang.String getTextClassName(java.lang.String text)
          Converts text of the form [LFoo to the Foo[]
static java.lang.Class getWrapperClass(java.lang.Class primitive)
           
static boolean isJAXWSClass(java.lang.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 java.lang.Throwable getRootCause(java.lang.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 java.lang.String getLoadableClassName(java.lang.String text)
Parameters:
text - String
Returns:
String that can be used for Class.forName

getTextClassName

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


getWrapperClass

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

getPrimitiveClass

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

getDefaultPublicConstructor

public static java.lang.reflect.Constructor getDefaultPublicConstructor(java.lang.Class clazz)
Get the default public constructor

Parameters:
clazz -
Returns:
Constructor or null

getPrimitiveClass

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

isJAXWSClass

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


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