org.apache.xmlrpc.metadata
Class Util
java.lang.Object
org.apache.xmlrpc.metadata.Util
public class Util
extends java.lang.Object
Utility class, which provides services to meta data
handlers and handler mappings.
static String | getMethodHelp(Class pClass, Method pMethod) - Returns a help string for the given method, which
is applied to the given class.
|
static String | getMethodHelp(Class pClass, Method[] pMethods) - Returns a help string for the given method, which
is applied to the given class.
|
static String[] | getSignature(Method pMethod) - Returns a signature for the given methods.
|
static String[][] | getSignature(Method[] pMethods) - Returns a signature for the given methods.
|
static String | getSignature(Object[] args) - Returns a signature for the given parameter set.
|
static String | getSignatureType(Class pType) - Returns a signature for the given return type or
parameter class.
|
static Object | newInstance(Class pClass) - Creates a new instance of
pClass .
|
getMethodHelp
public static String getMethodHelp(Class pClass,
Method pMethod)
Returns a help string for the given method, which
is applied to the given class.
getMethodHelp
public static String getMethodHelp(Class pClass,
Method[] pMethods)
Returns a help string for the given method, which
is applied to the given class.
getSignature
public static String[] getSignature(Method pMethod)
Returns a signature for the given methods.
pMethod
- Method, for which a signature is
being queried.
- Signature string, or null, if no signature
is available.
getSignature
public static String[][] getSignature(Method[] pMethods)
Returns a signature for the given methods.
pMethods
- Methods, for which a signature is
being queried.
- Signature string, or null, if no signature
is available.
getSignature
public static String getSignature(Object[] args)
Returns a signature for the given parameter set. This is used
in error messages.
getSignatureType
public static String getSignatureType(Class pType)
Returns a signature for the given return type or
parameter class.
pType
- The class for which a signature is being
queried.
- Signature, if known, or null.
newInstance
public static Object newInstance(Class pClass)
throws XmlRpcException
Creates a new instance of pClass
.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.