comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/MetaWriter.java @ 778:9a828e5a2390

Removed trailing whitespace gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 07:58:51 +0000
parents 5fb1ea68e19c
children b1f5f2a8840f
comparison
equal deleted inserted replaced
777:8009961db1cb 778:9a828e5a2390
36 36
37 public static final String CONTEXT_LAYER_TITLE = "wms.title"; 37 public static final String CONTEXT_LAYER_TITLE = "wms.title";
38 38
39 private MetaWriter() { 39 private MetaWriter() {
40 } 40 }
41 41
42 public static Document writeLayerMeta(CallContext context, 42 public static Document writeLayerMeta(CallContext context,
43 String uuid, 43 String uuid,
44 String path, 44 String path,
45 String paramType, 45 String paramType,
46 String layerType){ 46 String layerType){
49 meta, 49 meta,
50 ArtifactNamespaceContext.NAMESPACE_URI, 50 ArtifactNamespaceContext.NAMESPACE_URI,
51 ArtifactNamespaceContext.NAMESPACE_PREFIX); 51 ArtifactNamespaceContext.NAMESPACE_PREFIX);
52 Element root = creator.create("meta"); 52 Element root = creator.create("meta");
53 meta.appendChild(root); 53 meta.appendChild(root);
54 54
55 writeAbstractMeta(context, meta, root); 55 writeAbstractMeta(context, meta, root);
56 writeLayerMeta(context, meta, root, uuid, paramType,layerType); 56 writeLayerMeta(context, meta, root, uuid, paramType,layerType);
57 boolean success = writeMetaFile(path, meta); 57 boolean success = writeMetaFile(path, meta);
58 58
59 if (success){ 59 if (success){
60 return meta; 60 return meta;
61 }else{ 61 }else{
62 return null; 62 return null;
63 } 63 }
216 layer.appendChild(data); 216 layer.appendChild(data);
217 layer.appendChild(timeToLive); 217 layer.appendChild(timeToLive);
218 218
219 meta.appendChild(layer); 219 meta.appendChild(layer);
220 } 220 }
221 221
222 222
223 public static void writePolygonMeta( 223 public static void writePolygonMeta(
224 CallContext context, 224 CallContext context,
225 Document document, 225 Document document,
226 Element meta, 226 Element meta,
227 String uuid, 227 String uuid,

http://dive4elements.wald.intevation.org