|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectolg.csv.bean.annotations.processor.RowBeanProcessor<T>
T
- the type this processor deals withpublic final class RowBeanProcessor<T>
This class is responsible for processing the @RowBean annotation.
Constructor Summary | |
---|---|
RowBeanProcessor(Class<T> clazz)
Constructor. |
Method Summary | |
---|---|
IBeanProcessor<T> |
getBeanProcessor()
Build a BeanProcessor from annotations setted on the class this processor deals with. |
CSVSettings |
getReadingCSVSettings()
Returns CSVSettings for reading identified from the RowBean annotation of the class otherwise default Reading CSV settings. |
ODSSettings |
getReadingODSSettings()
Returns ODSSettings for reading identified from the RowBean annotation of the class otherwise default Reading ODS settings. |
protected boolean |
getReadingProcessor(int translate,
List<IPropertyProcessor<T>> processors,
Map<Integer,Integer> map)
Collect the property processors identified by annotation setted on the fields (@Column and @Embedded) of the class and its super class (if annoted with @RowBean). |
IRowProcessor<T> |
getRowProcessor()
Build a RowProcessor from annotations setted on the class this processor deals with. |
CSVSettings |
getWritingCSVSettings()
Returns CSVSettings for writing identified from the RowBean annotation of the class otherwise default writing CSV settings. |
ODSSettings |
getWritingODSSettings()
Returns ODSSettings for writing identified from the RowBean annotation of the class otherwise default writing ODS settings. |
protected boolean |
getWritingProcessor(Map<Integer,List<CellProcessor<T>>> map)
Complete a map with the cell Processors identified on the annotated fields of the class (and superclass). |
boolean |
hasRowBeanAnnotation()
Returns if T has RowBean annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowBeanProcessor(Class<T> clazz)
clazz
- the T class.Method Detail |
---|
public boolean hasRowBeanAnnotation()
public ODSSettings getReadingODSSettings() throws AnnotationProcessorException
AnnotationProcessorException
- if error occurs during annotation processing.public ODSSettings getWritingODSSettings() throws AnnotationProcessorException
AnnotationProcessorException
- if an error occurs during settings identification.public CSVSettings getReadingCSVSettings() throws AnnotationProcessorException
AnnotationProcessorException
- if an error occurs during settings identification.public CSVSettings getWritingCSVSettings() throws AnnotationProcessorException
AnnotationProcessorException
- if an error occurs during settings identification.public IBeanProcessor<T> getBeanProcessor() throws AnnotationProcessorException
AnnotationProcessorException
- if error occurs during annotation processing.public IRowProcessor<T> getRowProcessor() throws AnnotationProcessorException
AnnotationProcessorException
- if error occurs during annotation processing.protected boolean getWritingProcessor(Map<Integer,List<CellProcessor<T>>> map)
map
- the map to complete with the CellProcessor built from column annotation setted on the class fields.
the keys are the cell num target of the cellProcessor.
protected boolean getReadingProcessor(int translate, List<IPropertyProcessor<T>> processors, Map<Integer,Integer> map)
translate
- index from which begin the column numerotationprocessors
- the processor list to completemap
- the map to complete. this map shows for each cell num the count of the property processors setted on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |