@Version("1.0")
Package org.osgi.util.converter
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)"
-
Interface Summary Interface Description Converter The Converter service is used to start a conversion.ConverterBuilder A builder to create a new converter with modified behavior based on an existing converter.ConverterFunction An functional interface with a convert method that is passed the original object and the target type to perform a custom conversion.Converting This interface is used to specify the target that an object should be converted to.Functioning This interface is used to specify the target function to perform conversions.InternalConverter InternalConverting This interface is the same as theConverting
interface with the addition that the current converter (which may include custom rules) can be set on it.Specifying<T extends Specifying<T>> This is the base interface for theConverting
andFunctioning
interfaces and defines the common modifiers that can be applied to these.TargetRule Interface for custom conversion rules. -
Class Summary Class Description AbstractCollectionDelegate<T> AbstractSpecifying<T extends Specifying<T>> ArrayDelegate<T> CollectionDelegate<T> CollectionSetDelegate<T> ConverterBuilderImpl ConverterImpl Top-level implementation of the Converter.Converters Factory class to obtain the standard converter or a new converter builder.ConvertingImpl CustomConverterImpl A custom converter wraps another converter by adding rules and/or error handlers.DTOUtil DynamicBeanFacade DynamicDictionaryFacade<K,V> DynamicDTOFacade DynamicInterfaceFacade DynamicMapFacade<K,V> DynamicMapLikeFacade<K,V> FunctioningImpl ListDelegate<T> MapDelegate<K,V> MapDelegate.MapEntry<K,V> Rule<F,T> A rule implementation that works by capturing the type arguments via subclassing.SetDelegate<T> TypeReference<T> An object does not carry any runtime information about its generic type.TypeRule<F,T> Rule implementation that works by passing in type arguments rather than subclassing.Util -
Exception Summary Exception Description ConversionException This Runtime Exception is thrown when an object is requested to be converted but the conversion cannot be done.