changeset 7619:c5f7c798a0a4

Remove close-isOfficial-Handling in StaticWQKmsArtifact.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 29 Nov 2013 12:17:22 +0100
parents 9098499114e9
children 22b9d2dfb4d2
files artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Fri Nov 29 12:16:34 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Fri Nov 29 12:17:22 2013 +0100
@@ -59,8 +59,6 @@
 
     private static final String NAME = "staticwqkms";
 
-    private boolean official = false;
-
     static {
         // TODO: Move to configuration.
         FacetActivity.Registry.getInstance().register(
@@ -113,7 +111,8 @@
             String [] parts = code.split("-");
 
             if (parts.length >= 1) {
-                official = parts[0].toLowerCase().equals("official");
+                boolean official = parts[0].toLowerCase().startsWith("official");
+                addStringData("official", official ? "1" : null);
             }
 
             if (parts.length >= 4) {
@@ -232,10 +231,5 @@
         return Lines.createWaterLines(points, wAtKm);
     }
     // TODO implement deepCopy.
-
-    public boolean isOfficial()
-    {
-        return official;
-    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org