public final class

ConverterFacade

extends Object
implements Converter
java.lang.Object
   ↳ org.apache.commons.beanutils.converters.ConverterFacade

Class Overview

Provides a facade for Converter implementations preventing access to any public API in the implementation, other than that specified by Converter.

This implementation can be used to prevent registered Converter implementations that provide configuration options from being retrieved and modified.

Summary

Public Constructors
ConverterFacade(Converter converter)
Construct a converter which delegates to the specified Converter implementation.
Public Methods
Object convert(Class type, Object value)
Convert the input object into an output object of the specified type by delegating to the underlying Converter implementation.
String toString()
Provide a String representation of this facade implementation sand the underlying Converter it delegates to.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.beanutils.Converter

Public Constructors

public ConverterFacade (Converter converter)

Construct a converter which delegates to the specified Converter implementation.

Parameters
converter The converter to delegate to

Public Methods

public Object convert (Class type, Object value)

Convert the input object into an output object of the specified type by delegating to the underlying Converter implementation.

Parameters
type Data type to which this value should be converted
value The input value to be converted
Returns
  • The converted value.

public String toString ()

Provide a String representation of this facade implementation sand the underlying Converter it delegates to.

Returns
  • A String representation of this facade implementation sand the underlying Converter it delegates to