Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/data/importer/EntryFormat.java @ 366:567ce7697fc7 0.5
Code documentation.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 10 Sep 2013 15:55:54 +0200 |
parents | 821557a17e5e |
children | 183f8116d9a6 |
comparison
equal
deleted
inserted
replaced
365:fab80595ed55 | 366:567ce7697fc7 |
---|---|
1 package de.intevation.lada.data.importer; | 1 package de.intevation.lada.data.importer; |
2 | 2 |
3 import java.util.regex.Pattern; | 3 import java.util.regex.Pattern; |
4 | 4 |
5 | 5 /** |
6 * An EntryFormat describes the internal structure of LAF-based key-value pairs. | |
7 * The pattern is a regular expression used to match the value in the LAF | |
8 * importer. | |
9 * The entry formats are defined in a config file | |
10 * (see wiki-doc: https://bfs-intern.intevation.de/Server/Importer). | |
11 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
12 */ | |
6 public class EntryFormat | 13 public class EntryFormat |
7 { | 14 { |
8 private String key; | 15 private String key; |
9 private Pattern pattern; | 16 private Pattern pattern; |
10 private Object defaultValue; | 17 private Object defaultValue; |
11 | 18 |
19 /** | |
20 * Default constructor to create a new EntryFormat object. | |
21 */ | |
12 public EntryFormat() { | 22 public EntryFormat() { |
13 } | 23 } |
14 | 24 |
25 /** | |
26 * @return the key. | |
27 */ | |
15 public String getKey() { | 28 public String getKey() { |
16 return key; | 29 return key; |
17 } | 30 } |
18 | 31 |
32 /** | |
33 * @param key The key to set. | |
34 */ | |
19 public void setKey(String key) { | 35 public void setKey(String key) { |
20 this.key = key; | 36 this.key = key; |
21 } | 37 } |
22 | 38 |
39 /** | |
40 * @return the pattern | |
41 */ | |
23 public Pattern getPattern() { | 42 public Pattern getPattern() { |
24 return pattern; | 43 return pattern; |
25 } | 44 } |
26 | 45 |
46 /** | |
47 * @param pattern The pattern to set. | |
48 */ | |
27 public void setPattern(Pattern pattern) { | 49 public void setPattern(Pattern pattern) { |
28 this.pattern = pattern; | 50 this.pattern = pattern; |
29 } | 51 } |
30 | 52 |
53 /** | |
54 * @return the default value. | |
55 */ | |
31 public Object getDefaultValue() { | 56 public Object getDefaultValue() { |
32 return defaultValue; | 57 return defaultValue; |
33 } | 58 } |
34 | 59 |
60 /** | |
61 * @param defaultValue the default value to set. | |
62 */ | |
35 public void setDefaultValue(Object defaultValue) { | 63 public void setDefaultValue(Object defaultValue) { |
36 this.defaultValue = defaultValue; | 64 this.defaultValue = defaultValue; |
37 } | 65 } |
38 } | 66 } |