org.databene.commons.bean
Class ArrayPropertyExtractor<E>
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.ThreadSafeConverter<java.lang.Object[],E[]>
org.databene.commons.bean.ArrayPropertyExtractor<E>
- All Implemented Interfaces:
- java.lang.Cloneable, Converter<java.lang.Object[],E[]>, ThreadAware
public class ArrayPropertyExtractor<E>
- extends ThreadSafeConverter<java.lang.Object[],E[]>
Extracts property values from an array of JavaBeans in a way that
processing n beans results in an array of n elements with the property values.
Created: 02.08.2007 20:47:35
- Author:
- Volker Bergmann
|
Method Summary |
E[] |
convert(java.lang.Object[] sourceValue)
Concerts an object of type S to an object of type T |
static
|
convert(java.lang.Object[] sourceValue,
java.lang.String propertyName,
java.lang.Class<T> propertyType)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayPropertyExtractor
public ArrayPropertyExtractor(java.lang.String propertyName,
java.lang.Class<E> propertyType)
convert
public E[] 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
convert
public static <T> T[] convert(java.lang.Object[] sourceValue,
java.lang.String propertyName,
java.lang.Class<T> propertyType)
throws ConversionException
- Throws:
ConversionException
Copyright © 2010. All Rights Reserved.