|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.dataformat.bindy.BindyAbstractFactory
org.apache.camel.dataformat.bindy.BindyFixedLengthFactory
public class BindyFixedLengthFactory
The BindyCsvFactory is the class who allows to : Generate a model associated to a fixed length record, bind data from a record to the POJOs, export data of POJOs to a fixed length record and format data into String, Date, Double, ... according to the format/pattern defined
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.dataformat.bindy.BindyAbstractFactory |
|---|
annotedLinkFields, crlf, models |
| Constructor Summary | |
|---|---|
BindyFixedLengthFactory(PackageScanClassResolver resolver,
String... packageNames)
|
|
| Method Summary | |
|---|---|
void |
bind(List<String> data,
Map<String,Object> model,
int line)
The bind allow to read the content of a record (expressed as a List |
void |
bind(String record,
Map<String,Object> model,
int line)
|
boolean |
hasFooter()
Flag indicating if we have a footer |
boolean |
hasHeader()
Flag indicating if we have a header |
void |
initAnnotedFields()
Find fields annotated in each class of the model |
void |
initFixedLengthModel()
method uses to initialize the model representing the classes who will bind the data. |
char |
paddingchar()
Padding char used to fill the field |
int |
recordLength()
|
String |
unbind(Map<String,Object> model)
The unbind is used to transform the content of the classes model objects into a string. |
| Methods inherited from class org.apache.camel.dataformat.bindy.BindyAbstractFactory |
|---|
factory, formatString, generateKey, getCarriageReturn, getDefaultValueForPrimitive, initModel, link |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.dataformat.bindy.BindyFactory |
|---|
initModel |
| Constructor Detail |
|---|
public BindyFixedLengthFactory(PackageScanClassResolver resolver,
String... packageNames)
throws Exception
Exception| Method Detail |
|---|
public void initFixedLengthModel()
throws Exception
Exceptionpublic void initAnnotedFields()
BindyAbstractFactory
initAnnotedFields in class BindyAbstractFactory
public void bind(List<String> data,
Map<String,Object> model,
int line)
throws Exception
BindyFactory
bind in interface BindyFactorybind in class BindyAbstractFactorydata - Listmodel - Mapline - is the position of the record into the file
Exception - can be thrown
public void bind(String record,
Map<String,Object> model,
int line)
throws Exception
Exception
public String unbind(Map<String,Object> model)
throws Exception
BindyFactory
unbind in interface BindyFactoryunbind in class BindyAbstractFactorymodel - MapException - can be thrownpublic boolean hasHeader()
public boolean hasFooter()
public char paddingchar()
public int recordLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||