Package org.apache.xmlrpc.metadata
Class Util
- java.lang.Object
-
- org.apache.xmlrpc.metadata.Util
-
public class Util extends Object
Utility class, which provides services to meta data handlers and handler mappings.
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMethodHelp(Class pClass, Method pMethod)Returns a help string for the given method, which is applied to the given class.static StringgetMethodHelp(Class pClass, Method[] pMethods)Returns a help string for the given method, which is applied to the given class.static StringgetSignature(Object[] args)Returns a signature for the given parameter set.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 StringgetSignatureType(Class pType)Returns a signature for the given return type or parameter class.static ObjectnewInstance(Class pClass)Creates a new instance ofpClass.
-
-
-
Method Detail
-
getSignatureType
public static String getSignatureType(Class pType)
Returns a signature for the given return type or parameter class.- Parameters:
pType- The class for which a signature is being queried.- Returns:
- Signature, if known, or null.
-
getSignature
public static String[][] getSignature(Method[] pMethods)
Returns a signature for the given methods.- Parameters:
pMethods- Methods, for which a signature is being queried.- Returns:
- Signature string, or null, if no signature is available.
-
getSignature
public static String[] getSignature(Method pMethod)
Returns a signature for the given methods.- Parameters:
pMethod- Method, for which a signature is being queried.- Returns:
- Signature string, or null, if no signature is available.
-
getMethodHelp
public static String getMethodHelp(Class pClass, Method[] pMethods)
Returns a help string for the given method, which is applied to the given class.
-
getMethodHelp
public static String getMethodHelp(Class pClass, Method pMethod)
Returns a help string for the given method, which is applied to the given class.
-
getSignature
public static String getSignature(Object[] args)
Returns a signature for the given parameter set. This is used in error messages.
-
newInstance
public static Object newInstance(Class pClass) throws XmlRpcException
Creates a new instance ofpClass.- Throws:
XmlRpcException
-
-