Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/meta/Builder.java @ 976:d830c398c8f4
Improved XPath handling for absent flags.
flys-artifacts/trunk@2402 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 25 Jul 2011 14:12:14 +0000 |
parents | c30ada285d45 |
children | 598a5e911118 |
comparison
equal
deleted
inserted
replaced
975:a111f0984706 | 976:d830c398c8f4 |
---|---|
280 } | 280 } |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 protected Boolean evaluateXPath(String expr) { | 284 protected Boolean evaluateXPath(String expr) { |
285 | |
286 if (log.isDebugEnabled()) { | |
287 log.debug("evaluate: '" + expr + "'"); | |
288 } | |
289 | |
285 try { | 290 try { |
286 XPath xpath = XPATH_FACTORY.newXPath(); | 291 XPath xpath = XPATH_FACTORY.newXPath(); |
287 xpath.setXPathVariableResolver(frames); | 292 xpath.setXPathVariableResolver(frames); |
288 xpath.setXPathFunctionResolver(FunctionResolver.FUNCTIONS); | 293 xpath.setXPathFunctionResolver(FunctionResolver.FUNCTIONS); |
289 Object result = xpath.evaluate( | 294 Object result = xpath.evaluate( |