org.apache.xmlrpc.common

Interface TypeConverter

public interface TypeConverter

A {@link TypeConverter} is used when actually calling the handler method or actually returning the result object. It's purpose is to convert a single parameter or the return value from a generic representation (for example an array of objects) to an alternative representation, which is actually used in the methods signature (for example {@link List}, or {@link Vector}.
Method Summary
ObjectbackConvert(Object result)
Converts the given object into its generic representation.
Objectconvert(Object pObject)
Converts the given object into the required representation.
booleanisConvertable(Object pObject)
Returns, whether the {@link TypeConverter} is ready to handle the given object.

Method Detail

backConvert

public Object backConvert(Object result)
Converts the given object into its generic representation.

convert

public Object convert(Object pObject)
Converts the given object into the required representation.

isConvertable

public boolean isConvertable(Object pObject)
Returns, whether the {@link TypeConverter} is ready to handle the given object. If so, {@link #convert(Object)} may be called.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.