comparison src/java/de/intevation/mxd/reader/FeatureLayerReader.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 395307e8b7ee
children 4e0464c620f0
comparison
equal deleted inserted replaced
42:395307e8b7ee 43:ef7ca23c4233
12 import org.w3c.dom.Element; 12 import org.w3c.dom.Element;
13 13
14 import de.intevation.mxd.utils.MapToXMLUtils; 14 import de.intevation.mxd.utils.MapToXMLUtils;
15 15
16 /** 16 /**
17 * Reads Layer information.. 17 * Reads Layer information.
18 * 18 *
19 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 19 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
20 */ 20 */
21 public class FeatureLayerReader implements ILayerReader{ 21 public class FeatureLayerReader
22 implements ILayerReader {
22 23
23 /** 24 /**
24 * The logger. 25 * The logger.
25 */ 26 */
26 private static final Logger logger = 27 private static final Logger logger =
33 private MapToXMLUtils util; 34 private MapToXMLUtils util;
34 35
35 36
36 public FeatureLayerReader(ILayer layer) 37 public FeatureLayerReader(ILayer layer)
37 throws Exception { 38 throws Exception {
38 if(layer instanceof FeatureLayer) 39 if(layer instanceof FeatureLayer) {
39 this.layer = (FeatureLayer)layer; 40 this.layer = (FeatureLayer)layer;
40 else 41 }
42 else {
41 throw new Exception("Not an instance of FeatureLayer: " + 43 throw new Exception("Not an instance of FeatureLayer: " +
42 layer.getClass().toString()); 44 layer.getClass().toString());
45 }
43 } 46 }
44 47
45 /** 48 /**
46 * Setter for XML document helper. 49 * Setter for XML document helper.
47 * 50 *
48 * @param util The helper for storing map information. 51 * @param util The helper for storing map information.
49 */ 52 */
50 public void setUtil(MapToXMLUtils util){ 53 public void setUtil(MapToXMLUtils util) {
51 this.util = util; 54 this.util = util;
52 } 55 }
53 56
54 /** 57 /**
55 * Reads the Layer content. 58 * Reads the Layer content.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)