Mercurial > dive4elements > river
changeset 7060:78ded33f5f5b generator-refactoring
Some more accessors and typo fix
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 12:04:14 +0200 |
parents | f9d5020af0af |
children | 4f6b3ba542de |
files | artifacts/src/main/java/org/dive4elements/river/exports/DiagramAttributes.java |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramAttributes.java Fri Sep 20 10:30:03 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramAttributes.java Fri Sep 20 12:04:14 2013 +0200 @@ -126,7 +126,7 @@ arguments.add(argument); } - public String evalute(D4EArtifact artifact, CallContext context) { + public String evaluate(D4EArtifact artifact, CallContext context) { if (key == null || key.isEmpty()) { return def; } @@ -157,6 +157,10 @@ parseSubtitle(config); } + public List<AxisAttributes> getAxesAttributes() { + return axesAttrs; + } + private void parseAxis(Element config) { NodeList axisNodes = config.getElementsByTagName("axis"); @@ -249,5 +253,14 @@ } return title; } + + public int getAxisIndex(String axisName) { + for (int i=0; i < axesAttrs.size(); i++) { + if (axesAttrs.get(i).getName().equals(axisName)) { + return i; + } + } + return -1; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :