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 org.apache.axis2.util.JavaUtils
Common Java Utilites
-
Field Summary
Fields inherited from class org.apache.axis2.util.JavaUtils
EMPTY_STRING_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionstatic URIConvert a String to a URI, handling special characters in the String such as spaces.static ClassgetCheckedException(Throwable throwable, Method method) Get checked exceptionstatic StringgetPackageFromNamespace(String namespace) Namespace 2 Package algorithm as defined by the JAXB Specificationstatic StringgetPackageFromNamespace(String namespace, boolean appendUnderscoreToKeyword) static ListgetPackagesFromNamespace(String namespace) static StringGet a string containing the stack of the current locationstatic StringGet a string containing the stack of the specified exceptionMethods 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 Details
-
getPackagesFromNamespace
- Parameters:
namespace-- Returns:
- List of String containing 1 or 2 packages
-
getPackageFromNamespace
Namespace 2 Package algorithm as defined by the JAXB Specification- Parameters:
Namespace-- Returns:
- String representing Namespace
- See Also:
-
getPackageFromNamespace
- Parameters:
Namespace-apend- underscore to keyword- Returns:
- String representing Namespace
-
stackToString
Get a string containing the stack of the current location- Returns:
- String
-
stackToString
Get a string containing the stack of the specified exception- Parameters:
e-- Returns:
-
getCheckedException
Get checked exception- Parameters:
throwable- Throwablemethod- Method- Returns:
- Class of the checked exception or null
-
createURI
Convert a String to a URI, handling special characters in the String such as spaces.- Parameters:
pathString- The String to be converted to a URI- Returns:
- a URI or null if the String can't be converted.
-