diff gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 493:cef17cc90fd0

Changed some method signatures of the State interface. Use CallContext objects instead of CallMeta objects which are a subset of CallContext. gnv-artifacts/trunk@570 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jan 2010 10:58:46 +0000
parents d265f5dc2979
children 9681ac6b6527
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Jan 19 10:06:03 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Jan 19 10:58:46 2010 +0000
@@ -7,6 +7,7 @@
 import de.intevation.artifactdatabase.XMLUtils;
 
 import de.intevation.artifacts.ArtifactNamespaceContext;
+import de.intevation.artifacts.CallContext;
 import de.intevation.artifacts.CallMeta;
 
 import de.intevation.gnv.artifacts.GNVArtifactBase;
@@ -376,12 +377,14 @@
      * @see de.intevation.gnv.state.State#advance(java.lang.String,
      *      de.intevation.artifacts.CallMeta)
      */
-    public void advance(String uuid, CallMeta callMeta)
-                                                   throws StateException {
+    public void advance(String uuid, CallContext context)
+    throws StateException
+    {
     }
     
-    public void initialize(String uuid, CallMeta callMeta)
-                                                   throws StateException {
+    public void initialize(String uuid, CallContext context)
+    throws StateException
+    {
         log.debug("StateBase.initialize");
         try {
             String[] filterValues = this
@@ -546,8 +549,14 @@
      *      org.w3c.dom.Node, de.intevation.artifacts.CallMeta,
      *      java.lang.String)
      */
-    public void describe(Document document, Node rootNode, CallMeta callMeta,String uuid) {
+    public void describe(
+        Document    document,
+        Node        rootNode,
+        CallContext context,
+        String      uuid
+    ) {
         log.debug("StateBase.describe");
+        CallMeta callMeta = context.getMeta();
 
         List<Object> descibeData = this.getDescibeData(uuid);
         if (descibeData != null) {

http://dive4elements.wald.intevation.org