Package org.apache.xmlrpc.common
Interface TypeConverter
-
- All Known Implementing Classes:
TypeConverterFactoryImpl.CastCheckingTypeConverter,TypeConverterFactoryImpl.IdentityTypeConverter,TypeConverterFactoryImpl.ListTypeConverter,TypeConverterFactoryImpl.PrimitiveTypeConverter
public interface TypeConverterATypeConverteris 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 exampleList, orVector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectbackConvert(java.lang.Object result)Converts the given object into its generic representation.java.lang.Objectconvert(java.lang.Object pObject)Converts the given object into the required representation.booleanisConvertable(java.lang.Object pObject)Returns, whether theTypeConverteris ready to handle the given object.
-
-
-
Method Detail
-
isConvertable
boolean isConvertable(java.lang.Object pObject)
Returns, whether theTypeConverteris ready to handle the given object. If so,convert(Object)may be called.
-
convert
java.lang.Object convert(java.lang.Object pObject)
Converts the given object into the required representation.
-
backConvert
java.lang.Object backConvert(java.lang.Object result)
Converts the given object into its generic representation.
-
-