Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1064:13784581ab0c | 1065:193c49b7f6a3 |
---|---|
5 | 5 |
6 import org.apache.log4j.Logger; | 6 import org.apache.log4j.Logger; |
7 | 7 |
8 import org.w3c.dom.Document; | 8 import org.w3c.dom.Document; |
9 import org.w3c.dom.Element; | 9 import org.w3c.dom.Element; |
10 | 10 import org.w3c.dom.Node; |
11 | |
12 import de.intevation.artifacts.Artifact; | |
11 import de.intevation.artifacts.ArtifactFactory; | 13 import de.intevation.artifacts.ArtifactFactory; |
12 import de.intevation.artifacts.ArtifactNamespaceContext; | 14 import de.intevation.artifacts.ArtifactNamespaceContext; |
13 import de.intevation.artifacts.CallContext; | 15 import de.intevation.artifacts.CallContext; |
14 import de.intevation.artifacts.CallMeta; | 16 import de.intevation.artifacts.CallMeta; |
15 | 17 |
27 */ | 29 */ |
28 public class MainValuesArtifact | 30 public class MainValuesArtifact |
29 extends StaticFLYSArtifact | 31 extends StaticFLYSArtifact |
30 { | 32 { |
31 /** The logger for this class. */ | 33 /** The logger for this class. */ |
32 private static Logger logger = Logger.getLogger(WINFOArtifact.class); | 34 private static Logger logger = Logger.getLogger(MainValuesArtifact.class); |
33 | 35 |
34 /** The name of the artifact. */ | 36 /** The name of the artifact. */ |
35 public static final String ARTIFACT_NAME = "annotation"; | 37 public static final String ARTIFACT_NAME = "mainvalue"; |
36 | 38 |
37 public MainValuesArtifact() { | 39 public MainValuesArtifact() { |
38 logger.warn("MainValuesArtifact.MainValuesartifact()"); | 40 logger.warn("MainValuesArtifact.MainValuesartifact()"); |
39 } | 41 } |
40 | 42 |
174 } | 176 } |
175 catch (IllegalArgumentException iae) { | 177 catch (IllegalArgumentException iae) { |
176 // state is not valid, so we do not append its outputs. | 178 // state is not valid, so we do not append its outputs. |
177 } | 179 } |
178 } | 180 } |
181 | |
182 | |
183 /* FACET IMPLEMENTATION */ | |
184 class MainValuesFacet implements Facet { | |
185 | |
186 // TODO implement; what is index used for? | |
187 /** | |
188 * Returns the index of this facet. | |
189 * | |
190 * @return the index of this facet. | |
191 */ | |
192 public int getIndex() { | |
193 return 0; | |
194 } | |
195 | |
196 | |
197 /** | |
198 * Returns the name of this facet. | |
199 * | |
200 * @return the name of this facet. | |
201 */ | |
202 public String getName() { | |
203 // TODO define, static | |
204 return "facet.mainvalue"; | |
205 } | |
206 | |
207 | |
208 /** | |
209 * Returns the description of this facet. | |
210 * | |
211 * @return the description of this facet. | |
212 */ | |
213 public String getDescription() { | |
214 return null; | |
215 } | |
216 | |
217 | |
218 /** | |
219 * Returns the data this facet requires. | |
220 * | |
221 * @param artifact The owner artifact. | |
222 * @param context The CallContext. | |
223 * | |
224 * @return the data. | |
225 */ | |
226 public Object getData(Artifact artifact, CallContext context) { | |
227 return null; | |
228 } | |
229 | |
230 | |
231 /** | |
232 * Write the internal representation of a facet to a node. | |
233 * | |
234 * @param doc A Document. | |
235 * | |
236 * @return the representation as Node. | |
237 */ | |
238 public Node toXML(Document doc) { | |
239 return null; | |
240 } | |
241 | |
242 public MainValuesFacet deepCopy() { | |
243 return null; | |
244 } | |
245 } | |
246 | |
179 } | 247 } |