diff options
author | Ralf Mollik | 2019-04-25 12:39:42 +0000 |
---|---|---|
committer | Ralf Mollik | 2019-04-25 12:39:42 +0000 |
commit | 35eea8aa0727e33d3eb58d3a4610c4e1439962e5 (patch) | |
tree | 26ad6eff4aeba97a00e2c70fb744034752b30117 | |
parent | 911c0403e6f9d80f7e05827af6fe59c7ecab7ba9 (diff) | |
download | org.eclipse.osbp.datainterchange.api-master.tar.gz org.eclipse.osbp.datainterchange.api-master.tar.xz org.eclipse.osbp.datainterchange.api-master.zip |
-rw-r--r-- | org.eclipse.osbp.datainterchange.api/src/org/eclipse/osbp/datainterchange/api/IDataInterchange.java | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/org.eclipse.osbp.datainterchange.api/src/org/eclipse/osbp/datainterchange/api/IDataInterchange.java b/org.eclipse.osbp.datainterchange.api/src/org/eclipse/osbp/datainterchange/api/IDataInterchange.java index bb171e3..5d452df 100644 --- a/org.eclipse.osbp.datainterchange.api/src/org/eclipse/osbp/datainterchange/api/IDataInterchange.java +++ b/org.eclipse.osbp.datainterchange.api/src/org/eclipse/osbp/datainterchange/api/IDataInterchange.java @@ -32,21 +32,25 @@ public interface IDataInterchange { * * @param bundle the bundle * @param configFilename the config filename - * @return true, if successful + * @return Smooks instance */ - void open(Bundle bundle, String configFilename) throws IOException, SAXException; + Object open(Bundle bundle, String configFilename) throws IOException, SAXException; /** * Sets the entity manager. + * + * @param smooks the smooks instance + * @param entityManager the entity manager */ - void setEntityManager(EntityManager entityManager); + void setEntityManager(Object smooks, EntityManager entityManager); /** * Enable report. * + * @param smooks the smooks instance * @param location the location of the report file. */ - void enableReport(String location); + void enableReport(Object smooks, String location); /** * Sets the event listener. @@ -67,33 +71,38 @@ public interface IDataInterchange { /** * import the source and extract the given bean as object. * + * @param smooks the smooks instance * @param source the source * @param beanName the bean name * @return the object * @throws DataInterchangeException the data interchange exception */ - Object importSource(InputStream source, String beanName); + Object importSource(Object smooks, InputStream source, String beanName); /** * Import source. * + * @param smooks the smooks instance * @param source the source * @param beanName the bean name * @param encoding encoding of input file e.g. UTF-8 * @return the object */ - Object importSource(InputStream source, String beanName, String encoding); + Object importSource(Object smooks, InputStream source, String beanName, String encoding); /** * Export the source through the writer. * + * @param smooks the smooks instance * @param source the source * @param writer the writer */ - void exportSource(Object source, StringWriter writer); + void exportSource(Object smooks, Object source, StringWriter writer); /** * Close the instance and all associated resources. + * + * @param smooks the smooks instance */ - void close(); + void close(Object smooks); } |