|
||||||||||
| 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 |
|---|
annotatedLinkFields, crlf, models |
| Constructor Summary | |
|---|---|
BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
java.lang.String... packageNames)
|
|
| Method Summary | |
|---|---|
void |
bind(java.util.List<java.lang.String> data,
java.util.Map<java.lang.String,java.lang.Object> model,
int line)
The bind allow to read the content of a record (expressed as a List |
void |
bind(java.lang.String record,
java.util.Map<java.lang.String,java.lang.Object> model,
int line)
|
boolean |
hasFooter()
Flag indicating if we have a footer |
boolean |
hasHeader()
Flag indicating if we have a header |
void |
initAnnotatedFields()
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()
|
java.lang.String |
unbind(java.util.Map<java.lang.String,java.lang.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, getLocale, initModel, link, setLocale |
| 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(org.apache.camel.spi.PackageScanClassResolver resolver,
java.lang.String... packageNames)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void initFixedLengthModel()
throws java.lang.Exception
java.lang.Exceptionpublic void initAnnotatedFields()
BindyAbstractFactory
initAnnotatedFields in class BindyAbstractFactory
public void bind(java.util.List<java.lang.String> data,
java.util.Map<java.lang.String,java.lang.Object> model,
int line)
throws java.lang.Exception
BindyFactory
bind in interface BindyFactorybind in class BindyAbstractFactorydata - Listmodel - Mapline - is the position of the record into the file
java.lang.Exception - can be thrown
public void bind(java.lang.String record,
java.util.Map<java.lang.String,java.lang.Object> model,
int line)
throws java.lang.Exception
java.lang.Exception
public java.lang.String unbind(java.util.Map<java.lang.String,java.lang.Object> model)
throws java.lang.Exception
BindyFactory
unbind in interface BindyFactoryunbind in class BindyAbstractFactorymodel - Mapjava.lang.Exception - 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 | |||||||||