|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Conversion | |
|---|---|
| org.apache.commons.convert | The main API for using the convert project. |
| org.apache.commons.convert.conversion |
Implementations of Conversion and ConversionFactory. |
| Uses of Conversion in org.apache.commons.convert |
|---|
| Methods in org.apache.commons.convert that return Conversion | |
|---|---|
Conversion |
ConversionRegistry.getConversion(Object value,
Class fromType,
Class toType)
Gets the conversion object that best matches the from and to types. |
Conversion |
ConversionFactory.getInstance(Object value,
Class fromType,
Class toType)
Create a conversion object for the conversion. |
| Methods in org.apache.commons.convert with parameters of type Conversion | |
|---|---|
void |
ConversionRegistry.addConversion(Conversion conv)
Adds a Conversion to the map of known conversions. |
protected Object |
Converter.doConversion(Conversion conversion,
Object value)
Convert the specified input object into an output object using the conversion. |
| Uses of Conversion in org.apache.commons.convert.conversion |
|---|
| Classes in org.apache.commons.convert.conversion that implement Conversion | |
|---|---|
class |
AbstractConversion
Abstract base class for conversion objects that provides basic features. |
class |
ClassToStringConversion
Conversion from Class to String using getName(). |
class |
StringToIntegerConversion
Conversion from String to Integer using Integer.valueOf(). |
| Fields in org.apache.commons.convert.conversion declared as Conversion | |
|---|---|
static Conversion |
StringToIntegerConversion.INSTANCE
Singleton instance of this factory |
static Conversion |
ClassToStringConversion.INSTANCE
Singleton instance of this factory |
| Methods in org.apache.commons.convert.conversion that return Conversion | |
|---|---|
static Conversion |
DefaultValueDecorator.defaultException(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion throws an exception. |
static Conversion |
DefaultValueDecorator.defaultNullAndException(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value for null input, null result and when an exception occurs. |
static Conversion |
DefaultValueDecorator.defaultNullInput(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion input is null. |
static Conversion |
DefaultValueDecorator.defaultNullResult(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion results in null. |
Conversion |
IdentityConversionFactory.getInstance(Object value,
Class fromType,
Class toType)
Create a new conversion object for the specified from and to types. |
Conversion |
AbstractConversionFactory.getInstance(Object value,
Class fromType,
Class toType)
Create a new conversion object for the specified from and to types. |
| Methods in org.apache.commons.convert.conversion with parameters of type Conversion | |
|---|---|
static Conversion |
DefaultValueDecorator.defaultException(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion throws an exception. |
static Conversion |
DefaultValueDecorator.defaultNullAndException(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value for null input, null result and when an exception occurs. |
static Conversion |
DefaultValueDecorator.defaultNullInput(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion input is null. |
static Conversion |
DefaultValueDecorator.defaultNullResult(Conversion conversion,
Object defaultValue)
Creates a Conversion that decorates the original and adds behaviour to return a default value when the conversion results in null. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||