Top Description Interfaces Classes
module org.osgi.util.converter

Package org.osgi.util.converter

Annotations
@Version:1.0.9
Imports
org.osgi.annotation.versioning.Version

Converter Package Version 1.0.

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)"

Author
$Id: e6ed17a3a5e805db5895ce491c0315927c2805e4 $

Interface Summary

Modifier and TypeInterface 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 Converting interface with the addition that the current converter (which may include custom rules) can be set on it.

public interface
Specifying<T extends Specifying<T>>

This is the base interface for the Converting and Functioning interfaces and defines the common modifiers that can be applied to these.

public interface
TargetRule

Interface for custom conversion rules.

Class Summary

Modifier and TypeClass 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