comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java @ 210:b75fca1ac215

Enhanced the State interface to retrieve its output modes. artifacts/trunk@1541 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 23 Mar 2011 10:45:36 +0000
parents 2a9591f76270
children 3d14fe6e05f7
comparison
equal deleted inserted replaced
209:1a3fb29b8b2e 210:b75fca1ac215
6 * or visit http://www.gnu.org/licenses/ if it does not exist. 6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */ 7 */
8 package de.intevation.artifactdatabase.state; 8 package de.intevation.artifactdatabase.state;
9 9
10 import java.io.Serializable; 10 import java.io.Serializable;
11 import java.util.List;
11 import java.util.Map; 12 import java.util.Map;
12 13
13 import org.w3c.dom.Document; 14 import org.w3c.dom.Document;
14 import org.w3c.dom.Element; 15 import org.w3c.dom.Element;
15 import org.w3c.dom.Node; 16 import org.w3c.dom.Node;
60 */ 61 */
61 public void addData(String name, StateData data); 62 public void addData(String name, StateData data);
62 63
63 64
64 /** 65 /**
66 * Returns the list of possible outputs of this state. The list is empty
67 * if no output is available for this state.
68 *
69 * @return a list of possible outputs of this state.
70 */
71 public List<Output> getOutputs();
72
73
74 /**
65 * Initialize the state based on the state node in the configuration. 75 * Initialize the state based on the state node in the configuration.
66 * 76 *
67 * @param config The state configuration node. 77 * @param config The state configuration node.
68 */ 78 */
69 public void setup(Node config); 79 public void setup(Node config);

http://dive4elements.wald.intevation.org