Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java @ 205:2a9591f76270
Changed the return type of a State's describe() method.
artifacts/trunk@1462 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 14 Mar 2011 14:19:28 +0000 |
parents | ece0fdb07975 |
children | 1a3fb29b8b2e |
comparison
equal
deleted
inserted
replaced
204:5c93fb142970 | 205:2a9591f76270 |
---|---|
11 import java.util.Map; | 11 import java.util.Map; |
12 | 12 |
13 import javax.xml.xpath.XPathConstants; | 13 import javax.xml.xpath.XPathConstants; |
14 | 14 |
15 import org.w3c.dom.Document; | 15 import org.w3c.dom.Document; |
16 import org.w3c.dom.Element; | |
16 import org.w3c.dom.Node; | 17 import org.w3c.dom.Node; |
17 | 18 |
18 import de.intevation.artifacts.CallContext; | 19 import de.intevation.artifacts.CallContext; |
19 | 20 |
20 import de.intevation.artifacts.common.utils.XMLUtils; | 21 import de.intevation.artifacts.common.utils.XMLUtils; |
45 /** The description of the state. */ | 46 /** The description of the state. */ |
46 protected String description; | 47 protected String description; |
47 | 48 |
48 /** The data provided by this state. */ | 49 /** The data provided by this state. */ |
49 protected Map<String, StateData> data; | 50 protected Map<String, StateData> data; |
51 | |
52 | |
53 public AbstractState() { | |
54 } | |
50 | 55 |
51 | 56 |
52 /** | 57 /** |
53 * The default constructor. | 58 * The default constructor. |
54 * | 59 * |
147 * @param document Describe doucment. | 152 * @param document Describe doucment. |
148 * @param rootNode Parent node for all new elements. | 153 * @param rootNode Parent node for all new elements. |
149 * @param context The CallContext. | 154 * @param context The CallContext. |
150 * @param uuid The uuid of an artifact. | 155 * @param uuid The uuid of an artifact. |
151 */ | 156 */ |
152 public abstract void describe( | 157 public abstract Element describe( |
153 Document document, | 158 Document document, |
154 Node rootNode, | 159 Node rootNode, |
155 CallContext context, | 160 CallContext context, |
156 String uuid | 161 String uuid |
157 ); | 162 ); |