Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/Artifact.java @ 958:d5d4dbda17cc
Add more Javadocs
gnv/trunk@1102 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 18 May 2010 09:51:41 +0000 |
parents | 89ade245ca7a |
children | 28a0628b11b0 |
comparison
equal
deleted
inserted
replaced
957:33fb5bf4e62c | 958:d5d4dbda17cc |
---|---|
17 /** | 17 /** |
18 * The UID of this Class | 18 * The UID of this Class |
19 */ | 19 */ |
20 private static final long serialVersionUID = 8606869493141810364L; | 20 private static final long serialVersionUID = 8606869493141810364L; |
21 | 21 |
22 /** | |
23 * The uuid of this Artifact which must be used to identify | |
24 * the artifact at the <code>ArtifactDatabase</code>. | |
25 */ | |
22 private String id = null; | 26 private String id = null; |
27 | |
28 /** | |
29 * The hash of the artifact which was send be the <code>ArtifactDatabase</code>. | |
30 */ | |
23 private String hash = null; | 31 private String hash = null; |
32 | |
33 /** | |
34 * Flag which marks if the Artifact is currently selected or not. | |
35 */ | |
24 private boolean selected = false; | 36 private boolean selected = false; |
25 | 37 |
38 /** | |
39 * The XML-Node of the current User-Interface | |
40 */ | |
26 private Node currentUI = null; | 41 private Node currentUI = null; |
42 | |
43 /** | |
44 * The XML-Nodes of the OutputModes. | |
45 */ | |
27 private Node currentOut = null; | 46 private Node currentOut = null; |
28 | 47 |
48 /** | |
49 * The ids of the states which could be reached. | |
50 */ | |
29 private Collection<String> reachableStates; | 51 private Collection<String> reachableStates; |
52 | |
53 /** | |
54 * The parameters whcih could be feed to the artifact at the current state. | |
55 */ | |
30 private Collection<String> inputParameter; | 56 private Collection<String> inputParameter; |
57 | |
58 /** | |
59 * The <code>OutputModes</code> that could be reached at the current state. | |
60 */ | |
31 private Map<String, OutputMode> outputModes; | 61 private Map<String, OutputMode> outputModes; |
62 | |
63 /** | |
64 * The id of the state which is currently used. | |
65 */ | |
32 private String currentState = null; | 66 private String currentState = null; |
33 | 67 |
68 /** | |
69 * Constructor | |
70 * @param uuid the uuid of this Artifact which must be used to identify | |
71 * the artifact at the <code>ArtifactDatabase</code> | |
72 * @param hash the hash of the artifact which was send be the | |
73 * <code>ArtifactDatabase</code> | |
74 */ | |
75 public Artifact(String uuid, String hash) { | |
76 this.id = uuid; | |
77 this.hash = hash; | |
78 } | |
34 | 79 |
35 public Node getCurrentUI() { | 80 public Node getCurrentUI() { |
36 return currentUI; | 81 return currentUI; |
37 } | 82 } |
38 | 83 |
68 | 113 |
69 | 114 |
70 public void setCurrentState(String currentState) { | 115 public void setCurrentState(String currentState) { |
71 this.currentState = currentState; | 116 this.currentState = currentState; |
72 } | 117 } |
73 | |
74 /** | |
75 * Constructor | |
76 */ | |
77 public Artifact(String uuid, String hash) { | |
78 | |
79 this.id = uuid; | |
80 this.hash = hash; | |
81 } | |
82 | |
83 | 118 |
84 public String getHash() { | 119 public String getHash() { |
85 return this.hash; | 120 return this.hash; |
86 } | 121 } |
87 | 122 |