|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.utils.JavaUtils
Utility class to deal with Java language related issues, such as type conversions.
Inner Class Summary | |
static interface |
JavaUtils.ConvertCache
It the argument to the convert(...) method implements the ConvertCache interface, the convert(...) method will use the set/get methods to store and retrieve converted values. |
static class |
JavaUtils.HolderException
|
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
JavaUtils()
|
Method Summary | |
static java.lang.Object |
convert(java.lang.Object arg,
java.lang.Class destClass)
Utility function to convert an Object to some desired Class. |
static java.lang.Object |
getHolderValue(java.lang.Object holder)
Gets the Holder value. |
static java.lang.Class |
getHolderValueType(java.lang.Class type)
Determines if the Class is a Holder class. |
static java.lang.String |
getLoadableClassName(java.lang.String text)
Converts text of the form Foo[] to the proper class name for loading [LFoo |
static java.lang.String |
getMessage(java.lang.String key)
Get the message with the given key. |
static java.lang.String |
getMessage(java.lang.String key,
java.lang.String var)
Get the message with the given key. |
static java.lang.String |
getMessage(java.lang.String key,
java.lang.String[] vars)
Get the message with the given key. |
static java.lang.String |
getMessage(java.lang.String key,
java.lang.String var1,
java.lang.String var2)
Get the message with the given key. |
static java.util.ResourceBundle |
getMessageResourceBundle()
Get the resource bundle that contains all of the AXIS translatable messages. |
static java.lang.String[] |
getParameterNamesFromDebugInfo(java.lang.reflect.Method method)
Get Parameter Names using tt-bytecode |
static java.lang.String |
getTextClassName(java.lang.String text)
Converts text of the form [LFoo to the Foo[] |
static boolean |
isEnumClass(java.lang.Class cls)
Determine if the class is a JAX-RPC enum class. |
static boolean |
isJavaId(java.lang.String id)
isJavaId Returns true if the name is a valid java identifier. |
static boolean |
isJavaKeyword(java.lang.String keyword)
checks if the input string is a valid java keyword. |
static java.lang.String |
makeNonJavaKeyword(java.lang.String keyword)
Turn a java keyword string into a non-Java keyword string. |
static java.lang.String |
replace(java.lang.String name,
java.lang.String oldT,
java.lang.String newT)
replace: Like String.replace except that the old new items are strings. |
static void |
setHolderValue(java.lang.Object holder,
java.lang.Object value)
Sets the Holder value. |
static java.lang.String |
xmlNameToJava(java.lang.String name)
Map an XML name to a Java identifier per the mapping rules of JSR 101 (in version 0.7 this is "Chapter 20: Appendix: Mapping of XML Names" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public JavaUtils()
Method Detail |
public static java.lang.Object convert(java.lang.Object arg, java.lang.Class destClass)
arg
- the array to convertdestClass
- the actual class we wantpublic static boolean isJavaId(java.lang.String id)
id
- to checkpublic static boolean isJavaKeyword(java.lang.String keyword)
public static java.lang.String makeNonJavaKeyword(java.lang.String keyword)
public static java.lang.String getLoadableClassName(java.lang.String text)
public static java.lang.String getTextClassName(java.lang.String text)
public static java.lang.String xmlNameToJava(java.lang.String name)
name
- is the xml namepublic static java.util.ResourceBundle getMessageResourceBundle()
public static java.lang.String getMessage(java.lang.String key) throws java.util.MissingResourceException
public static java.lang.String getMessage(java.lang.String key, java.lang.String var) throws java.util.MissingResourceException
public static java.lang.String getMessage(java.lang.String key, java.lang.String var1, java.lang.String var2) throws java.util.MissingResourceException
public static java.lang.String getMessage(java.lang.String key, java.lang.String[] vars) throws java.util.MissingResourceException
public static final java.lang.String replace(java.lang.String name, java.lang.String oldT, java.lang.String newT)
name
- stringoldt
- old text to replacenewt
- new text to usepublic static java.lang.Class getHolderValueType(java.lang.Class type)
type
- the suspected Holder Classpublic static java.lang.Object getHolderValue(java.lang.Object holder) throws JavaUtils.HolderException
holder
- Holder objectpublic static void setHolderValue(java.lang.Object holder, java.lang.Object value) throws JavaUtils.HolderException
holder
- Holder objectvalue
- is the object valuepublic static boolean isEnumClass(java.lang.Class cls)
public static java.lang.String[] getParameterNamesFromDebugInfo(java.lang.reflect.Method method)
method
- the Java method we're interested in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |