Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/meta/FunctionResolver.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 | 30c85cb33a50 |
children |
comparison
equal
deleted
inserted
replaced
975:a111f0984706 | 976:d830c398c8f4 |
---|---|
9 import javax.xml.xpath.XPathFunction; | 9 import javax.xml.xpath.XPathFunction; |
10 import javax.xml.xpath.XPathFunctionException; | 10 import javax.xml.xpath.XPathFunctionException; |
11 | 11 |
12 import javax.xml.namespace.QName; | 12 import javax.xml.namespace.QName; |
13 | 13 |
14 import org.apache.log4j.Logger; | |
15 | |
14 public class FunctionResolver | 16 public class FunctionResolver |
15 implements XPathFunctionResolver | 17 implements XPathFunctionResolver |
16 { | 18 { |
19 private static Logger log = Logger.getLogger(FunctionResolver.class); | |
20 | |
17 public static final String FUNCTION_NAMESPACE_URI = "dc"; | 21 public static final String FUNCTION_NAMESPACE_URI = "dc"; |
18 | 22 |
19 public static final class Entry { | 23 public static final class Entry { |
20 | 24 |
21 String name; | 25 String name; |
60 } | 64 } |
61 | 65 |
62 return Boolean.FALSE; | 66 return Boolean.FALSE; |
63 } | 67 } |
64 catch (Exception e) { | 68 catch (Exception e) { |
69 log.error(e); | |
65 throw new XPathFunctionException(e); | 70 throw new XPathFunctionException(e); |
66 } | 71 } |
67 } | 72 } |
68 }); | 73 }); |
69 } | 74 } |