comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 222:3e82b4f1c455

Removed some Compilation-Errors according to API-Changes in the ArtifactDatabase. Added the possibility to switch to an alternative Transition. gnv-artifacts/trunk@284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 05 Nov 2009 14:45:54 +0000
parents ee2d4134d0b3
children d6c75171f1e9
comparison
equal deleted inserted replaced
221:21152e1bf325 222:3e82b4f1c455
237 } 237 }
238 238
239 } 239 }
240 } 240 }
241 241
242 protected Document createDescibeOutput(CallMeta callMeta, String uuid) { 242 protected Document createDescibeOutput(CallMeta callMeta, String uuid, boolean incudeUI) {
243 log.debug("GNVArtifactBase.createDescibeOutput"); 243 log.debug("GNVArtifactBase.createDescibeOutput");
244 Document document = XMLUtils.newDocument(); 244 Document document = XMLUtils.newDocument();
245 Element rootNode = this.createRootNode(document); 245 Element rootNode = this.createRootNode(document);
246 this.createHeader(rootNode, document, "describe"); 246 this.createHeader(rootNode, document, "describe");
247 this.createOutputs(rootNode, document); 247 this.createOutputs(rootNode, document);
248 this.createCurrentState(rootNode, document); 248 this.createCurrentState(rootNode, document);
249 this.createReachableStates(rootNode, document); 249 this.createReachableStates(rootNode, document);
250 this.createModel(rootNode, document); 250 this.createModel(rootNode, document);
251 this.createUserInterface(rootNode, document, callMeta, uuid); 251 if (incudeUI){
252 this.createUserInterface(rootNode, document, callMeta, uuid);
253 }
252 return document; 254 return document;
255 }
256
257 protected boolean getIncludeUIFromDocument(Document document){
258 String value = Config.getStringXPath(document, "action/include-ui");
259 boolean includeUI = false;
260 if (value != null){
261 includeUI = Boolean.parseBoolean(value);
262 }
263 return includeUI;
253 } 264 }
254 265
255 protected Element createRootNode(Document document) { 266 protected Element createRootNode(Document document) {
256 Element rootNode = xmlUtilities.createArtifactElement(document, 267 Element rootNode = xmlUtilities.createArtifactElement(document,
257 "result"); 268 "result");

http://dive4elements.wald.intevation.org