de.dfki.util.xmlrpc.conversion
Class NoSeparateParameterConverter

java.lang.Object
  extended by de.dfki.util.xmlrpc.conversion.NoSeparateParameterConverter
All Implemented Interfaces:
ParameterConverter<java.lang.Object,java.lang.Object>

public final class NoSeparateParameterConverter
extends java.lang.Object
implements ParameterConverter<java.lang.Object,java.lang.Object>

Class to serve as default value for XmlRpc.converter().


Constructor Summary
NoSeparateParameterConverter()
           
 
Method Summary
 java.lang.Object createFrom(java.lang.Object xmlRepresentation)
          Creates an instance of parameter type T.
 XmlRpc.Type getXmlRpcRepresentationType()
           
 java.lang.Object toXmlRpc(java.lang.Object param)
          Transforms a parameter into it's XML-RPC representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSeparateParameterConverter

public NoSeparateParameterConverter()
Method Detail

createFrom

public java.lang.Object createFrom(java.lang.Object xmlRepresentation)
Description copied from interface: ParameterConverter
Creates an instance of parameter type T.

Specified by:
createFrom in interface ParameterConverter<java.lang.Object,java.lang.Object>
Parameters:
xmlRepresentation - The structure transfered via XML-RPC.
Returns:
The new instance. May also be null.

getXmlRpcRepresentationType

public XmlRpc.Type getXmlRpcRepresentationType()
Specified by:
getXmlRpcRepresentationType in interface ParameterConverter<java.lang.Object,java.lang.Object>
Returns:
The XML-RPC type the converter uses as XML-RPC representation.

toXmlRpc

public java.lang.Object toXmlRpc(java.lang.Object param)
Description copied from interface: ParameterConverter
Transforms a parameter into it's XML-RPC representation.

Specified by:
toXmlRpc in interface ParameterConverter<java.lang.Object,java.lang.Object>
Parameters:
param - The parameter to convert. May be null.
Returns:
A XML-RPC representation (must not be null).


Copyright © 2012. All Rights Reserved.