comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/Artifact.java @ 9:a4cb6d175a6e

Support for Initial DescribeCall to ArtifactDatabase implemented gnv/trunk@85 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 14 Sep 2009 15:29:38 +0000
parents fe6a64545552
children 4ebe57b170d3
comparison
equal deleted inserted replaced
8:65ff6fcfee0c 9:a4cb6d175a6e
1 /** 1 /**
2 * 2 *
3 */ 3 */
4 package de.intevation.gnv.artifactdatabase.objects; 4 package de.intevation.gnv.artifactdatabase.objects;
5
6 import java.util.Collection;
7
8 import org.w3c.dom.Document;
9 import org.w3c.dom.Node;
10
5 /** 11 /**
6 * @author Tim Englich <tim.englich@intevation.de> 12 * @author Tim Englich <tim.englich@intevation.de>
7 * 13 *
8 */ 14 */
9 public class Artifact implements ArtifactObject { 15 public class Artifact implements ArtifactObject, ArtifactDescription {
10 16
11 private String id = null; 17 private String id = null;
12 private String hash = null; 18 private String hash = null;
13 private boolean selected = false; 19 private boolean selected = false;
20
21 private Node currentUI = null;
22 private Node currentOut = null;
23
24 private Collection<String> reachableStates;
25 private String currentState = null;
26
27 /**
28 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getCurrentUI()
29 */
30 public Node getCurrentUI() {
31 return currentUI;
32 }
33
34 /**
35 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#setCurrentUI(org.w3c.dom.Node)
36 */
37 public void setCurrentUI(Node currentUI) {
38 this.currentUI = currentUI;
39 }
40
41 /**
42 * @return the currentOut
43 */
44 public Node getCurrentOut() {
45 return currentOut;
46 }
47
48 /**
49 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#setCurrentOut(org.w3c.dom.Node)
50 */
51 public void setCurrentOut(Node currentOut) {
52 this.currentOut = currentOut;
53 }
54
55 /**
56 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getReachableStates()
57 */
58 public Collection<String> getReachableStates() {
59 return reachableStates;
60 }
61
62 /**
63 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#setReachableStates(java.util.Collection)
64 */
65 public void setReachableStates(Collection<String> reachableStates) {
66 this.reachableStates = reachableStates;
67 }
68
69 /**
70 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#getCurrentState()
71 */
72 public String getCurrentState() {
73 return currentState;
74 }
75
76 /**
77 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactDescription#setCurrentState(java.lang.String)
78 */
79 public void setCurrentState(String currentState) {
80 this.currentState = currentState;
81 }
82
14 /** 83 /**
15 * Constructor 84 * Constructor
16 */ 85 */
17 public Artifact(String uuid, String hash) { 86 public Artifact(String uuid, String hash) {
18 87

http://dive4elements.wald.intevation.org