Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java @ 10:fc616c192902
Modified the Artifact interface and added a DefaultArtifact implementation.
flys-client/trunk@1319 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 16 Feb 2011 15:35:17 +0000 |
parents | |
children | 7f7f6d2c4b2c |
comparison
equal
deleted
inserted
replaced
9:8facd8545a12 | 10:fc616c192902 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 | |
4 /** | |
5 * The default implementation of an artifact that might be used in the client. | |
6 * | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public class DefaultArtifact implements Artifact { | |
10 | |
11 /** The artifact's uuid.*/ | |
12 protected String uuid; | |
13 | |
14 /** The artifacts hash value.*/ | |
15 protected String hash; | |
16 | |
17 /** The current artifact description.*/ | |
18 protected ArtifactDescription artifactDescription; | |
19 | |
20 /** | |
21 * This constructor should not be used to create new instances of this | |
22 * class. An empty artifact without uuid and hash will be the result of | |
23 * this constructor call. | |
24 */ | |
25 public DefaultArtifact() { | |
26 } | |
27 | |
28 | |
29 /** | |
30 * This constructor creates a new artifact instance with a uuid and a hash. | |
31 * | |
32 * @param uuid The artifact's uuid. | |
33 * @param hash The artifact's hash. | |
34 */ | |
35 public DefaultArtifact(String uuid, String hash) { | |
36 this.uuid = uuid; | |
37 this.hash = hash; | |
38 } | |
39 | |
40 | |
41 public String getUuid() { | |
42 return uuid; | |
43 } | |
44 | |
45 | |
46 public String getHash() { | |
47 return hash; | |
48 } | |
49 | |
50 | |
51 public ArtifactDescription getArtifactDescription() { | |
52 return artifactDescription; | |
53 } | |
54 | |
55 | |
56 public void setArtifactDescription(ArtifactDescription description) { | |
57 this.artifactDescription = description; | |
58 } | |
59 } | |
60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |