Mercurial > dive4elements > gnv-client
view gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/map/DefaultLayer.java @ 959:0846c9c4abdd
Add more Javadocs
gnv/trunk@1103 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 18 May 2010 10:00:27 +0000 |
parents | 89ade245ca7a |
children | 28a0628b11b0 |
line wrap: on
line source
package de.intevation.gnv.artifactdatabase.objects.map; /** * The default implementation of <code>Layer</code>. * * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> */ public class DefaultLayer implements Layer { /** * The id of this layer. */ private String id = null; /** * The name of this layer. */ private String name = null; /** * Flag which defines if this layer is an grouplayer. */ private boolean groupLayer = false; /** * The id of the parent layer or null if this layer is an rootlayer. */ private String parentId = null; /** * Constructor * * @param id the id of this layer * @param name the name of this layer * @param groupLayer flag which defines if this layer is an grouplayer * @param parentId the id of the parent layer or null if this layer is an * rootlayer */ public DefaultLayer(String id,String name, boolean groupLayer,String parentId) { this.id = id; this.name = name; this.groupLayer = groupLayer; this.parentId = parentId; } public String getID() { return this.id; } public String getName() { return this.name; } public boolean isGroupLayer() { return this.groupLayer; } public String parentID() { return this.parentId; } @Override public String toString() { return "ID: "+ this.id + " Name: "+this.name+ " IsGroupLayer: "+this.groupLayer+ " ParentID: "+this.parentId; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :