comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/Artifact.java @ 36:ad381cc47217

Format Code to max 80 Chars per Row gnv/trunk@172 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 02 Oct 2009 08:54:13 +0000
parents 4405f31bbc30
children 183850730a90
comparison
equal deleted inserted replaced
35:4405f31bbc30 36:ad381cc47217
8 8
9 import org.w3c.dom.Node; 9 import org.w3c.dom.Node;
10 10
11 /** 11 /**
12 * @author Tim Englich <tim.englich@intevation.de> 12 * @author Tim Englich <tim.englich@intevation.de>
13 * 13 *
14 */ 14 */
15 public class Artifact implements ArtifactObject, ArtifactDescription { 15 public class Artifact implements ArtifactObject, ArtifactDescription {
16 16
17 private String id = null; 17 private String id = null;
18 private String hash = null; 18 private String hash = null;
19 private boolean selected = false; 19 private boolean selected = false;
20 20
21 private Node currentUI = null; 21 private Node currentUI = null;
22 private Node currentOut = null; 22 private Node currentOut = null;
23 23
24 private Collection<String> reachableStates; 24 private Collection<String> reachableStates;
25 private Collection<String> inputParameter; 25 private Collection<String> inputParameter;
26 private Map<String,OutputMode> outputModes; 26 private Map<String, OutputMode> outputModes;
27 private String currentState = null; 27 private String currentState = null;
28 28
29 /** 29 /**
30 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getCurrentUI() 30 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getCurrentUI()
31 */ 31 */
32 public Node getCurrentUI() { 32 public Node getCurrentUI() {
33 return currentUI; 33 return currentUI;
84 84
85 /** 85 /**
86 * Constructor 86 * Constructor
87 */ 87 */
88 public Artifact(String uuid, String hash) { 88 public Artifact(String uuid, String hash) {
89 89
90 this.id = uuid; 90 this.id = uuid;
91 this.hash = hash; 91 this.hash = hash;
92 } 92 }
93 93
94 /** 94 /**
151 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getOutputModes() 151 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getOutputModes()
152 */ 152 */
153 public Map<String, OutputMode> getOutputModes() { 153 public Map<String, OutputMode> getOutputModes() {
154 return this.outputModes; 154 return this.outputModes;
155 } 155 }
156 156
157 /** 157 /**
158 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getOutputModesAsCollection() 158 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getOutputModesAsCollection()
159 */ 159 */
160 public Collection<OutputMode> getOutputModesAsCollection() { 160 public Collection<OutputMode> getOutputModesAsCollection() {
161 if (this.outputModes != null){ 161 if (this.outputModes != null) {
162 return this.outputModes.values(); 162 return this.outputModes.values();
163 } 163 }
164 return null; 164 return null;
165 } 165 }
166 166

http://dive4elements.wald.intevation.org