Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/data/importer/LAFImporter.java @ 310:821557a17e5e
First version of the LAF importer.
The importer module currently only runs with the test application (comming in the next commit)!
* LAF Parser:
- Uses a small implementation of a state machine.
- Extracts the keys with its value or multi value.
- Uses the producer interface to generate objects.
* Attribute mapper:
- Maps the attributes defined in the configuration file to object attributes.
- Generates objects from multi value attributes.
* LAF format:
- Reads the config file
* LAF importer:
- Implemetation of the importer interface for LAF format.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 20 Aug 2013 16:13:17 +0200 |
parents | |
children | 5844d7457dde |
line wrap: on
line source
package de.intevation.lada.data.importer; import javax.inject.Named; import de.intevation.lada.auth.AuthenticationResponse; import de.intevation.lada.rest.Response; @Named("lafimporter") public class LAFImporter implements Importer { @Override public Response importData(String content, AuthenticationResponse auth) { return new Response(true, 200, null); } }