|
||||||||||
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.BindyCsvFactory
public class BindyCsvFactory
The BindyCsvFactory is the class who allows to : Generate a model associated to a CSV record, bind data from a record to the POJOs, export data of POJOs to a CSV 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, linkFields, models |
Constructor Summary | |
---|---|
BindyCsvFactory(PackageScanClassResolver resolver,
String... packageNames)
|
Method Summary | |
---|---|
void |
bind(List<String> tokens,
Map<String,Object> model)
The bind allow to read the content of a record (expressed as a List |
String |
getSeparator()
Find the separator used to delimit the CSV fields |
boolean |
getSkipFirstLine()
Find the separator used to delimit the CSV fields |
void |
initAnnotedFields()
Find fields annoted 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. |
Methods inherited from class org.apache.camel.dataformat.bindy.BindyAbstractFactory |
---|
factory, 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 BindyCsvFactory(PackageScanClassResolver resolver, String... packageNames) throws Exception
Exception
Method Detail |
---|
public void initCsvModel() throws Exception
Exception
public void initAnnotedFields()
BindyAbstractFactory
initAnnotedFields
in class BindyAbstractFactory
public void bind(List<String> tokens, Map<String,Object> model) throws Exception
BindyFactory
bind
in interface BindyFactory
bind
in class BindyAbstractFactory
tokens
- Listmodel
- MapException
- can be thrownpublic String unbind(Map<String,Object> model) throws Exception
BindyFactory
unbind
in interface BindyFactory
unbind
in class BindyAbstractFactory
model
- MapException
- can be thrownpublic String getSeparator()
public boolean getSkipFirstLine()
public boolean isMessageOrdered()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |