changeset 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 face2302387c
children 973f244ed568
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/data/DefaultStateData.java
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 09 11:14:21 2011 +0000
+++ b/ChangeLog	Wed Mar 09 14:02:03 2011 +0000
@@ -1,3 +1,8 @@
+2011-03-09  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/data/DefaultStateData.java:
+	  Added a further constructor that takes even the value.
+
 2011-03-08	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* artifact-database/doc/schema-pg.sql, artifact-database/doc/schema-h2.sql: 
--- 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