comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java @ 110:33271242e303

Prepared the State and StateData interfaces with methods to add new data to a State and implemented a DefaultStateData class. artifacts/trunk@1301 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 07 Feb 2011 17:35:16 +0000
parents 26bfff409dd3
children 2a9591f76270
comparison
equal deleted inserted replaced
109:ab646e0f5569 110:33271242e303
49 */ 49 */
50 public Map<String, StateData> getData(); 50 public Map<String, StateData> getData();
51 51
52 52
53 /** 53 /**
54 * This method should be used to add a new {@link StateData} object to the
55 * data pool of the state.
56 *
57 * @param name The name of the data object.
58 * @param data The data object.
59 */
60 public void addData(String name, StateData data);
61
62
63 /**
54 * Initialize the state based on the state node in the configuration. 64 * Initialize the state based on the state node in the configuration.
55 * 65 *
56 * @param config The state configuration node. 66 * @param config The state configuration node.
57 */ 67 */
58 public void setup(Node config); 68 public void setup(Node config);

http://dive4elements.wald.intevation.org