Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest. This package has two types of users: the consumers that use the API in this package and the providers that implement the API in this package.
Example import for consumers using the API in this package:
Import-Package: org.osgi.util.converter; version="[1.0,2.0)"
Example import for providers implementing the API in this package:
Import-Package: org.osgi.util.converter; version="[1.0,1.1)"
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Converter
The Converter service is used to start a conversion. |
| public interface | ConverterBuilder
A builder to create a new converter with modified behavior based on an existing converter. |
| public interface | ConverterFunction
An functional interface with a convert method that is passed the original object and the target type to perform a custom conversion. |
| public interface | Converting
This interface is used to specify the target that an object should be converted to. |
| public interface | Functioning
This interface is used to specify the target function to perform conversions. |
| pack-priv interface | |
| pack-priv interface | InternalConverting
This interface is the same as the |
| public interface | Specifying<
Either T extends SpecifyingConverting or Specifying.This is the base interface for the |
| public interface | TargetRule
Interface for custom conversion rules. |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | |
| pack-priv abstract class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| public class | ConversionException
This Runtime Exception is thrown when an object is requested to be converted but the conversion cannot be done. |
| pack-priv class | |
| pack-priv class | ConverterImpl
Top-level implementation of the Converter. |
| public class | Converters
Factory class to obtain the standard converter or a new converter builder. |
| pack-priv class | |
| pack-priv class | CustomConverterImpl
A custom converter wraps another converter by adding rules and/or error handlers. |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv abstract class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| public abstract class | Rule<
The type to convert from. F, The type to convert to. T>A rule implementation that works by capturing the type arguments via subclassing. |
| pack-priv class | |
| public class | TypeReference<
The target type for the conversion. T>An object does not carry any runtime information about its generic type. |
| public class | TypeRule<
The type to convert from. F, The type to convert to. T>Rule implementation that works by passing in type arguments rather than subclassing. |
| pack-priv class |