public class BindyCsvFactory extends BindyAbstractFactory implements BindyFactory
annotatedLinkFields, crlf, modelClassNames, models| Constructor and Description |
|---|
BindyCsvFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
Class<?> type) |
BindyCsvFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
String... packageNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(List<String> tokens,
Map<String,Object> model,
int line)
The bind allow to read the content of a record (expressed as a
List
|
String |
generateHeader()
Generate for the first line the headers of the columns
|
boolean |
getGenerateHeaderColumnNames()
Flag indicating if the first line of the CSV must be skipped
|
String |
getQuote() |
String |
getSeparator()
Find the separator used to delimit the CSV fields
|
boolean |
getSkipFirstLine()
Find the separator used to delimit the CSV fields
|
void |
initAnnotatedFields()
Find fields annotated in each class of the model
|
void |
initCsvModel()
method uses to initialize the model representing the classes who will
bind the data.
|
boolean |
isMessageOrdered()
Flag indicating if the message must be ordered
|
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 BindyCsvFactory(org.apache.camel.spi.PackageScanClassResolver resolver,
String... packageNames)
throws Exception
Exceptionpublic void initCsvModel()
throws Exception
Exceptionpublic void initAnnotatedFields()
BindyAbstractFactoryinitAnnotatedFields in class BindyAbstractFactorypublic void bind(List<String> tokens, Map<String,Object> model, int line) throws Exception
BindyFactorybind in interface BindyFactorybind in class BindyAbstractFactorytokens - Listmodel - Mapline - is the position of the record into the fileException - can be thrownpublic String unbind(Map<String,Object> model) throws Exception
BindyFactoryunbind in interface BindyFactoryunbind in class BindyAbstractFactorymodel - MapException - can be thrownpublic String generateHeader()
public String getSeparator()
public boolean getGenerateHeaderColumnNames()
public boolean getSkipFirstLine()
public boolean isMessageOrdered()
public String getQuote()
Apache Camel