view gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/requestobjects/DefaultLayer.java @ 815:22c18083225e

Removed compiler warnings while JavaDoc generation. gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 12 Apr 2010 06:59:33 +0000
parents feae2f9d6c6f
children 32d01e1ce2df
line wrap: on
line source
package de.intevation.gnv.artifacts.services.requestobjects;

/**
 * The  default implementation of <code>Layer</code>.
 *
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 *
 */
public class DefaultLayer implements Layer {


    private String id = null;

    private String name = null;

    private boolean groupLayer = false;

    private String parentId = null;

    /**
     * Constructor
     * @param id The id of this layer.
     * @param name The name of this layer.
     * @param groupLayer A boolean property to define this layer as group layer.
     * @param parentId The id of the parent layer.
     */
    public DefaultLayer(String id,String name,
                        boolean groupLayer,String parentId) {
        this.id = id;
        this.name = name;
        this.groupLayer = groupLayer;
        this.parentId = parentId;
    }


    /**
     * @return the id.
     */
    public String getID() {
        return this.id;
    }

    /**
     * @return the name.
     */
    public String getName() {
        return this.name;
    }

    /**
     * @return true, if this is a group layer.
     */
    public boolean isGroupLayer() {
        return this.groupLayer;
    }

    /**
     * @return the parent id.
     */
    public String parentID() {
        return this.parentId;
    }

    /**
     * This methods returns this layer as string.
     *
     * @return this layer as string.
     */
    @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 :

http://dive4elements.wald.intevation.org