Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ArtifactFactoryBase.java @ 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 | |
children |
comparison
equal
deleted
inserted
replaced
50:8d8d6c4e96e5 | 51:71788b63b146 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifacts; | |
5 | |
6 import org.w3c.dom.Document; | |
7 import org.w3c.dom.Element; | |
8 import org.w3c.dom.Node; | |
9 | |
10 import de.intevation.artifacts.Artifact; | |
11 import de.intevation.artifacts.ArtifactFactory; | |
12 | |
13 /** | |
14 * @author Tim Englich <tim.englich@intevation.de> | |
15 * | |
16 */ | |
17 public abstract class ArtifactFactoryBase implements ArtifactFactory { | |
18 | |
19 /** | |
20 * The Name of the ArtifactFactory | |
21 */ | |
22 protected String name = "undefined"; | |
23 | |
24 /** | |
25 * The description of the ArtifactFactory | |
26 */ | |
27 protected String description = "undefined"; | |
28 | |
29 /** | |
30 * Constructor | |
31 */ | |
32 public ArtifactFactoryBase() { | |
33 super(); | |
34 } | |
35 | |
36 /** | |
37 * @see de.intevation.artifacts.ArtifactFactory#createArtifact(java.lang.String, java.lang.Object) | |
38 */ | |
39 public Artifact createArtifact(String identifier, Object context) { | |
40 | |
41 return null; | |
42 } | |
43 | |
44 /** | |
45 * @see de.intevation.artifacts.ArtifactFactory#getDescription() | |
46 */ | |
47 public String getDescription() { | |
48 | |
49 return this.description; | |
50 } | |
51 | |
52 /** | |
53 * @see de.intevation.artifacts.ArtifactFactory#getName() | |
54 */ | |
55 public String getName() { | |
56 | |
57 return this.name; | |
58 } | |
59 | |
60 /** | |
61 * @see de.intevation.artifacts.ArtifactFactory#setup(org.w3c.dom.Document) | |
62 */ | |
63 public void setup(Document config, Node factoryNode) { | |
64 | |
65 } | |
66 | |
67 } |