Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/Artifact.java @ 7:fe6a64545552
Support for creating an Artifact integrated
gnv/trunk@83 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 14 Sep 2009 13:46:25 +0000 |
parents | |
children | a4cb6d175a6e |
comparison
equal
deleted
inserted
replaced
6:6592580ae823 | 7:fe6a64545552 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifactdatabase.objects; | |
5 /** | |
6 * @author Tim Englich <tim.englich@intevation.de> | |
7 * | |
8 */ | |
9 public class Artifact implements ArtifactObject { | |
10 | |
11 private String id = null; | |
12 private String hash = null; | |
13 private boolean selected = false; | |
14 /** | |
15 * Constructor | |
16 */ | |
17 public Artifact(String uuid, String hash) { | |
18 | |
19 this.id = uuid; | |
20 this.hash = hash; | |
21 } | |
22 | |
23 /** | |
24 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getHash() | |
25 */ | |
26 public String getHash() { | |
27 return this.hash; | |
28 } | |
29 | |
30 /** | |
31 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getDescription() | |
32 */ | |
33 public String getDescription() { | |
34 return this.id; | |
35 } | |
36 | |
37 /** | |
38 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getId() | |
39 */ | |
40 public String getId() { | |
41 return this.id; | |
42 } | |
43 | |
44 /** | |
45 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getName() | |
46 */ | |
47 public String getName() { | |
48 return this.id; | |
49 } | |
50 | |
51 /** | |
52 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#isSelected() | |
53 */ | |
54 public boolean isSelected() { | |
55 return this.selected; | |
56 } | |
57 | |
58 /** | |
59 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#setSelected(boolean) | |
60 */ | |
61 public void setSelected(boolean selected) { | |
62 this.selected = selected; | |
63 } | |
64 | |
65 } |