public class EnablerConverter extends Object implements org.apache.commons.beanutils.Converter
A specialized converter implementation for ElementEnabler
objects.
This converter class is a thin wrapper around the EnablerBuilder
class. In its convert(Class, Object)
method it expects a string
representation of an ElementEnabler
which is compatible with the
specifications understood by the builder. It passes this string to the
builder and uses it to create the enabler. The resulting
ElementEnabler
is returned.
Implementation note: This class is stateless; therefore an instance can be shared between multiple components and invoked concurrently.
Constructor and Description |
---|
EnablerConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Class type,
Object value)
Performs the type conversion.
|
public Object convert(Class type, Object value)
EnablerBuilder
to create an ElementEnabler
implementation
from the string representation of the passed in object. For null
values, or if the conversion fails, a ConversionException
is
thrown.convert
in interface org.apache.commons.beanutils.Converter
type
- the target class of the conversionvalue
- the object to be convertedorg.apache.commons.beanutils.ConversionException
- if conversion is not possibleCopyright © 2016 The JGUIraffe Team. All rights reserved.