sascha@1223: package de.intevation.flys.importer; sascha@1223: sascha@1223: public class Config sascha@1223: { sascha@3797: public static final String SKIP_DEFAULT = sascha@3797: "flys.backend.importer.skip.default"; sascha@3797: sascha@1223: public static final String DRY_RUN = sascha@1223: "flys.backend.importer.dry.run"; sascha@1223: ingo@2804: public static final String INFO_GEW_FILE = ingo@2804: "flys.backend.importer.infogew.file"; ingo@2804: sascha@1223: public static final String ANNOTATION_TYPES = sascha@1223: "flys.backend.importer.annotation.types"; sascha@1223: sascha@1223: public static final String SKIP_GAUGES = sascha@1223: "flys.backend.importer.skip.gauges"; sascha@1223: teichmann@4135: public static final String SKIP_HISTORICAL_DISCHARGE_TABLES = teichmann@4135: "flys.backend.importer.skip.historical.discharge.tables"; teichmann@4135: sascha@1223: public static final String SKIP_ANNOTATIONS = sascha@1223: "flys.backend.importer.skip.annotations"; sascha@1223: sascha@1223: public static final String SKIP_PRFS = sascha@1223: "flys.backend.importer.skip.prfs"; sascha@1223: sascha@1223: public static final String SKIP_HYKS = sascha@1223: "flys.backend.importer.skip.hyks"; sascha@1223: sascha@1223: public static final String SKIP_WST = sascha@1223: "flys.backend.importer.skip.wst"; sascha@1223: sascha@1223: public static final String SKIP_EXTRA_WSTS = sascha@1223: "flys.backend.importer.skip.extra.wsts"; sascha@1223: sascha@1223: public static final String SKIP_FIXATIONS = sascha@1223: "flys.backend.importer.skip.fixations"; sascha@1223: sascha@1223: public static final String SKIP_OFFICIAL_LINES = sascha@1223: "flys.backend.importer.skip.official.lines"; sascha@1223: sascha@1223: public static final String SKIP_FLOOD_WATER = sascha@1223: "flys.backend.importer.skip.flood.water"; sascha@1223: sascha@1223: public static final String SKIP_FLOOD_PROTECTION = sascha@1223: "flys.backend.importer.skip.flood.protection"; sascha@1223: ingo@2810: public static final String SKIP_BED_HEIGHT_SINGLE = ingo@2810: "flys.backend.importer.skip.bed.height.single"; ingo@2810: ingo@2810: public static final String SKIP_BED_HEIGHT_EPOCH = ingo@2810: "flys.backend.importer.skip.bed.height.epoch"; ingo@2806: ingo@2814: public static final String SKIP_SEDIMENT_DENSITY = ingo@2814: "flys.backend.importer.skip.sediment.density"; ingo@2814: ingo@2820: public static final String SKIP_MORPHOLOGICAL_WIDTH = ingo@2820: "flys.backend.importer.skip.morphological.width"; ingo@2820: ingo@2826: public static final String SKIP_FLOW_VELOCITY = ingo@2826: "flys.backend.importer.skip.flow.velocity"; ingo@2826: ingo@2839: public static final String SKIP_SEDIMENT_YIELD = ingo@2839: "flys.backend.importer.skip.sediment.yield"; ingo@2839: ingo@2844: public static final String SKIP_WATERLEVELS = ingo@2844: "flys.backend.importer.skip.waterlevels"; ingo@2844: ingo@2851: public static final String SKIP_WATERLEVEL_DIFFERENCES = ingo@2851: "flys.backend.importer.skip.waterlevel.differences"; ingo@2851: ingo@4193: public static final String SKIP_MEASUREMENT_STATIONS = ingo@4193: "flys.backend.importer.skip.measurement.stations"; ingo@4193: ingo@3328: public static final String SKIP_SQ_RELATION = ingo@3328: "flys.backend.importer.skip.sq.relation"; ingo@3328: ingo@2806: sascha@1223: public static final Config INSTANCE = new Config(); sascha@1223: sascha@1223: private Config () { sascha@1223: } sascha@1223: sascha@3797: public static final boolean getFlag(String key) { sascha@3797: String flag = System.getProperty(key); sascha@3797: return flag != null sascha@3797: ? Boolean.valueOf(flag) sascha@3797: : Boolean.getBoolean(SKIP_DEFAULT); sascha@3797: } sascha@3797: sascha@1223: public boolean dryRun() { sascha@3797: return getFlag(DRY_RUN); sascha@1223: } sascha@1223: ingo@2804: public String getInfoGewFile() { ingo@2804: return System.getProperty(INFO_GEW_FILE); ingo@2804: } ingo@2804: sascha@1223: public String getAnnotationTypes() { sascha@1223: return System.getProperty(ANNOTATION_TYPES); sascha@1223: } sascha@1223: sascha@1223: public boolean skipGauges() { sascha@3797: return getFlag(SKIP_GAUGES); sascha@1223: } sascha@1223: teichmann@4135: public boolean skipHistoricalDischargeTables() { teichmann@4135: return getFlag(SKIP_HISTORICAL_DISCHARGE_TABLES); teichmann@4135: } teichmann@4135: sascha@1223: public boolean skipAnnotations() { sascha@3797: return getFlag(SKIP_ANNOTATIONS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipPRFs() { sascha@3797: return getFlag(SKIP_PRFS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipHYKs() { sascha@3797: return getFlag(SKIP_HYKS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipWst() { sascha@3797: return getFlag(SKIP_WST); sascha@1223: } sascha@1223: sascha@1223: public boolean skipExtraWsts() { sascha@3797: return getFlag(SKIP_EXTRA_WSTS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFixations() { sascha@3797: return getFlag(SKIP_FIXATIONS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipOfficialLines() { sascha@3797: return getFlag(SKIP_OFFICIAL_LINES); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFloodWater() { sascha@3797: return getFlag(SKIP_FLOOD_WATER); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFloodProtection() { sascha@3797: return getFlag(SKIP_FLOOD_PROTECTION); sascha@1223: } ingo@2806: ingo@2810: public boolean skipBedHeightSingle() { sascha@3797: return getFlag(SKIP_BED_HEIGHT_SINGLE); ingo@2810: } ingo@2810: ingo@2810: public boolean skipBedHeightEpoch() { sascha@3797: return getFlag(SKIP_BED_HEIGHT_EPOCH); ingo@2806: } ingo@2814: ingo@2814: public boolean skipSedimentDensity() { sascha@3797: return getFlag(SKIP_SEDIMENT_DENSITY); ingo@2814: } ingo@2820: ingo@2820: public boolean skipMorphologicalWidth() { sascha@3797: return getFlag(SKIP_MORPHOLOGICAL_WIDTH); ingo@2820: } ingo@2826: ingo@2826: public boolean skipFlowVelocity() { sascha@3797: return getFlag(SKIP_FLOW_VELOCITY); ingo@2826: } ingo@2839: ingo@2839: public boolean skipSedimentYield() { sascha@3797: return getFlag(SKIP_SEDIMENT_YIELD); ingo@2839: } ingo@2844: ingo@2844: public boolean skipWaterlevels() { sascha@3797: return getFlag(SKIP_WATERLEVELS); ingo@2844: } ingo@2851: ingo@2851: public boolean skipWaterlevelDifferences() { sascha@3797: return getFlag(SKIP_WATERLEVEL_DIFFERENCES); ingo@2851: } ingo@3328: ingo@4193: public boolean skipMeasurementStations() { ingo@4193: return getFlag(SKIP_MEASUREMENT_STATIONS); ingo@4193: } ingo@4193: ingo@3328: public boolean skipSQRelation() { sascha@3797: return getFlag(SKIP_SQ_RELATION); ingo@3328: } sascha@1223: } sascha@1223: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :