Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/ArtifactXMLUtilities.java @ 76:2473440671ce
Integrate UI-Representation for Describe into the FISArtifact.
gnv-artifacts/trunk@87 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 15 Sep 2009 10:11:08 +0000 |
parents | 9345835e2bc1 |
children | e33c61735a4e |
comparison
equal
deleted
inserted
replaced
75:9345835e2bc1 | 76:2473440671ce |
---|---|
37 /** | 37 /** |
38 * the logger, used to log exceptions and additonaly information | 38 * the logger, used to log exceptions and additonaly information |
39 */ | 39 */ |
40 private static Logger log = Logger.getLogger(TimeSeriesOutputTransition.class); | 40 private static Logger log = Logger.getLogger(TimeSeriesOutputTransition.class); |
41 | 41 |
42 public static final String XFORM_URL = "http://www.w3.org/2002/xforms"; | |
43 public static final String XFORM_PREFIX = "xform"; | |
44 | |
42 /** | 45 /** |
43 * Constructor | 46 * Constructor |
44 */ | 47 */ |
45 public ArtifactXMLUtilities() { | 48 public ArtifactXMLUtilities() { |
46 } | 49 } |
94 | 97 |
95 StringBufferInputStream inputStream = new StringBufferInputStream(this.writeDocument2String(document)); | 98 StringBufferInputStream inputStream = new StringBufferInputStream(this.writeDocument2String(document)); |
96 return this.readDocument(inputStream); | 99 return this.readDocument(inputStream); |
97 } | 100 } |
98 | 101 |
99 | 102 public Element createXFormElement(Document document, String name) { |
103 Element node = document.createElementNS(XFORM_URL, name); | |
104 node.setPrefix(XFORM_PREFIX); | |
105 return node; | |
106 } | |
100 | 107 |
101 | 108 |
102 } | 109 } |