[PATCH] Some more accessors and typo fix
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 20 12:04:18 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1379671454 -7200
# Branch generator-refactoring
# Node ID 78ded33f5f5bcc4141a2aa7bc5500dd62f05ec83
# Parent f9d5020af0af1dcd522e878011974d3f9ca97d66
Some more accessors and typo fix
diff -r f9d5020af0af -r 78ded33f5f5b artifacts/src/main/java/org/dive4elements/river/exports/DiagramAttributes.java
--- 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 :
More information about the Dive4elements-commits
mailing list