view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/GaugeAccess.java @ 4655:cd44d28d0fbc

Move the access to artifact data to the Access object Use BedHeightAccess class to receive the data from the artifact. This abstracts the data access from the actual artifact.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 11 Dec 2012 09:44:04 +0100
parents 1fea4243721c
children 756aba0d2a7a
line wrap: on
line source
package de.intevation.flys.artifacts.access;

import java.util.Arrays;

import org.apache.log4j.Logger;

import de.intevation.artifacts.CallContext;
import de.intevation.flys.artifacts.FLYSArtifact;
import de.intevation.flys.utils.FLYSUtils;
import de.intevation.flys.utils.StringUtil;

/** For the moment, light-weight wrapper around FLYSUtils. */
// TODO employ 'Caching' like other Accesses, remove usage of FLYSUtils.
public class GaugeAccess
extends RangeAccess
{
    private static Logger logger = Logger.getLogger(GaugeAccess.class);

    public GaugeAccess(FLYSArtifact artifact, CallContext context) {
        super(artifact, context);
    }


    public String getGaugeName() {
        return FLYSUtils.getGaugename(this.getArtifact());
    }

    // TODO there is also getGauges in FLYSUtils...
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org