Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactFactory.java @ 2:5e94403971af
infrastructur for Communicationg with the ArtifactDatabase added.
gnv/trunk@71 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 11 Sep 2009 15:17:38 +0000 |
parents | |
children | fe6a64545552 |
comparison
equal
deleted
inserted
replaced
1:3481f68e6d2a | 2:5e94403971af |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifactdatabase.objects; | |
5 /** | |
6 * @author Tim Englich <tim.englich@intevation.de> | |
7 * | |
8 */ | |
9 public class ArtifactFactory implements ArtifactObject { | |
10 | |
11 private String name = null; | |
12 | |
13 private String description = null; | |
14 | |
15 private boolean selected = false; | |
16 | |
17 private String dataBaseUrl = null; | |
18 /** | |
19 * @return the dataBaseUrl | |
20 */ | |
21 public String getDataBaseUrl() { | |
22 return dataBaseUrl; | |
23 } | |
24 | |
25 | |
26 /** | |
27 * Constructor | |
28 * @param name | |
29 * @param description | |
30 * @param dataBaseUrl | |
31 */ | |
32 public ArtifactFactory(String name, String description, String dataBaseUrl) { | |
33 super(); | |
34 this.name = name; | |
35 this.description = description; | |
36 this.dataBaseUrl = dataBaseUrl; | |
37 } | |
38 | |
39 | |
40 | |
41 /** | |
42 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getId() | |
43 */ | |
44 public String getId() { | |
45 return this.name; | |
46 } | |
47 | |
48 /** | |
49 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#isSelected() | |
50 */ | |
51 public boolean isSelected() { | |
52 | |
53 return this.selected; | |
54 } | |
55 | |
56 /** | |
57 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#setSelected(boolean) | |
58 */ | |
59 public void setSelected(boolean selected) { | |
60 this.selected = selected; | |
61 } | |
62 | |
63 /** | |
64 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getName() | |
65 */ | |
66 public String getName() { | |
67 return name; | |
68 } | |
69 | |
70 /** | |
71 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactObject#getDescription() | |
72 */ | |
73 public String getDescription() { | |
74 return description; | |
75 } | |
76 | |
77 } |