|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olg.csv.bean.annotations.processor.EmbeddedProcessor<B>
B
- the bean on which research its fields annoted with embedded
annotationpublic final class EmbeddedProcessor<B>
This class is responsible for processing the @Embedded annotation.
Field Summary | |
---|---|
private Class<B> |
clazz
the class of the bean on which research its fields annoted with column annotation. |
private static org.slf4j.Logger |
LOGGER
Class logger. |
Constructor Summary | |
---|---|
EmbeddedProcessor(Class<B> clazz)
Constructor. |
Method Summary | |
---|---|
private boolean |
checkConcreteClass(Field field,
Class<?> fieldConcreteClass)
check if a field class is concrete. |
boolean |
getReadingProcessor(int translate,
Field field,
List<IPropertyProcessor<B>> propertyProcessors,
Map<Integer,Integer> map)
Complete a list with the propertyProcessors built from the embedded annotation setted on a field. |
boolean |
getWritingProcessor(Field field,
Map<Integer,List<CellProcessor<B>>> map)
Complete a map with the cellprocessors built from the embedded annotation setted on a field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.slf4j.Logger LOGGER
private Class<B> clazz
Constructor Detail |
---|
public EmbeddedProcessor(Class<B> clazz)
clazz
- the class of the beanMethod Detail |
---|
public boolean getWritingProcessor(Field field, Map<Integer,List<CellProcessor<B>>> map)
field
- the fieldmap
- the map to complete with the cellProcessors built from the
embedded Annotation setted on the field. the keys are the cell
num target of the cellProcessor.
public boolean getReadingProcessor(int translate, Field field, List<IPropertyProcessor<B>> propertyProcessors, Map<Integer,Integer> map)
translate
- index from which begin the column numerotationfield
- the field on which search an embedded annoationpropertyProcessors
- processors map to complete with the processors match on the
fieldmap
- map of couple (column num, nb properties built on ) to
complete with the processors built.
private boolean checkConcreteClass(Field field, Class<?> fieldConcreteClass)
field
- the fieldfieldConcreteClass
- the class used to set the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |