comparison flys-backend/src/main/java/de/intevation/flys/importer/Config.java @ 1223:268f8da412e3

Importer: Added a central configuration to allow skipping of parsing/storing individual sub systems. flys-backend/trunk@2354 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Jul 2011 15:52:42 +0000
parents
children 68d1661a57cf
comparison
equal deleted inserted replaced
1222:1f21f162bcf3 1223:268f8da412e3
1 package de.intevation.flys.importer;
2
3 public class Config
4 {
5 public static final String DRY_RUN =
6 "flys.backend.importer.dry.run";
7
8 public static final String ANNOTATION_TYPES =
9 "flys.backend.importer.annotation.types";
10
11 public static final String SKIP_GAUGES =
12 "flys.backend.importer.skip.gauges";
13
14 public static final String SKIP_ANNOTATIONS =
15 "flys.backend.importer.skip.annotations";
16
17 public static final String SKIP_PRFS =
18 "flys.backend.importer.skip.prfs";
19
20 public static final String SKIP_HYKS =
21 "flys.backend.importer.skip.hyks";
22
23 public static final String SKIP_WST =
24 "flys.backend.importer.skip.wst";
25
26 public static final String SKIP_EXTRA_WSTS =
27 "flys.backend.importer.skip.extra.wsts";
28
29 public static final String SKIP_FIXATIONS =
30 "flys.backend.importer.skip.fixations";
31
32 public static final String SKIP_OFFICIAL_LINES =
33 "flys.backend.importer.skip.official.lines";
34
35 public static final String SKIP_FLOOD_WATER =
36 "flys.backend.importer.skip.flood.water";
37
38 public static final String SKIP_FLOOD_PROTECTION =
39 "flys.backend.importer.skip.flood.protection";
40
41 public static final Config INSTANCE = new Config();
42
43 private Config () {
44 }
45
46 public boolean dryRun() {
47 return Boolean.getBoolean(DRY_RUN);
48 }
49
50 public String getAnnotationTypes() {
51 return System.getProperty(ANNOTATION_TYPES);
52 }
53
54 public boolean skipGauges() {
55 return Boolean.getBoolean(SKIP_GAUGES);
56 }
57
58 public boolean skipAnnotations() {
59 return Boolean.getBoolean(SKIP_ANNOTATIONS);
60 }
61
62 public boolean skipPRFs() {
63 return Boolean.getBoolean(SKIP_PRFS);
64 }
65
66 public boolean skipHYKs() {
67 return Boolean.getBoolean(SKIP_HYKS);
68 }
69
70 public boolean skipWst() {
71 return Boolean.getBoolean(SKIP_WST);
72 }
73
74 public boolean skipExtraWsts() {
75 return Boolean.getBoolean(SKIP_EXTRA_WSTS);
76 }
77
78 public boolean skipFixations() {
79 return Boolean.getBoolean(SKIP_FIXATIONS);
80 }
81
82 public boolean skipOfficialLines() {
83 return Boolean.getBoolean(SKIP_OFFICIAL_LINES);
84 }
85
86 public boolean skipFloodWater() {
87 return Boolean.getBoolean(SKIP_FLOOD_WATER);
88 }
89
90 public boolean skipFloodProtection() {
91 return Boolean.getBoolean(SKIP_FLOOD_PROTECTION);
92 }
93 }
94 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org