view flys-client/src/main/java/de/intevation/flys/client/shared/model/AttrList.java @ 3847:f3b821735e39

Calculate the info url via i18n Don't fetch the info url from the artifact service and use i18n to calculate the url by using the official gauge and river number. flys-client/trunk@5582 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Mon, 24 Sep 2012 08:39:22 +0000
parents ffb98b228b3c
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 AttrList implements Serializable
{
    protected List<String> keyValues;

    public AttrList() {
        this(5);
    }

    public AttrList(int size) {
        keyValues = new ArrayList<String>(size*2);
    }

    public int size() {
        return keyValues != null ? keyValues.size()/2 : null;
    }

    public String getKey(int index) {
        return keyValues.get(index*2);
    }

    public String getValue(int index) {
        return keyValues.get(index*2 + 1);
    }

    public void add(String key, String value) {
        keyValues.add(key);
        keyValues.add(value);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org