Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSDBArtifact.java @ 2741:0251393f037c
Refactor usage of now static xpath, other artifacts will follow in later commits.
flys-artifacts/trunk@4475 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 May 2012 10:17:06 +0000 |
parents | 64dc2997b2dd |
children | 2f7fed1eb4bf |
comparison
equal
deleted
inserted
replaced
2740:64dc2997b2dd | 2741:0251393f037c |
---|---|
51 { | 51 { |
52 logger.debug("WMSDBArtifact.setup"); | 52 logger.debug("WMSDBArtifact.setup"); |
53 | 53 |
54 super.setup(identifier, factory, context, callMeta, data); | 54 super.setup(identifier, factory, context, callMeta, data); |
55 | 55 |
56 String ids = XMLUtils.xpathString( | 56 String ids = getDatacageIDValue(data); |
57 data, XPATH_IDS, ArtifactNamespaceContext.INSTANCE); | |
58 | 57 |
59 if (ids != null && ids.length() > 0) { | 58 if (ids != null && ids.length() > 0) { |
60 addData("ids", new DefaultStateData("ids", null, null, ids)); | 59 addData("ids", new DefaultStateData("ids", null, null, ids)); |
61 } | 60 } |
62 else { | 61 else { |