comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java @ 256:55d08706ccf2

Added a getData(String) method to a State to get just a single StateData object. artifacts/trunk@1757 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 28 Apr 2011 10:27:27 +0000
parents 3d14fe6e05f7
children 995fa6994480
comparison
equal deleted inserted replaced
255:efbad8c5c0e5 256:55d08706ccf2
136 * 136 *
137 * @return the data of the state. 137 * @return the data of the state.
138 */ 138 */
139 public Map<String, StateData> getData() { 139 public Map<String, StateData> getData() {
140 return data; 140 return data;
141 }
142
143
144 /**
145 * Returns a specific data object of the state.
146 *
147 * @param name The name of the data object.
148 *
149 * @return a data object of the state or null if no such data object exists.
150 */
151 public StateData getData(String name) {
152 return data.get(name);
141 } 153 }
142 154
143 155
144 /** 156 /**
145 * Add new data to the state. NOTE: If there is already an object existing 157 * Add new data to the state. NOTE: If there is already an object existing

http://dive4elements.wald.intevation.org