sascha@1223: package de.intevation.flys.importer; sascha@1223: sascha@1223: public class Config sascha@1223: { sascha@1223: public static final String DRY_RUN = sascha@1223: "flys.backend.importer.dry.run"; sascha@1223: 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: 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: sascha@1223: public static final Config INSTANCE = new Config(); sascha@1223: sascha@1223: private Config () { sascha@1223: } sascha@1223: sascha@1223: public boolean dryRun() { sascha@1223: return Boolean.getBoolean(DRY_RUN); sascha@1223: } sascha@1223: sascha@1223: public String getAnnotationTypes() { sascha@1223: return System.getProperty(ANNOTATION_TYPES); sascha@1223: } sascha@1223: sascha@1223: public boolean skipGauges() { sascha@1223: return Boolean.getBoolean(SKIP_GAUGES); sascha@1223: } sascha@1223: sascha@1223: public boolean skipAnnotations() { sascha@1223: return Boolean.getBoolean(SKIP_ANNOTATIONS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipPRFs() { sascha@1223: return Boolean.getBoolean(SKIP_PRFS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipHYKs() { sascha@1223: return Boolean.getBoolean(SKIP_HYKS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipWst() { sascha@1223: return Boolean.getBoolean(SKIP_WST); sascha@1223: } sascha@1223: sascha@1223: public boolean skipExtraWsts() { sascha@1223: return Boolean.getBoolean(SKIP_EXTRA_WSTS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFixations() { sascha@1223: return Boolean.getBoolean(SKIP_FIXATIONS); sascha@1223: } sascha@1223: sascha@1223: public boolean skipOfficialLines() { sascha@1223: return Boolean.getBoolean(SKIP_OFFICIAL_LINES); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFloodWater() { sascha@1223: return Boolean.getBoolean(SKIP_FLOOD_WATER); sascha@1223: } sascha@1223: sascha@1223: public boolean skipFloodProtection() { sascha@1223: return Boolean.getBoolean(SKIP_FLOOD_PROTECTION); sascha@1223: } sascha@1223: } sascha@1223: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :