Top Description Methods
org.osgi.util.converter

pack-priv Interface InternalConverting

extends Converting
Known Direct Implementers
org.osgi.util.converter.ConvertingImpl, org.osgi.util.converter.CustomConverterImpl.ConvertingWrapper
Imports
java.lang.reflect.Type

This interface is the same as the Converting interface with the addition that the current converter (which may include custom rules) can be set on it. This allows the converter to be re-entrant and use itself for sub-conversions if applicable.
Author
$Id: 34554b6f31451cd5b4f435e370d27f5767c8dedf $

Method Summary

Modifier and TypeMethod and Description
public <
The type to convert to.
T
>
T

Returns:

The converted object.
to
(Type
A Type object to represent the target type to be converted to.
type
,
InternalConverter
Internal converter
converter
)

Invoke the conversion while passing the top-level converter.

Inherited from org.osgi.util.converter.Converting:
tototo

Method Detail

toback to summary
public <T> T to(Type type, InternalConverter converter)

Invoke the conversion while passing the top-level converter. The top-level converter is needed when performing embedded conversions such as in map elements. When using a custom converter, the top converter must be used for this.

Parameters
<T>
The type to convert to.
type:Type

A Type object to represent the target type to be converted to.

converter:InternalConverter

Internal converter

Returns:T

The converted object.