Commit d806c152 authored by R.W.Majeed's avatar R.W.Majeed

FileSource XML type changed to plain-file. cleanup of test datasource

parent 82805973
......@@ -8,11 +8,13 @@ import java.util.regex.Pattern;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import de.sekmi.histream.etl.FileRowSupplier;
import de.sekmi.histream.etl.RowSupplier;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="plain-file")
public class FileSource extends TableSource{
@XmlElement
URL url;
......
......@@ -4,25 +4,9 @@
<id>test-1</id>
<etl-strategy>replace-source</etl-strategy>
</meta>
<!-- erstmal weglassen -->
<transformations>
<xml-source url="xxxx.xml">
<transform with="a.xslt" to="lala.txt" />
<transform with="b.xslt" to="dddd.txt" />
</xml-source>
</transformations>
<!--
<value-mappings>
<map id="geschlecht">
<value from="M" to="M" />
<value from="W" to="F" />
</map>
</value-mappings>
-->
<patient-table>
<source xsi:type="fileSource">
<source xsi:type="plain-file">
<url>file:src/test/resources/test-1-patients.txt</url>
<separator>\t</separator>
</source>
......@@ -39,7 +23,7 @@
</patient-table>
<!-- optional -->
<visit-table>
<source xsi:type="fileSource">
<source xsi:type="plain-file">
<url>file:src/test/resources/test-1-visits.txt</url>
<type>text/csv</type>
<separator>\t</separator>
......@@ -61,7 +45,7 @@
</visit-table>
<wide-table>
<source xsi:type="fileSource">
<source xsi:type="plain-file">
<url>file:src/test/resources/test-1-widetable.txt</url>
<separator>\t</separator>
</source>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment