Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java @ 9232:5030c46d8cb4
Implemented xpath function that selectes the 'mean year' of a fixation-artifact.
Needs to provide the ArtifactDatabase to the builder implementation.
author | gernotbelger |
---|---|
date | Fri, 06 Jul 2018 13:09:54 +0200 |
parents | 66ce19d2c5f1 |
children | 4a6cc7c6716a |
comparison
equal
deleted
inserted
replaced
9231:082e8e808902 | 9232:5030c46d8cb4 |
---|---|
225 @Override | 225 @Override |
226 public Object evaluate(List args) throws XPathFunctionException { | 226 public Object evaluate(List args) throws XPathFunctionException { |
227 return column(args.get(0)); | 227 return column(args.get(0)); |
228 } | 228 } |
229 }); | 229 }); |
230 | |
231 addFunction(FixAnalysisYearXPathFunction.ID, FixAnalysisYearXPathFunction.ARITY, new FixAnalysisYearXPathFunction(buildHelper.getContext())); | |
230 } | 232 } |
231 | 233 |
232 /** | 234 /** |
233 * Create a new function. | 235 * Create a new function. |
234 * @param name Name of the function. | 236 * @param name Name of the function. |