org.databene.commons.converter
Class AccessingConverter<C,V>
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.ThreadSafeConverter<C,V>
org.databene.commons.converter.AccessingConverter<C,V>
- All Implemented Interfaces:
- java.lang.Cloneable, Converter<C,V>, ThreadAware
public class AccessingConverter<C,V>
- extends ThreadSafeConverter<C,V>
Wraps an Accessor into a Converter interface.
The object to be converted is used as the provider for the Accessor
Created: 26.08.2007 07:25:26
- Author:
- Volker Bergmann
|
Method Summary |
V |
convert(C 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 |
AccessingConverter
public AccessingConverter(java.lang.Class<C> sourceType,
java.lang.Class<V> targetType,
Accessor<C,V> accessor)
convert
public V convert(C 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.