Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java @ 6080:4bd8bbbcdf68
Datacage: Introduced dc:dump-variables() and modified dc:message to use XPath expansion.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 23 May 2013 18:14:31 +0200 |
parents | af13ceeba52a |
children | 57fb50f8c9fc |
comparison
equal
deleted
inserted
replaced
6079:a0dbc60f78ee | 6080:4bd8bbbcdf68 |
---|---|
113 | 113 |
114 addFunction("date-format", 2, new XPathFunction() { | 114 addFunction("date-format", 2, new XPathFunction() { |
115 @Override | 115 @Override |
116 public Object evaluate(List args) throws XPathFunctionException { | 116 public Object evaluate(List args) throws XPathFunctionException { |
117 return dateFormat(args); | 117 return dateFormat(args); |
118 } | |
119 }); | |
120 | |
121 addFunction("dump-variables", 0, new XPathFunction() { | |
122 @Override | |
123 public Object evaluate(List args) throws XPathFunctionException { | |
124 return FunctionResolver.this.buildHelper.frames.dump(); | |
118 } | 125 } |
119 }); | 126 }); |
120 } | 127 } |
121 | 128 |
122 /** | 129 /** |