Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 127:21d791e21aca
Introduced a state to select the calculation mode.
flys-artifacts/trunk@1467 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 14 Mar 2011 15:47:10 +0000 |
parents | b7a9557957d1 |
children | 206312c2aa76 |
comparison
equal
deleted
inserted
replaced
126:b18aebd1342f | 127:21d791e21aca |
---|---|
91 | 91 |
92 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); | 92 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); |
93 ProtocolUtils.appendState(creator, root, current); | 93 ProtocolUtils.appendState(creator, root, current); |
94 ProtocolUtils.appendReachableStates(creator, root, reachable); | 94 ProtocolUtils.appendReachableStates(creator, root, reachable); |
95 | 95 |
96 current.describe(description, root, context, identifier()); | 96 Element ui = ProtocolUtils.createArtNode( |
97 creator, "ui", null, null); | |
97 | 98 |
98 Node ui = (Node) XMLUtils.xpath( | 99 Element staticUI = ProtocolUtils.createArtNode( |
100 creator, "static", null, null); | |
101 | |
102 Element dynamic = current.describe( | |
99 description, | 103 description, |
100 XPATH_STATIC_UI, | 104 root, |
101 XPathConstants.NODE, | 105 context, |
102 ArtifactNamespaceContext.INSTANCE); | 106 identifier()); |
107 | |
108 ui.appendChild(dynamic); | |
109 root.appendChild(ui); | |
103 | 110 |
104 appendStaticUI(creator, ui); | 111 appendStaticUI(creator, ui); |
105 | 112 |
106 return description; | 113 return description; |
107 } | 114 } |