diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java @ 1065:193c49b7f6a3

Minor changes to stub MainValuesArtifact. flys-artifacts/trunk@2545 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 24 Aug 2011 08:42:31 +0000
parents b1b0a0b61845
children 80aecb01d79a
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Wed Aug 24 08:22:09 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Wed Aug 24 08:42:31 2011 +0000
@@ -7,7 +7,9 @@
 
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
+import org.w3c.dom.Node;
 
+import de.intevation.artifacts.Artifact;
 import de.intevation.artifacts.ArtifactFactory;
 import de.intevation.artifacts.ArtifactNamespaceContext;
 import de.intevation.artifacts.CallContext;
@@ -29,10 +31,10 @@
 extends      StaticFLYSArtifact
 {
     /** The logger for this class. */
-    private static Logger logger = Logger.getLogger(WINFOArtifact.class);
+    private static Logger logger = Logger.getLogger(MainValuesArtifact.class);
 
     /** The name of the artifact. */
-    public static final String ARTIFACT_NAME = "annotation";
+    public static final String ARTIFACT_NAME = "mainvalue";
    
     public MainValuesArtifact() {
         logger.warn("MainValuesArtifact.MainValuesartifact()");
@@ -176,4 +178,70 @@
             // state is not valid, so we do not append its outputs.
         }
     }
+
+
+    /* FACET IMPLEMENTATION  */
+    class MainValuesFacet implements Facet {
+
+        // TODO implement; what is index used for?
+        /**
+         * Returns the index of this facet.
+         *
+         * @return the index of this facet.
+         */
+        public int getIndex() {
+            return 0;
+        }
+ 
+ 
+        /**
+         * Returns the name of this facet.
+         *
+         * @return the name of this facet.
+         */
+        public String getName() {
+            // TODO define, static
+            return "facet.mainvalue";
+        }
+ 
+ 
+        /**
+         * Returns the description of this facet.
+         *
+         * @return the description of this facet.
+         */
+        public String getDescription() {
+            return null;
+        }
+ 
+ 
+        /**
+         * Returns the data this facet requires.
+         *
+         * @param artifact The owner artifact.
+         * @param context The CallContext.
+         *
+         * @return the data.
+         */
+        public Object getData(Artifact artifact, CallContext context) {
+            return null;
+        }
+ 
+ 
+        /**
+         * Write the internal representation of a facet to a node.
+         *
+         * @param doc A Document.
+         *
+         * @return the representation as Node.
+         */
+        public Node toXML(Document doc) {
+            return null;
+        }
+
+        public MainValuesFacet deepCopy() {
+            return null;
+        }
+    }
+ 
 }

http://dive4elements.wald.intevation.org