|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.util.xmlrpc.conversion.StandardXmlRpcTypeConverter
public class StandardXmlRpcTypeConverter
Type converter doing only the standard conversion work (actually, does only type checks and passes values through)
Constructor Summary | |
---|---|
StandardXmlRpcTypeConverter()
|
Method Summary | |
---|---|
boolean |
areCompatible(XmlRpc.Type t,
java.lang.Object o)
Checks, if an instance o is compliant with XML-RPC type t . |
java.lang.Object |
convertToUserRepresentation(ApiParameter apiParam,
java.lang.Object parameterValueInXmlRpcRep)
Converts the given object from a generic XML-RPC representation into the required user-representation. |
java.lang.Object |
convertToXmlRpcRepresentation(ApiParameter apiParam,
java.lang.Object parameterValueInUserRep)
Converts the given object into its generic XML-RPC representation. |
XmlRpc.Type |
convertToXmlRpcRepresentationClass(java.lang.Class<?> userRepClass)
|
static XmlRpc.Type |
mapJavaTypeToXmlRpcType(java.lang.Class<?> cls)
Maps a java class to an XML-RPC type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardXmlRpcTypeConverter()
Method Detail |
---|
public static XmlRpc.Type mapJavaTypeToXmlRpcType(java.lang.Class<?> cls)
cls
- The class to map.
null
, if the
mapping failed.public boolean areCompatible(XmlRpc.Type t, java.lang.Object o)
o
is compliant with XML-RPC type t
.
areCompatible
in interface TypeConverter
public java.lang.Object convertToUserRepresentation(ApiParameter apiParam, java.lang.Object parameterValueInXmlRpcRep) throws TypeConversionException
TypeConverter
convertToUserRepresentation
in interface TypeConverter
TypeConversionException
public java.lang.Object convertToXmlRpcRepresentation(ApiParameter apiParam, java.lang.Object parameterValueInUserRep) throws TypeConversionException
TypeConverter
convertToXmlRpcRepresentation
in interface TypeConverter
TypeConversionException
- if a conversion was not possible (wrong type, no valid constructor, wrong factory).public XmlRpc.Type convertToXmlRpcRepresentationClass(java.lang.Class<?> userRepClass) throws TypeConversionException
TypeConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |