|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olg.csv.bean.impl.BeanProcessor<B>
B
- dedicated bean the transformer productspublic final class BeanProcessor<B>
In reading process, this class allows to product beans from list of Strings.
Field Summary | |
---|---|
private Class<B> |
beanClass
bean class this transformer products. |
private List<IPropertyProcessor<B>> |
properties
A BeanProcessor has a list of transformers. |
Constructor Summary | |
---|---|
BeanProcessor(Class<B> beanClass)
|
Method Summary | |
---|---|
boolean |
add(IPropertyProcessor<B> arg0)
Adds a concret propertyProcessor. |
boolean |
addAll(Collection<IPropertyProcessor<B>> arg0)
Adds a propertyProcessor collection. |
B |
transform(Row line)
Returns a new bean built from the given row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Class<B> beanClass
private final List<IPropertyProcessor<B>> properties
Constructor Detail |
---|
public BeanProcessor(Class<B> beanClass)
beanClass
- the class of beans the transformer returns. This class must be
conformed to bean class ( has a constructor with no arguments
and all its properties must be accessible with public getter
and mutable with public setter)Method Detail |
---|
public boolean add(IPropertyProcessor<B> arg0)
arg0
- the propertyProcessor to add.
public boolean addAll(Collection<IPropertyProcessor<B>> arg0)
arg0
- the collection. Must be not null
.
public B transform(Row line)
transform
in interface IBeanProcessor<B>
line
- list of String
null
if Row Argument is null
or this
transformer has no property transformer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |