|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The (user-specific) parameter typeXML_REP_T
- It's XML-RPC representation.public interface ParameterConverter<T,XML_REP_T>
Controls instance transformation from a type T to it's XML-RPC representation
and vice versa. NOTE: Parameter converters are allowed to return null
-instances
of the parameter type and null
-instances can be passed as argument for the toXmlRpc(Object)
method
but toXmlRpc(Object)
must always return a non-null value.
Method Summary | |
---|---|
T |
createFrom(XML_REP_T xmlRpcRepresentation)
Creates an instance of parameter type T. |
XmlRpc.Type |
getXmlRpcRepresentationType()
|
XML_REP_T |
toXmlRpc(T param)
Transforms a parameter into it's XML-RPC representation. |
Method Detail |
---|
T createFrom(XML_REP_T xmlRpcRepresentation) throws TypeConversionException
xmlRpcRepresentation
- The structure transfered via XML-RPC.
null
.
TypeConversionException
XML_REP_T toXmlRpc(T param) throws TypeConversionException
param
- The parameter to convert. May be null
.
null
).
TypeConversionException
XmlRpc.Type getXmlRpcRepresentationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |