org.apache.commons.beanutils
Class ConvertingWrapDynaBean
- DynaBean
public class ConvertingWrapDynaBean
Implementation of
DynaBean
that wraps a standard JavaBean
instance, so that DynaBean APIs can be used to access its properties,
though this implementation allows type conversion to occur when properties are set.
This means that (say) Strings can be passed in as values in setter methods and
this DynaBean will convert them to the correct primitive data types.
IMPLEMENTATION NOTE - This implementation does not
support the
contains()
and
remove()
methods.
$Revision: 1.3 $ $Date: 2002/01/23 22:35:58 $
ConvertingWrapDynaBean(Object instance) - Construct a new
DynaBean associated with the specified
JavaBean instance.
|
void | set(String name, Object value) - Set the value of the property with the specified name
performing any type conversions if necessary.
|
contains , get , get , get , getDynaClass , getDynaProperty , getInstance , remove , set , set , set |
ConvertingWrapDynaBean
public ConvertingWrapDynaBean(Object instance)
Construct a new DynaBean
associated with the specified
JavaBean instance.
instance
- JavaBean instance to be wrapped
set
public void set(String name,
Object value)
Set the value of the property with the specified name
performing any type conversions if necessary. So this method
can accept String values for primitive numeric data types for example.
- set in interface DynaBean
- set in interface WrapDynaBean
name
- Name of the property whose value is to be setvalue
- Value to which this property is to be set
Copyright (c) 2001-2004 - Apache Software Foundation