Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/FeatureClassReader.java @ 30:c34c450edb06
Introduced class reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 08 Apr 2011 17:58:37 +0200 |
parents | |
children | 40c0b4e5f91a |
comparison
equal
deleted
inserted
replaced
29:77cfa8092611 | 30:c34c450edb06 |
---|---|
1 //package de.intevation.mxd.reader; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.apache.log4j.Logger; | |
6 | |
7 import com.esri.arcgis.geodatabase.IClass; | |
8 import com.esri.arcgis.geodatabase.FeatureClass; | |
9 | |
10 import org.w3c.dom.Attr; | |
11 import org.w3c.dom.Document; | |
12 import org.w3c.dom.Element; | |
13 import org.w3c.dom.Node; | |
14 | |
15 /** | |
16 * Reads FeatureClass information. | |
17 * | |
18 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | |
19 */ | |
20 public class FeatureClassReader implements IClassReader{ | |
21 | |
22 private static final Logger logger = Logger.getLogger(FeatureClassReader.class); | |
23 | |
24 private IClass fclass; | |
25 | |
26 private Node parent; | |
27 //Constructor | |
28 public FeatureClassReader(IClass cl) throws Exception{ | |
29 if(cl instanceof FeatureClass) | |
30 this.fclass = cl; | |
31 else | |
32 throw new Exception("Not a FeatureClass object!"); | |
33 } | |
34 | |
35 //Methods | |
36 /** | |
37 * Reads the Layer content. | |
38 */ | |
39 public boolean read() throws IOException{ | |
40 logger.debug("read()"); | |
41 return false; | |
42 } | |
43 | |
44 public void getClassDoc() throws IOException{ | |
45 logger.debug("getLayer() -> not implemented jet."); | |
46 return; | |
47 } | |
48 | |
49 public void setXMLNode(Node node) { | |
50 parent = node; | |
51 } | |
52 } | |
53 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |