comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.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
73 logger.debug("WQKmsInterpolArtifact.setup"); 73 logger.debug("WQKmsInterpolArtifact.setup");
74 74
75 state = new StaticState(STATIC_STATE_NAME); 75 state = new StaticState(STATIC_STATE_NAME);
76 76
77 List<Facet> fs = new ArrayList<Facet>(); 77 List<Facet> fs = new ArrayList<Facet>();
78 String code = XMLUtils.xpathString( 78 String code = getDatacageIDValue(data);
79 data, XPATH_IDS, ArtifactNamespaceContext.INSTANCE);
80 79
81 // TODO Go for JSON, one day. 80 // TODO Go for JSON, one day.
82 //ex.: flood_protection-wstv-114-12 81 //ex.: flood_protection-wstv-114-12
83 if (code != null) { 82 if (code != null) {
84 String [] parts = code.split("-"); 83 String [] parts = code.split("-");

http://dive4elements.wald.intevation.org