Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/map/DefaultLayer.java @ 402:b88e881e8e94
Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
gnv/trunk@573 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 19 Jan 2010 14:47:36 +0000 |
parents | |
children | 15ac78a91d1b |
comparison
equal
deleted
inserted
replaced
401:002a4d38c16d | 402:b88e881e8e94 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifactdatabase.objects.map; | |
5 /** | |
6 * @author Tim Englich <tim.englich@intevation.de> | |
7 * | |
8 */ | |
9 public class DefaultLayer implements Layer { | |
10 | |
11 | |
12 private String id = null; | |
13 | |
14 private String name = null; | |
15 | |
16 private boolean groupLayer = false; | |
17 | |
18 private String parentId = null; | |
19 /** | |
20 * Constructor | |
21 */ | |
22 public DefaultLayer(String id,String name, | |
23 boolean groupLayer,String parentId) { | |
24 this.id = id; | |
25 this.name = name; | |
26 this.groupLayer = groupLayer; | |
27 this.parentId = parentId; | |
28 } | |
29 | |
30 | |
31 | |
32 /** | |
33 * @see de.intevation.gnv.artifactdatabase.objects.map.Layer#getID() | |
34 */ | |
35 public String getID() { | |
36 return this.id; | |
37 } | |
38 | |
39 /** | |
40 * @see de.intevation.gnv.artifactdatabase.objects.map.Layer#getName() | |
41 */ | |
42 public String getName() { | |
43 return this.name; | |
44 } | |
45 | |
46 /** | |
47 * @see de.intevation.gnv.artifactdatabase.objects.map.Layer#isGroupLayer() | |
48 */ | |
49 public boolean isGroupLayer() { | |
50 return this.groupLayer; | |
51 } | |
52 | |
53 /** | |
54 * @see de.intevation.gnv.artifactdatabase.objects.map.Layer#parentID() | |
55 */ | |
56 public String parentID() { | |
57 return this.parentId; | |
58 } | |
59 | |
60 @Override | |
61 public String toString() { | |
62 return "ID: "+ this.id + " Name: "+this.name+ | |
63 " IsGroupLayer: "+this.groupLayer+ | |
64 " ParentID: "+this.parentId; | |
65 } | |
66 | |
67 } |