Mercurial > lada > lada-server
comparison 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 |
comparison
equal
deleted
inserted
replaced
309:ae4bf396bd3b | 310:821557a17e5e |
---|---|
1 package de.intevation.lada.data.importer; | |
2 | |
3 import javax.inject.Named; | |
4 | |
5 import de.intevation.lada.auth.AuthenticationResponse; | |
6 import de.intevation.lada.rest.Response; | |
7 | |
8 @Named("lafimporter") | |
9 public class LAFImporter | |
10 implements Importer | |
11 { | |
12 @Override | |
13 public Response importData(String content, AuthenticationResponse auth) { | |
14 return new Response(true, 200, null); | |
15 } | |
16 } |