comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java @ 64:3d646d3e8e27

Enhanced the ArtifactDescription and its default implementation to provide output modes. flys-client/trunk@1546 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 23 Mar 2011 11:06:31 +0000
parents a2923d63f530
children 653ae84533e7
comparison
equal deleted inserted replaced
63:c8e651530f34 64:3d646d3e8e27
20 protected String currentState; 20 protected String currentState;
21 21
22 /** The names of reachable states.*/ 22 /** The names of reachable states.*/
23 protected String[] reachableStates; 23 protected String[] reachableStates;
24 24
25 /** The output modes of this state.*/
26 protected OutputMode[] outputModes;
27
25 28
26 public DefaultArtifactDescription() { 29 public DefaultArtifactDescription() {
27 } 30 }
28 31
29 32
34 * @param current The data that might be inserted in the current state. 37 * @param current The data that might be inserted in the current state.
35 * @param state The name of the current state. 38 * @param state The name of the current state.
36 * @param reachableStates The names of the reachable states. 39 * @param reachableStates The names of the reachable states.
37 */ 40 */
38 public DefaultArtifactDescription( 41 public DefaultArtifactDescription(
39 DataList[] old, DataList current, String state, String[] reachableStates) 42 DataList[] old,
43 DataList current,
44 String state,
45 String[] reachableStates)
40 { 46 {
41 this.oldData = old; 47 this.oldData = old;
42 this.currentData = current; 48 this.currentData = current;
43 this.currentState = state; 49 this.currentState = state;
44 this.reachableStates = reachableStates; 50 this.reachableStates = reachableStates;
51 }
52
53
54 /**
55 * The default constructor.
56 *
57 * @param old The data that have been inserted in former states.
58 * @param current The data that might be inserted in the current state.
59 * @param state The name of the current state.
60 * @param reachableStates The names of the reachable states.
61 * @param outputModes The available output modes of this artifact.
62 */
63 public DefaultArtifactDescription(
64 DataList[] old,
65 DataList current,
66 String state,
67 String[] reachableStates,
68 OutputMode[] outputModes)
69 {
70 this(old, current, state, reachableStates);
71 this.outputModes = outputModes;
45 } 72 }
46 73
47 74
48 public DataList[] getOldData() { 75 public DataList[] getOldData() {
49 return oldData; 76 return oldData;
61 88
62 89
63 public String[] getReachableStates() { 90 public String[] getReachableStates() {
64 return reachableStates; 91 return reachableStates;
65 } 92 }
93
94
95 public OutputMode[] getOutputModes() {
96 return outputModes;
97 }
66 } 98 }
67 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org