public class BindyCsvFactory extends BindyAbstractFactory implements BindyFactory
annotatedLinkFields, crlf, eol, formatFactory, modelClassNames, models| Constructor and Description |
|---|
BindyCsvFactory(Class<?> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.camel.CamelContext camelContext,
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 |
getAutospanLine()
If last record is to span the rest of the line
|
boolean |
getGenerateHeaderColumnNames()
Flag indicating if the first line of the CSV must be skipped
|
int |
getMaxpos() |
String |
getQuote() |
Boolean |
getRemoveQuotes() |
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 |
isAllowEmptyStream() |
boolean |
isEndWithLineBreak() |
boolean |
isMessageOrdered()
Flag indicating if the message must be ordered
|
boolean |
isSkipField()
Indicate if can skip fields
|
String |
unbind(org.apache.camel.CamelContext camelContext,
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, getEndOfLine, getLocale, initModel, link, setFormatFactory, setLocale, supportsModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitModelpublic void initCsvModel()
Exceptionpublic void initAnnotatedFields()
BindyAbstractFactoryinitAnnotatedFields in class BindyAbstractFactorypublic void bind(org.apache.camel.CamelContext camelContext,
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(org.apache.camel.CamelContext camelContext, 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 isSkipField()
public boolean getAutospanLine()
public boolean isMessageOrdered()
public String getQuote()
public Boolean getRemoveQuotes()
public int getMaxpos()
public boolean isAllowEmptyStream()
public boolean isEndWithLineBreak()
Apache Camel