public class BindyFixedLengthFactory extends BindyAbstractFactory implements BindyFactory
annotatedLinkFields, crlf, modelClassNames, models| Constructor and Description |
|---|
BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
Class<?> type) |
BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
org.apache.camel.spi.PackageScanFilter scanFilter,
Class<?> type) |
BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
org.apache.camel.spi.PackageScanFilter scanFilter,
String... packageNames) |
BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
String... packageNames) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
boolean |
isFooter()
Flag indicating whether this factory is for a footer
|
boolean |
isHeader()
Flag indicating whether this factory is for a header
|
boolean |
isIgnoreTrailingChars()
Flag indicating whether trailing characters beyond the last declared field may be ignored
|
char |
paddingchar()
Padding char used to fill the field
|
int |
recordLength()
Expected fixed length of the record
|
boolean |
skipFooter()
Flag indicating whether to skip the footer processing
|
boolean |
skipHeader()
Flag indicating whether to skip the header parsing
|
String |
unbind(Map<String,Object> model)
The unbind is used to transform the content of the classes model objects
into a string.
|
factory, formatString, generateKey, getCarriageReturn, getDefaultValueForPrimitive, getLocale, initModel, link, setLocale, supportsModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitModelpublic BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
String... packageNames)
throws Exception
Exceptionpublic BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
org.apache.camel.spi.PackageScanFilter scanFilter,
String... packageNames)
throws Exception
Exceptionpublic BindyFixedLengthFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
Class<?> type)
throws Exception
Exceptionpublic void initFixedLengthModel()
throws Exception
Exceptionpublic void initAnnotatedFields()
BindyAbstractFactoryinitAnnotatedFields in class BindyAbstractFactorypublic void bind(List<String> data, Map<String,Object> model, int line) throws Exception
BindyFactorybind in interface BindyFactorybind in class BindyAbstractFactorydata - Listmodel - Mapline - is the position of the record into the fileException - can be thrownpublic void bind(String record, Map<String,Object> model, int line) throws Exception
Exceptionpublic String unbind(Map<String,Object> model) throws Exception
BindyFactoryunbind in interface BindyFactoryunbind in class BindyAbstractFactorymodel - MapException - can be thrownpublic boolean hasHeader()
public boolean hasFooter()
public boolean skipHeader()
public boolean skipFooter()
public boolean isHeader()
public boolean isFooter()
public char paddingchar()
public int recordLength()
public boolean isIgnoreTrailingChars()
Apache Camel