changeset 205:2a9591f76270

Changed the return type of a State's describe() method. artifacts/trunk@1462 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 14 Mar 2011 14:19:28 +0000
parents 5c93fb142970
children 33f58a847fc4
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 10 10:32:51 2011 +0000
+++ b/ChangeLog	Mon Mar 14 14:19:28 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-14  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java,
+	  artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java:
+	  The describe() method of a state will now return an Element.
+
 2011-03-10  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Thu Mar 10 10:32:51 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Mon Mar 14 14:19:28 2011 +0000
@@ -13,6 +13,7 @@
 import javax.xml.xpath.XPathConstants;
 
 import org.w3c.dom.Document;
+import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 
 import de.intevation.artifacts.CallContext;
@@ -49,6 +50,10 @@
     protected Map<String, StateData> data;
 
 
+    public AbstractState() {
+    }
+
+
     /**
      * The default constructor.
      *
@@ -149,7 +154,7 @@
      * @param context The CallContext.
      * @param uuid The uuid of an artifact.
      */
-    public abstract void describe(
+    public abstract Element describe(
         Document    document,
         Node        rootNode,
         CallContext context,
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Thu Mar 10 10:32:51 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Mon Mar 14 14:19:28 2011 +0000
@@ -11,6 +11,7 @@
 import java.util.Map;
 
 import org.w3c.dom.Document;
+import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 
 import de.intevation.artifacts.CallContext;
@@ -77,7 +78,7 @@
      * @param context The CallContext.
      * @param uuid The uuid of an artifact.
      */
-    public void describe(
+    public Element describe(
         Document    document,
         Node        rootNode,
         CallContext context,

http://dive4elements.wald.intevation.org