Package org.apache.xmlrpc.metadata
Class Util
java.lang.Object
org.apache.xmlrpc.metadata.Util
Utility class, which provides services to meta data
handlers and handler mappings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class
This field should solve the problem, that we do not want to depend on the presence of JAXB. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
(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 String
getSignatureType
(Class pType) Returns a signature for the given return type or parameter class.static Object
newInstance
(Class pClass) Creates a new instance ofpClass
.
-
Field Details
-
jaxbElementClass
This field should solve the problem, that we do not want to depend on the presence of JAXB. However, if it is available, we want to support it.
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getSignatureType
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
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
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
Returns a help string for the given method, which is applied to the given class. -
getMethodHelp
Returns a help string for the given method, which is applied to the given class. -
getSignature
Returns a signature for the given parameter set. This is used in error messages. -
newInstance
Creates a new instance ofpClass
.- Throws:
XmlRpcException
-