Package org.apache.commons.beanutils2
Class ConvertingWrapDynaBean
java.lang.Object
org.apache.commons.beanutils2.WrapDynaBean
org.apache.commons.beanutils2.ConvertingWrapDynaBean
- All Implemented Interfaces:
- DynaBean
 Implements DynaBean to wrap 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()</code> and <code>remove() methods.
 
- 
Field SummaryFields inherited from class org.apache.commons.beanutils2.WrapDynaBeandynaClass, instance
- 
Constructor SummaryConstructorsConstructorDescriptionConvertingWrapDynaBean(Object instance) Constructs a newDynaBeanassociated with the specified JavaBean instance.
- 
Method SummaryMethods inherited from class org.apache.commons.beanutils2.WrapDynaBeancontains, get, get, get, getDynaClass, getDynaProperty, getInstance, remove, set, set
- 
Constructor Details- 
ConvertingWrapDynaBeanConstructs a newDynaBeanassociated with the specified JavaBean instance.- Parameters:
- instance- JavaBean instance to be wrapped
 
 
- 
- 
Method Details- 
setSets 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.- Specified by:
- setin interface- DynaBean
- Overrides:
- setin class- WrapDynaBean
- Parameters:
- name- Name of the property whose value is to be set
- value- Value to which this property is to be set
- Throws:
- IllegalArgumentException- if there are any problems copying the property.
 
 
-