view flys-client/src/main/java/de/intevation/flys/client/shared/model/DataCageNode.java @ 5503:b660090b417d

Create a new sq relation project on measurement station record click. * Added new methods to artifact service. * Added new client-side artifact. * Updated UI to have a new row in 'Messstellen-Info'.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 28 Mar 2013 15:21:15 +0100
parents 63b258bf365c
children
line wrap: on
line source
package de.intevation.flys.client.shared.model;

import java.util.List;
import java.util.ArrayList;

import java.io.Serializable;

public class DataCageNode implements Serializable
{
    protected String             name;
    protected String             description;
    protected List<DataCageNode> children;
    protected AttrList           attrs;

    public DataCageNode() {
    }

    public DataCageNode(String name) {
        this(name, null);
    }

    public DataCageNode(String name, AttrList attrs) {
        this(name, name, attrs);
    }

    public DataCageNode(String name, String description, AttrList attrs) {
        this.name        = name;
        this.description = description;
        this.attrs       = attrs;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void addChild(DataCageNode child) {
        if (children == null) {
            children = new ArrayList<DataCageNode>();
        }
        children.add(child);
    }

    public List<DataCageNode> getChildren() {
        return children;
    }

    public AttrList getAttributes() {
        return attrs;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org