diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java @ 4868:9bddb6f5baa0

MetaDataService: Document parameters string.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 28 Jan 2013 00:45:23 +0100
parents afd817b006b7
children
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Fri Jan 25 16:32:21 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Mon Jan 28 00:45:23 2013 +0100
@@ -33,7 +33,7 @@
  *  "/art:meta/art:outs/@value"        The list of outs used to recommend for the
  *                                     various outputs.
  *  "/art:meta/art:parameters/@value"  A list of key/value pairs to inject more
- *                                     filters to the templating.
+ *                                     filters to the templating, as "key:value;key2:value2"
  */
 public class MetaDataService
 extends      FLYSService
@@ -86,6 +86,14 @@
             artifactId, userId, outs, parameters, globalContext);
     }
 
+
+    /**
+     * Split parameterstring in the form of key1:value1;key2:value2
+     * into hash (key1->value1, key2->value2).
+     * @param parameters "key1:value1;key2:value2"
+     * @param data Map into wich to put parameter hash and return.
+     * @return parameter data
+     */
     protected static Map<String, Object> splitParameters(
         String              parameters,
         Map<String, Object> data

http://dive4elements.wald.intevation.org