comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 303:2d393c8bd38c

Write the name of an artifact into the DESCRIBE document. flys-artifacts/trunk@1672 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 12 Apr 2011 13:42:14 +0000
parents f526f02e8ce2
children 35301cc3b875
comparison
equal deleted inserted replaced
302:f526f02e8ce2 303:2d393c8bd38c
90 90
91 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); 91 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash());
92 ProtocolUtils.appendState(creator, root, current); 92 ProtocolUtils.appendState(creator, root, current);
93 ProtocolUtils.appendReachableStates(creator, root, reachable); 93 ProtocolUtils.appendReachableStates(creator, root, reachable);
94 94
95 Element name = ProtocolUtils.createArtNode(
96 creator, "name",
97 new String[] { "value" },
98 new String[] { getName() });
99
95 Element ui = ProtocolUtils.createArtNode( 100 Element ui = ProtocolUtils.createArtNode(
96 creator, "ui", null, null); 101 creator, "ui", null, null);
97 102
98 Element staticUI = ProtocolUtils.createArtNode( 103 Element staticUI = ProtocolUtils.createArtNode(
99 creator, "static", null, null); 104 creator, "static", null, null);
114 ui.appendChild(dynamic); 119 ui.appendChild(dynamic);
115 } 120 }
116 121
117 ui.appendChild(staticUI); 122 ui.appendChild(staticUI);
118 123
124 root.appendChild(name);
119 root.appendChild(ui); 125 root.appendChild(ui);
120 root.appendChild(outs); 126 root.appendChild(outs);
121 127
122 return description; 128 return description;
123 } 129 }

http://dive4elements.wald.intevation.org