Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/data/importer/EntryFormat.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 | 567ce7697fc7 |
comparison
equal
deleted
inserted
replaced
309:ae4bf396bd3b | 310:821557a17e5e |
---|---|
1 package de.intevation.lada.data.importer; | |
2 | |
3 import java.util.regex.Pattern; | |
4 | |
5 | |
6 public class EntryFormat | |
7 { | |
8 private String key; | |
9 private Pattern pattern; | |
10 private Object defaultValue; | |
11 | |
12 public EntryFormat() { | |
13 } | |
14 | |
15 public String getKey() { | |
16 return key; | |
17 } | |
18 | |
19 public void setKey(String key) { | |
20 this.key = key; | |
21 } | |
22 | |
23 public Pattern getPattern() { | |
24 return pattern; | |
25 } | |
26 | |
27 public void setPattern(Pattern pattern) { | |
28 this.pattern = pattern; | |
29 } | |
30 | |
31 public Object getDefaultValue() { | |
32 return defaultValue; | |
33 } | |
34 | |
35 public void setDefaultValue(Object defaultValue) { | |
36 this.defaultValue = defaultValue; | |
37 } | |
38 } |