Package org.apache.axis2.jaxws.utility
Class JavaUtils
- java.lang.Object
-
- org.apache.axis2.util.JavaUtils
-
- org.apache.axis2.jaxws.utility.JavaUtils
-
public class JavaUtils extends JavaUtils
Common Java Utilites
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.util.JavaUtils
EMPTY_STRING_ARRAY
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
createURI(String pathString)
Convert a String to a URI, handling special characters in the String such as spaces.static Class
getCheckedException(Throwable throwable, Method method)
Get checked exceptionstatic String
getPackageFromNamespace(String namespace)
Namespace 2 Package algorithm as defined by the JAXB Specificationstatic String
getPackageFromNamespace(String namespace, boolean appendUnderscoreToKeyword)
static List
getPackagesFromNamespace(String namespace)
static String
stackToString()
Get a string containing the stack of the current locationstatic String
stackToString(Throwable e)
Get a string containing the stack of the specified exception-
Methods inherited from class org.apache.axis2.util.JavaUtils
callStackToString, capitalizeFirstChar, getObjectIdentity, getWrapperClass, getWrapperClass, hasUpperCase, indexOfIgnoreCase, isFalse, isFalse, isFalse, isFalseExplicitly, isFalseExplicitly, isFalseExplicitly, isJavaId, isJavaKeyword, isTrue, isTrue, isTrue, isTrueExplicitly, isTrueExplicitly, isTrueExplicitly, makeNonJavaKeyword, replace, split, xmlNameToJava, xmlNameToJavaIdentifier
-
-
-
-
Method Detail
-
getPackagesFromNamespace
public static List getPackagesFromNamespace(String namespace)
- Parameters:
namespace
-- Returns:
- List of String containing 1 or 2 packages
-
getPackageFromNamespace
public static String getPackageFromNamespace(String namespace)
Namespace 2 Package algorithm as defined by the JAXB Specification- Parameters:
Namespace
-- Returns:
- String representing Namespace
- See Also:
getPackagesFromNamespace(java.lang.String)
-
getPackageFromNamespace
public static String getPackageFromNamespace(String namespace, boolean appendUnderscoreToKeyword)
- Parameters:
Namespace
-apend
- underscore to keyword- Returns:
- String representing Namespace
-
stackToString
public static String stackToString()
Get a string containing the stack of the current location- Returns:
- String
-
stackToString
public static String stackToString(Throwable e)
Get a string containing the stack of the specified exception- Parameters:
e
-- Returns:
-
getCheckedException
public static Class getCheckedException(Throwable throwable, Method method)
Get checked exception- Parameters:
throwable
- Throwablemethod
- Method- Returns:
- Class of the checked exception or null
-
-