view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/LayerInfo.java @ 1135:c8c753931514

Added a fallback mechanism to style mapserver layers as long as the theme mechanism is not implemented for maps (as it is for charts). flys-artifacts/trunk@2656 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 06 Sep 2011 17:41:07 +0000
parents bcf70a452646
children 1636686070f7
line wrap: on
line source
package de.intevation.flys.artifacts.model;


public class LayerInfo {

    protected String name;
    protected String type;
    protected String directory;
    protected String data;
    protected String group;
    protected String groupTitle;
    protected String title;


    public LayerInfo(
        String name,
        String type,
        String directory,
        String data,
        String title)
    {
        this(name, type, directory, data, title, null, null);
    }


    public LayerInfo(
        String name,
        String type,
        String directory,
        String data,
        String title,
        String group,
        String groupTitle
    ) {
        this.name       = name;
        this.type       = type;
        this.directory  = directory;
        this.data       = data;
        this.group      = group;
        this.groupTitle = groupTitle;
        this.title      = title;
    }


    public String getName() {
        return name;
    }


    public String getType() {
        return type;
    }


    public String getDirectory() {
        return directory;
    }


    public String getData() {
        return data;
    }


    public String getGroup() {
        return group;
    }


    public String getGroupTitle() {
        return groupTitle;
    }


    public String getTitle() {
        return title;
    }


    public String getStyle() {
        // TODO IMPLEMENT ME
        // The style of a layer depends on the theme that might be configured
        // by the user (stored in the attribute of the CollectionItem).
        return null;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org