Mercurial > dive4elements > river
comparison flys-backend/src/main/java/org/dive4elements/river/importer/Config.java @ 5828:dfb26b03b179
Moved directories to org.dive4elements.river
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 11:53:11 +0200 |
parents | flys-backend/src/main/java/de/intevation/flys/importer/Config.java@b9ae676a9afe |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
5827:e308d4ecd35a | 5828:dfb26b03b179 |
---|---|
1 package de.intevation.flys.importer; | |
2 | |
3 public class Config | |
4 { | |
5 public static final String SKIP_DEFAULT = | |
6 "flys.backend.importer.skip.default"; | |
7 | |
8 public static final String DRY_RUN = | |
9 "flys.backend.importer.dry.run"; | |
10 | |
11 public static final String INFO_GEW_FILE = | |
12 "flys.backend.importer.infogew.file"; | |
13 | |
14 public static final String ANNOTATION_TYPES = | |
15 "flys.backend.importer.annotation.types"; | |
16 | |
17 public static final String SKIP_GAUGES = | |
18 "flys.backend.importer.skip.gauges"; | |
19 | |
20 public static final String SKIP_BWASTR = | |
21 "flys.backend.importer.skip.bwastr"; | |
22 | |
23 public static final String SKIP_HISTORICAL_DISCHARGE_TABLES = | |
24 "flys.backend.importer.skip.historical.discharge.tables"; | |
25 | |
26 public static final String SKIP_ANNOTATIONS = | |
27 "flys.backend.importer.skip.annotations"; | |
28 | |
29 public static final String SKIP_PRFS = | |
30 "flys.backend.importer.skip.prfs"; | |
31 | |
32 public static final String SKIP_DA50S = | |
33 "flys.backend.importer.skip.da50s"; | |
34 | |
35 public static final String SKIP_W80S = | |
36 "flys.backend.importer.skip.w80s"; | |
37 | |
38 public static final String SKIP_W80_CSVS = | |
39 "flys.backend.importer.skip.w80.csvs"; | |
40 | |
41 public static final String SKIP_HYKS = | |
42 "flys.backend.importer.skip.hyks"; | |
43 | |
44 public static final String SKIP_WST = | |
45 "flys.backend.importer.skip.wst"; | |
46 | |
47 public static final String SKIP_EXTRA_WSTS = | |
48 "flys.backend.importer.skip.extra.wsts"; | |
49 | |
50 public static final String SKIP_FIXATIONS = | |
51 "flys.backend.importer.skip.fixations"; | |
52 | |
53 public static final String SKIP_OFFICIAL_LINES = | |
54 "flys.backend.importer.skip.official.lines"; | |
55 | |
56 public static final String SKIP_FLOOD_WATER = | |
57 "flys.backend.importer.skip.flood.water"; | |
58 | |
59 public static final String SKIP_FLOOD_PROTECTION = | |
60 "flys.backend.importer.skip.flood.protection"; | |
61 | |
62 public static final String SKIP_BED_HEIGHT_SINGLE = | |
63 "flys.backend.importer.skip.bed.height.single"; | |
64 | |
65 public static final String SKIP_DA66S = | |
66 "flys.backend.importer.skip.da66s"; | |
67 | |
68 public static final String SKIP_BED_HEIGHT_EPOCH = | |
69 "flys.backend.importer.skip.bed.height.epoch"; | |
70 | |
71 public static final String SKIP_SEDIMENT_DENSITY = | |
72 "flys.backend.importer.skip.sediment.density"; | |
73 | |
74 public static final String SKIP_MORPHOLOGICAL_WIDTH = | |
75 "flys.backend.importer.skip.morphological.width"; | |
76 | |
77 public static final String SKIP_FLOW_VELOCITY = | |
78 "flys.backend.importer.skip.flow.velocity"; | |
79 | |
80 public static final String SKIP_SEDIMENT_YIELD = | |
81 "flys.backend.importer.skip.sediment.yield"; | |
82 | |
83 public static final String SKIP_WATERLEVELS = | |
84 "flys.backend.importer.skip.waterlevels"; | |
85 | |
86 public static final String SKIP_WATERLEVEL_DIFFERENCES = | |
87 "flys.backend.importer.skip.waterlevel.differences"; | |
88 | |
89 public static final String SKIP_MEASUREMENT_STATIONS = | |
90 "flys.backend.importer.skip.measurement.stations"; | |
91 | |
92 public static final String SKIP_SQ_RELATION = | |
93 "flys.backend.importer.skip.sq.relation"; | |
94 | |
95 | |
96 public static final Config INSTANCE = new Config(); | |
97 | |
98 private Config () { | |
99 } | |
100 | |
101 public static final boolean getFlag(String key) { | |
102 String flag = System.getProperty(key); | |
103 return flag != null | |
104 ? Boolean.valueOf(flag) | |
105 : Boolean.getBoolean(SKIP_DEFAULT); | |
106 } | |
107 | |
108 public boolean dryRun() { | |
109 return getFlag(DRY_RUN); | |
110 } | |
111 | |
112 public String getInfoGewFile() { | |
113 return System.getProperty(INFO_GEW_FILE); | |
114 } | |
115 | |
116 public String getAnnotationTypes() { | |
117 return System.getProperty(ANNOTATION_TYPES); | |
118 } | |
119 | |
120 public boolean skipGauges() { | |
121 return getFlag(SKIP_GAUGES); | |
122 } | |
123 | |
124 public boolean skipHistoricalDischargeTables() { | |
125 return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES); | |
126 } | |
127 | |
128 public boolean skipBWASTR() { | |
129 return getFlag(SKIP_BWASTR); | |
130 } | |
131 | |
132 public boolean skipAnnotations() { | |
133 return getFlag(SKIP_ANNOTATIONS); | |
134 } | |
135 | |
136 public boolean skipPRFs() { | |
137 return getFlag(SKIP_PRFS); | |
138 } | |
139 | |
140 public boolean skipDA50s() { | |
141 return getFlag(SKIP_DA50S); | |
142 } | |
143 | |
144 public boolean skipW80CSVs() { | |
145 return getFlag(SKIP_W80_CSVS); | |
146 } | |
147 | |
148 public boolean skipW80s() { | |
149 return getFlag(SKIP_W80S); | |
150 } | |
151 | |
152 public boolean skipHYKs() { | |
153 return getFlag(SKIP_HYKS); | |
154 } | |
155 | |
156 public boolean skipWst() { | |
157 return getFlag(SKIP_WST); | |
158 } | |
159 | |
160 public boolean skipExtraWsts() { | |
161 return getFlag(SKIP_EXTRA_WSTS); | |
162 } | |
163 | |
164 public boolean skipFixations() { | |
165 return getFlag(SKIP_FIXATIONS); | |
166 } | |
167 | |
168 public boolean skipOfficialLines() { | |
169 return getFlag(SKIP_OFFICIAL_LINES); | |
170 } | |
171 | |
172 public boolean skipFloodWater() { | |
173 return getFlag(SKIP_FLOOD_WATER); | |
174 } | |
175 | |
176 public boolean skipFloodProtection() { | |
177 return getFlag(SKIP_FLOOD_PROTECTION); | |
178 } | |
179 | |
180 public boolean skipDA66s() { | |
181 return getFlag(SKIP_DA66S); | |
182 } | |
183 | |
184 public boolean skipBedHeightSingle() { | |
185 return getFlag(SKIP_BED_HEIGHT_SINGLE); | |
186 } | |
187 | |
188 public boolean skipBedHeightEpoch() { | |
189 return getFlag(SKIP_BED_HEIGHT_EPOCH); | |
190 } | |
191 | |
192 public boolean skipSedimentDensity() { | |
193 return getFlag(SKIP_SEDIMENT_DENSITY); | |
194 } | |
195 | |
196 public boolean skipMorphologicalWidth() { | |
197 return getFlag(SKIP_MORPHOLOGICAL_WIDTH); | |
198 } | |
199 | |
200 public boolean skipFlowVelocity() { | |
201 return getFlag(SKIP_FLOW_VELOCITY); | |
202 } | |
203 | |
204 public boolean skipSedimentYield() { | |
205 return getFlag(SKIP_SEDIMENT_YIELD); | |
206 } | |
207 | |
208 public boolean skipWaterlevels() { | |
209 return getFlag(SKIP_WATERLEVELS); | |
210 } | |
211 | |
212 public boolean skipWaterlevelDifferences() { | |
213 return getFlag(SKIP_WATERLEVEL_DIFFERENCES); | |
214 } | |
215 | |
216 public boolean skipMeasurementStations() { | |
217 return getFlag(SKIP_MEASUREMENT_STATIONS); | |
218 } | |
219 | |
220 public boolean skipSQRelation() { | |
221 return getFlag(SKIP_SQ_RELATION); | |
222 } | |
223 } | |
224 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |