Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java @ 43:ef7ca23c4233
Added comments, done some code styling and removed typos.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 15 Apr 2011 15:44:54 +0200 |
parents | 472aa36d0e01 |
children | 7eba97e8201b |
comparison
equal
deleted
inserted
replaced
42:395307e8b7ee | 43:ef7ca23c4233 |
---|---|
10 import org.w3c.dom.Element; | 10 import org.w3c.dom.Element; |
11 | 11 |
12 import de.intevation.mxd.utils.MapToXMLUtils; | 12 import de.intevation.mxd.utils.MapToXMLUtils; |
13 | 13 |
14 /** | 14 /** |
15 * Reads Layer information.. | 15 * Reads Layer information. |
16 * | 16 * |
17 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 17 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
18 */ | 18 */ |
19 public class GdbRasterCatalogLayerReader implements ILayerReader{ | 19 public class GdbRasterCatalogLayerReader |
20 implements ILayerReader { | |
20 | 21 |
21 /** | 22 /** |
22 * The logger. | 23 * The logger. |
23 */ | 24 */ |
24 private static final Logger logger = | 25 private static final Logger logger = |
31 private MapToXMLUtils util; | 32 private MapToXMLUtils util; |
32 | 33 |
33 | 34 |
34 public GdbRasterCatalogLayerReader(ILayer layer) | 35 public GdbRasterCatalogLayerReader(ILayer layer) |
35 throws Exception { | 36 throws Exception { |
36 if(layer instanceof GdbRasterCatalogLayer) | 37 if(layer instanceof GdbRasterCatalogLayer) { |
37 this.layer = (GdbRasterCatalogLayer)layer; | 38 this.layer = (GdbRasterCatalogLayer)layer; |
38 else | 39 } |
40 else { | |
39 throw new Exception("Not an instance of GdbRastaCatalogLayer: " + | 41 throw new Exception("Not an instance of GdbRastaCatalogLayer: " + |
40 layer.getClass().toString()); | 42 layer.getClass().toString()); |
43 } | |
41 } | 44 } |
42 | 45 |
43 /** | 46 /** |
44 * Setter for XML document helper. | 47 * Setter for XML document helper. |
45 * | 48 * |
46 * @param util The helper for storing map information. | 49 * @param util The helper for storing map information. |
47 */ | 50 */ |
48 public void setUtil(MapToXMLUtils util){ | 51 public void setUtil(MapToXMLUtils util) { |
49 this.util = util; | 52 this.util = util; |
50 } | 53 } |
51 | 54 |
52 /** | 55 /** |
53 * Reads the Layer content. | 56 * Reads the Layer content. |