Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java @ 51:a2923d63f530
Introduced a data structure DataList to manage to list of Data objects of a single state.
flys-client/trunk@1505 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 17 Mar 2011 16:44:51 +0000 |
parents | fa0aad20af53 |
children | 3d646d3e8e27 |
comparison
equal
deleted
inserted
replaced
50:827eb4e06ebf | 51:a2923d63f530 |
---|---|
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
10 */ | 10 */ |
11 public class DefaultArtifactDescription implements ArtifactDescription { | 11 public class DefaultArtifactDescription implements ArtifactDescription { |
12 | 12 |
13 /** Data that have been inserted in former states.*/ | 13 /** Data that have been inserted in former states.*/ |
14 protected Data[] oldData; | 14 protected DataList[] oldData; |
15 | 15 |
16 /** The Data that is allowed to be inserted in the current state.*/ | 16 /** The Data that is allowed to be inserted in the current state.*/ |
17 protected Data currentData; | 17 protected DataList currentData; |
18 | 18 |
19 /** The current state name.*/ | 19 /** The current state name.*/ |
20 protected String currentState; | 20 protected String currentState; |
21 | 21 |
22 /** The names of reachable states.*/ | 22 /** The names of reachable states.*/ |
34 * @param current The data that might be inserted in the current state. | 34 * @param current The data that might be inserted in the current state. |
35 * @param state The name of the current state. | 35 * @param state The name of the current state. |
36 * @param reachableStates The names of the reachable states. | 36 * @param reachableStates The names of the reachable states. |
37 */ | 37 */ |
38 public DefaultArtifactDescription( | 38 public DefaultArtifactDescription( |
39 Data[] old, Data current, String state, String[] reachableStates) | 39 DataList[] old, DataList current, String state, String[] reachableStates) |
40 { | 40 { |
41 this.oldData = old; | 41 this.oldData = old; |
42 this.currentData = current; | 42 this.currentData = current; |
43 this.currentState = state; | 43 this.currentState = state; |
44 this.reachableStates = reachableStates; | 44 this.reachableStates = reachableStates; |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 public Data[] getOldData() { | 48 public DataList[] getOldData() { |
49 return oldData; | 49 return oldData; |
50 } | 50 } |
51 | 51 |
52 | 52 |
53 public Data getCurrentData() { | 53 public DataList getCurrentData() { |
54 return currentData; | 54 return currentData; |
55 } | 55 } |
56 | 56 |
57 | 57 |
58 public String getCurrentState() { | 58 public String getCurrentState() { |