diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java @ 1136:8da5f5a9ed3c

Cosmetics, docs. flys-artifacts/trunk@2657 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 07 Sep 2011 07:28:52 +0000
parents eccf966fb677
children fb5a7ff9feb8
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Tue Sep 06 17:41:07 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Wed Sep 07 07:28:52 2011 +0000
@@ -48,6 +48,9 @@
     }
 
 
+    /**
+     * Append to a node and return xml description relevant for gui.
+     */
     public Element describeStatic(
         Artifact    artifact,
         Document    document,
@@ -80,7 +83,7 @@
             String    name = iter.next();
             StateData data = getData(flys, name);
 
-            String value = data != null ? (String) data.getValue() : null;
+            String value = (data != null) ? (String) data.getValue() : null;
 
             if (value == null) {
                 continue;
@@ -98,7 +101,7 @@
             String attrValue = "";
             try {
                 // XXX A better way to format the output would be to use the
-                // 'type' value if the data objects.
+                // 'type' value of the data objects.
                 double doubleVal = Double.valueOf(value);
                 Locale         l = Resources.getLocale(meta);
                 NumberFormat  nf = NumberFormat.getInstance(l);
@@ -134,13 +137,13 @@
         Element ui        = null;
         String uiprovider = getUIProvider();
         if (uiprovider != null) {
-            ui  = ProtocolUtils.createArtNode(
+            ui = ProtocolUtils.createArtNode(
                 creator, "dynamic",
                 new String[] { "uiprovider" },
                 new String[] { uiprovider });
         }
         else {
-            ui  = ProtocolUtils.createArtNode(creator, "dynamic", null, null);
+            ui = ProtocolUtils.createArtNode(creator, "dynamic", null, null);
         }
 
         Map<String, StateData> theData = getData();
@@ -263,6 +266,7 @@
         return null;
     }
 
+
     public Object computeAdvance(
         FLYSArtifact artifact,
         String       hash,
@@ -273,6 +277,7 @@
         return null;
     }
 
+
     public Object computeFeed(
         FLYSArtifact artifact,
         String       hash,
@@ -283,6 +288,7 @@
         return null;
     }
 
+
     public Object computeInit(
         FLYSArtifact artifact,
         String       hash,

http://dive4elements.wald.intevation.org