diff artifact-database/src/main/java/de/intevation/artifactdatabase/data/DefaultStateData.java @ 200:62dd8438885f

Added a further constructor to the DefaultStateData class. artifacts/trunk@1439 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Mar 2011 14:02:03 +0000
parents 33271242e303
children 93a774fe2bb4
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/data/DefaultStateData.java	Wed Mar 09 11:14:21 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/data/DefaultStateData.java	Wed Mar 09 14:02:03 2011 +0000
@@ -42,6 +42,28 @@
 
 
     /**
+     * A constructor that takes the name of the data, its value and the
+     * describing parameters description and type.
+     *
+     * @param name The name of the data item.
+     * @param description The description.
+     * @param type The type.
+     * @param value The value of the data item.
+     */
+    public DefaultStateData(
+        String name,
+        String description,
+        String type,
+        String value)
+    {
+        this.name        = name;
+        this.description = description;
+        this.type        = type;
+        this.value       = value;
+    }
+
+
+    /**
      * Returns the name of the data object.
      *
      * @return the name.

http://dive4elements.wald.intevation.org