changeset 51:71788b63b146

First Implementation of an ArtifactFactory gnv-artifacts/trunk@23 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 04 Sep 2009 15:23:51 +0000
parents 8d8d6c4e96e5
children 4d6a82b96059
files gnv-artifacts/Changelog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ArtifactFactoryBase.java
diffstat 2 files changed, 72 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/Changelog	Fri Sep 04 14:24:35 2009 +0000
+++ b/gnv-artifacts/Changelog	Fri Sep 04 15:23:51 2009 +0000
@@ -1,3 +1,8 @@
+2009-09-04  Tim Englich  <tim.englich@intevation.de>
+
+    * src/main/java/de/intevation/gnv/artifacts/ArtifactFactoryBase.java: 
+    Implementation of the General ArtifactFactory
+    
 2009-09-04  Tim Englich  <tim.englich@intevation.de>
 
     * pom.xml: Created with maven and put the Moduledependencies into it
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ArtifactFactoryBase.java	Fri Sep 04 15:23:51 2009 +0000
@@ -0,0 +1,67 @@
+/**
+ *
+ */
+package de.intevation.gnv.artifacts;
+
+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;
+
+/**
+ * @author Tim Englich <tim.englich@intevation.de>
+ *
+ */
+public abstract class ArtifactFactoryBase implements ArtifactFactory {
+
+    /**
+     * The Name of the ArtifactFactory
+     */
+    protected String name = "undefined";
+    
+    /**
+     * The description of the ArtifactFactory
+     */
+    protected String description = "undefined"; 
+    
+    /**
+     * Constructor
+     */
+    public ArtifactFactoryBase() {
+        super();
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactFactory#createArtifact(java.lang.String, java.lang.Object)
+     */
+    public Artifact createArtifact(String identifier, Object context) {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactFactory#getDescription()
+     */
+    public String getDescription() {
+
+        return this.description;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactFactory#getName()
+     */
+    public String getName() {
+
+        return this.name;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactFactory#setup(org.w3c.dom.Document)
+     */
+    public void setup(Document config, Node factoryNode) {
+        
+    }
+
+}

http://dive4elements.wald.intevation.org