Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/common/AccessHelper.java @ 9069:1ffd38826175
access uinfo.vegetationzones+inundation_duration
author | gernotbelger |
---|---|
date | Tue, 15 May 2018 12:00:26 +0200 |
parents | 2ed3824a3d53 |
children |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AccessHelper.java Mon May 14 18:24:35 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AccessHelper.java Tue May 15 12:00:26 2018 +0200 @@ -37,14 +37,14 @@ } /** [year1, years2,..] if its about years. */ - public int[] getYears(final String yearSelectedValue) { + public int[] getYears(final String yearSelectedValue, final String yearKey) { int[] years = null; // if (years != null) { // return years; // } if (getYearEpoch().equals(yearSelectedValue)) { final TIntArrayList ints = new TIntArrayList(); - final String yearsData = getString("years"); + final String yearsData = getString(yearKey); if (yearsData == null || yearsData.isEmpty()) { log.warn("No years provided"); return null; @@ -69,7 +69,7 @@ return null; } - public int[][] getEpochs(final String epochSelectedValue) { + public int[][] getEpochs(final String epochSelectedValue, final String epochKey) { int epochs[][] = null; // if (epochs != null) { // return epochs; @@ -79,7 +79,7 @@ return null; } - final String data = getString("epochs"); + final String data = getString(epochKey); if (data == null) { log.warn("No 'epochs' parameter specified!");