|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.dataformat.bindy.BindyAbstractFactory
public abstract class BindyAbstractFactory
The BindyAbstractFactory implements what its common to all the formats supported by camel bindy
Field Summary | |
---|---|
protected String |
crlf
|
protected Map<String,Field> |
mapAnnotedLinkField
|
protected Set<Class> |
models
|
Constructor Summary | |
---|---|
BindyAbstractFactory(PackageScanClassResolver resolver,
String packageName)
|
Method Summary | |
---|---|
abstract void |
bind(List<String> data,
Map<String,Object> model)
The bind allow to read the content of a record (expressed as a List |
Map<String,Object> |
factory()
Factory method generating new instances of the model and adding them to a HashMap |
String |
getCarriageReturn()
Find the carriage return set |
abstract void |
initAnnotedFields()
Find fields annoted in each class of the model |
void |
initModel()
method uses to initialize the model representing the classes who will bind the data. |
void |
link(Map<String,Object> model)
Link objects together (Only 1to1 relation is allowed) |
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set<Class> models
protected Map<String,Field> mapAnnotedLinkField
protected String crlf
Constructor Detail |
---|
public BindyAbstractFactory(PackageScanClassResolver resolver, String packageName) throws Exception
Exception
Method Detail |
---|
public void initModel() throws Exception
initModel
in interface BindyFactory
Exception
public abstract void initAnnotedFields() throws Exception
Exception
public abstract void bind(List<String> data, Map<String,Object> model) throws Exception
BindyFactory
bind
in interface BindyFactory
data
- Listmodel
- MapException
- can be thrownpublic abstract String unbind(Map<String,Object> model) throws Exception
BindyFactory
unbind
in interface BindyFactory
model
- MapException
- can be thrownpublic void link(Map<String,Object> model) throws Exception
Exception
public Map<String,Object> factory() throws Exception
Exception
- can be thrownpublic String getCarriageReturn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |