public interface TypeConverter
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 List
, or
Vector
.Modifier and Type | Method and Description |
---|---|
Object |
backConvert(Object result)
Converts the given object into its generic
representation.
|
Object |
convert(Object pObject)
Converts the given object into the required
representation.
|
boolean |
isConvertable(Object pObject)
Returns, whether the
TypeConverter is
ready to handle the given object. |
boolean isConvertable(Object pObject)
TypeConverter
is
ready to handle the given object. If so,
convert(Object)
may be called.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.