Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/Facet.java @ 295:e5bc48dc3ec3
Facets can write its internal representation to XML using a toXML() method now.
artifacts/trunk@2352 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jul 2011 15:05:20 +0000 |
parents | 7fbe674d758a |
children | 93a774fe2bb4 |
comparison
equal
deleted
inserted
replaced
294:b530e83acf2e | 295:e5bc48dc3ec3 |
---|---|
1 package de.intevation.artifactdatabase.state; | 1 package de.intevation.artifactdatabase.state; |
2 | 2 |
3 import java.io.Serializable; | 3 import java.io.Serializable; |
4 | |
5 import org.w3c.dom.Document; | |
6 import org.w3c.dom.Node; | |
4 | 7 |
5 import de.intevation.artifacts.Artifact; | 8 import de.intevation.artifacts.Artifact; |
6 import de.intevation.artifacts.CallContext; | 9 import de.intevation.artifacts.CallContext; |
7 | 10 |
8 | 11 |
41 * @param context The CallContext. | 44 * @param context The CallContext. |
42 * | 45 * |
43 * @return the data. | 46 * @return the data. |
44 */ | 47 */ |
45 Object getData(Artifact artifact, CallContext context); | 48 Object getData(Artifact artifact, CallContext context); |
49 | |
50 | |
51 /** | |
52 * Write the internal representation of a facet to a node. | |
53 * | |
54 * @param doc A Document. | |
55 * | |
56 * @return the representation as Node. | |
57 */ | |
58 Node toXML(Document doc); | |
46 } | 59 } |
47 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |