Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/MapAccess.java @ 5736:ab4419948655
Backend: Forgot to handle the unlikely case that there are more than 2 nested brackets in main values.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 16 Apr 2013 18:43:26 +0200 |
parents | 6131b352e5e4 |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.access; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import de.intevation.artifacts.CallContext; import de.intevation.flys.artifacts.FLYSArtifact; public class MapAccess extends RangeAccess { public MapAccess(FLYSArtifact artifact, CallContext context) { super(artifact, context); } public List<String> getHWS() { String param = getString("uesk.hws"); if (param != null) { String[] split = param.split(";"); return new ArrayList<String>(Arrays.asList(split)); } return new ArrayList<String>(); } }