org.databene.commons.bean
Class PropertyAccessConverter
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.ThreadSafeConverter
org.databene.commons.bean.PropertyAccessConverter
- All Implemented Interfaces:
- java.lang.Cloneable, Converter, ThreadAware
public class PropertyAccessConverter
- extends ThreadSafeConverter
Wraps an Accessor with a Converter interface implementation.
Created: 25.06.2007 08:04:22
- Author:
- Volker Bergmann
|
Method Summary |
java.lang.Object |
convert(java.lang.Object sourceValue)
Concerts an object of type S to an object of type T |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyAccessConverter
public PropertyAccessConverter(java.lang.String propertyName)
PropertyAccessConverter
public PropertyAccessConverter(java.lang.String propertyName,
java.lang.Class<?> propertyType)
PropertyAccessConverter
public PropertyAccessConverter(java.lang.String propertyName,
java.lang.Class<?> propertyType,
boolean strict)
convert
public java.lang.Object convert(java.lang.Object sourceValue)
throws ConversionException
- Description copied from interface:
Converter
- Concerts an object of type S to an object of type T
- Parameters:
sourceValue - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException - if the conversion fails
Copyright © 2010. All Rights Reserved.