|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.util.xmlrpc.common.ApiParameter
public class ApiParameter
Represents a parameter (either passed to a method or returned from it). All the annotation information is retrieved an stored. This information includes annotations for the parameter and annotations for the method (return value).
Field Summary | |
---|---|
static ApiParameter |
OBJECT_API_PARAMETER
|
Method Summary | |
---|---|
static void |
checkParameterConverter(java.lang.Class<? extends ParameterConverter<?,?>> cls,
XmlRpc.Type xmlRpcType)
|
static ApiParameter |
createCallParameterFrom(XmlRpc.Type xmlRpcType)
|
static ApiParameter |
createFrom(java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.reflect.Type apiParameterType,
java.lang.Class<?> apiParameterClass)
Collects the information about a single api parameter. |
static ApiParameter |
createFrom(java.lang.Class<?> targetClass)
|
static ApiParameter |
createReturnParameter(java.lang.reflect.Method m)
Creates a parameter description for a method return parameter. |
static ApiParameter |
createReturnParameterFrom(XmlRpc.Type xmlRpcType)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Class<?> |
getApiRepresentationClass()
|
ApiParameter |
getContainerContent()
|
java.lang.Class<? extends Convertible<?>> |
getConvertableClass()
|
ParameterConverter<?,?> |
getSeparateParameterConverter()
|
XmlRpc.Type |
getXmlRpcType()
|
int |
hashCode()
|
boolean |
isArray()
|
boolean |
isEnumeration(java.lang.Object value)
|
boolean |
isXmlRpcCompatible()
|
static java.util.logging.Logger |
log()
|
void |
setApiRepresentationClass(java.lang.Class<?> apiClass)
|
void |
setXmlRpcCompatible(boolean isXmlRpcCompatible)
|
void |
setXmlRpcType(XmlRpc.Type xmlRpcType)
|
java.lang.String |
toString()
|
boolean |
usesConvertable()
|
static java.lang.Class<? extends Convertible<?>> |
validateConvertibleClass(java.lang.Class<?> cls,
XmlRpc.Type xmlRpcType)
Checks if a class fulfills the requirements of a convertible object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ApiParameter OBJECT_API_PARAMETER
Method Detail |
---|
public static java.util.logging.Logger log()
public boolean isEnumeration(java.lang.Object value)
public static ApiParameter createReturnParameter(java.lang.reflect.Method m) throws TypeConversionException
TypeConversionException
public static ApiParameter createFrom(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.reflect.Type apiParameterType, java.lang.Class<?> apiParameterClass) throws TypeConversionException
parameterAnnotations
- annotations associated with the method the parameter belongs to (may
be null
or empty).apiParameterType
- type information taken from the methods generic type description.apiParameterClass
- class of the parameter.
TypeConversionException
public static java.lang.Class<? extends Convertible<?>> validateConvertibleClass(java.lang.Class<?> cls, XmlRpc.Type xmlRpcType) throws TypeConversionException
TypeConversionException
public static void checkParameterConverter(java.lang.Class<? extends ParameterConverter<?,?>> cls, XmlRpc.Type xmlRpcType) throws TypeConversionException
TypeConversionException
public static ApiParameter createCallParameterFrom(XmlRpc.Type xmlRpcType)
public static ApiParameter createReturnParameterFrom(XmlRpc.Type xmlRpcType)
public static ApiParameter createFrom(java.lang.Class<?> targetClass) throws TypeConversionException
TypeConversionException
public boolean isArray()
public java.lang.Class<?> getApiRepresentationClass()
public void setApiRepresentationClass(java.lang.Class<?> apiClass)
public XmlRpc.Type getXmlRpcType()
public void setXmlRpcType(XmlRpc.Type xmlRpcType)
public ParameterConverter<?,?> getSeparateParameterConverter()
public java.lang.Class<? extends Convertible<?>> getConvertableClass()
public boolean isXmlRpcCompatible()
public void setXmlRpcCompatible(boolean isXmlRpcCompatible)
public boolean usesConvertable()
public ApiParameter getContainerContent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |