Mercurial > lada > lada-server
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/data/importer/EntryFormat.java Tue Aug 20 16:13:17 2013 +0200 @@ -0,0 +1,38 @@ +package de.intevation.lada.data.importer; + +import java.util.regex.Pattern; + + +public class EntryFormat +{ + private String key; + private Pattern pattern; + private Object defaultValue; + + public EntryFormat() { + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Pattern getPattern() { + return pattern; + } + + public void setPattern(Pattern pattern) { + this.pattern = pattern; + } + + public Object getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(Object defaultValue) { + this.defaultValue = defaultValue; + } +}