Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeParser.java @ 2779:e57816cf41d5
Replaced another silly "@attribute" XPATH with direct getAttribute() call.
flys-artifacts/trunk@4518 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 25 May 2012 13:33:59 +0000 |
parents | 3e703d134bbe |
children | ef0db530c341 |
comparison
equal
deleted
inserted
replaced
2778:26f2e7e500dd | 2779:e57816cf41d5 |
---|---|
98 return attribute.getFacets(); | 98 return attribute.getFacets(); |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 protected void parseOutput(Node out) { | 102 protected void parseOutput(Node out) { |
103 String name = XMLUtils.xpathString( | 103 String name = ((Element)out).getAttribute("name"); |
104 out, "@name", ArtifactNamespaceContext.INSTANCE); | |
105 | 104 |
106 if (name == null || name.length() == 0) { | 105 if (name.length() == 0) { |
107 logger.warn("No Output name specified. Cancel parsing!"); | 106 logger.warn("No Output name specified. Cancel parsing!"); |
108 return; | 107 return; |
109 } | 108 } |
110 | 109 |
111 Output o = attribute.getOutput(name); | 110 Output o = attribute.getOutput(name); |