root / trunk / libraries / libGPE / src / org / gvsig / gpe / GPEContentHandler.java @ 12164
History | View | Annotate | Download (7.98 KB)
1 |
package org.gvsig.gpe; |
---|---|
2 |
|
3 |
import org.gvsig.xmlschema.som.IXSSchemaDocument; |
4 |
import org.gvsig.xmlschema.som.impl.XSSchemaDocumentImpl; |
5 |
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
7 |
*
|
8 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
9 |
*
|
10 |
* This program is free software; you can redistribute it and/or
|
11 |
* modify it under the terms of the GNU General Public License
|
12 |
* as published by the Free Software Foundation; either version 2
|
13 |
* of the License, or (at your option) any later version.
|
14 |
*
|
15 |
* This program is distributed in the hope that it will be useful,
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
* GNU General Public License for more details.
|
19 |
*
|
20 |
* You should have received a copy of the GNU General Public License
|
21 |
* along with this program; if not, write to the Free Software
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
23 |
*
|
24 |
* For more information, contact:
|
25 |
*
|
26 |
* Generalitat Valenciana
|
27 |
* Conselleria d'Infraestructures i Transport
|
28 |
* Av. Blasco Ib??ez, 50
|
29 |
* 46010 VALENCIA
|
30 |
* SPAIN
|
31 |
*
|
32 |
* +34 963862235
|
33 |
* gvsig@gva.es
|
34 |
* www.gvsig.gva.es
|
35 |
*
|
36 |
* or
|
37 |
*
|
38 |
* IVER T.I. S.A
|
39 |
* Salamanca 50
|
40 |
* 46005 Valencia
|
41 |
* Spain
|
42 |
*
|
43 |
* +34 963163400
|
44 |
* dac@iver.es
|
45 |
*/
|
46 |
/* CVS MESSAGES:
|
47 |
*
|
48 |
* $Id: GPEContentHandler.java 12164 2007-06-14 13:50:06Z jorpiell $
|
49 |
* $Log$
|
50 |
* Revision 1.15 2007-06-14 13:50:06 jorpiell
|
51 |
* The schema jar name has been changed
|
52 |
*
|
53 |
* Revision 1.14 2007/06/07 14:52:28 jorpiell
|
54 |
* Add the schema support
|
55 |
*
|
56 |
* Revision 1.13 2007/05/15 12:09:18 jorpiell
|
57 |
* The bbox is linked to the feature
|
58 |
*
|
59 |
* Revision 1.12 2007/05/09 10:25:45 jorpiell
|
60 |
* Add the multiGeometries
|
61 |
*
|
62 |
* Revision 1.11 2007/05/07 12:57:55 jorpiell
|
63 |
* Add some methods to manage the multigeometries
|
64 |
*
|
65 |
* Revision 1.10 2007/04/19 07:23:20 jorpiell
|
66 |
* Add the add methods to teh contenhandler and change the register mode
|
67 |
*
|
68 |
* Revision 1.9 2007/04/18 12:48:16 jorpiell
|
69 |
* The ID attribute is always on the first position
|
70 |
*
|
71 |
* Revision 1.8 2007/04/18 10:46:23 jorpiell
|
72 |
* bbox para from tyhe starLayer method deleted
|
73 |
*
|
74 |
* Revision 1.7 2007/04/18 10:43:24 jorpiell
|
75 |
* Eliminados los Object de la interfaz
|
76 |
*
|
77 |
* Revision 1.6 2007/04/17 07:53:55 jorpiell
|
78 |
* Before to start a new parsing process, the initialize method of the content handlers is throwed
|
79 |
*
|
80 |
* Revision 1.5 2007/04/14 16:06:13 jorpiell
|
81 |
* The writer handler has been updated
|
82 |
*
|
83 |
* Revision 1.4 2007/04/13 13:14:55 jorpiell
|
84 |
* Created the base tests and add some methods to the content handler
|
85 |
*
|
86 |
* Revision 1.3 2007/04/12 17:06:42 jorpiell
|
87 |
* First GML writing tests
|
88 |
*
|
89 |
* Revision 1.2 2007/04/11 13:04:51 jorpiell
|
90 |
* Add the srs param to the addLayer method
|
91 |
*
|
92 |
* Revision 1.1 2007/04/11 08:46:21 csanchez
|
93 |
* Actualizacion protoripo libGPE
|
94 |
*
|
95 |
*
|
96 |
*/
|
97 |
/**
|
98 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
|
99 |
*/
|
100 |
public abstract class GPEContentHandler implements IGPEContentHandler { |
101 |
private IXSSchemaDocument schemaMap = null; |
102 |
|
103 |
/**
|
104 |
* @return the schemaMap
|
105 |
*/
|
106 |
public IXSSchemaDocument getSchemaMap() {
|
107 |
if (schemaMap == null){ |
108 |
schemaMap = new XSSchemaDocumentImpl();
|
109 |
} |
110 |
return schemaMap;
|
111 |
} |
112 |
|
113 |
/**
|
114 |
* @param schemaMap the schemaMap to set
|
115 |
*/
|
116 |
public void setSchemaMap(IXSSchemaDocument schemaMap) { |
117 |
this.schemaMap = schemaMap;
|
118 |
} |
119 |
|
120 |
public void addBboxToFeature(Object bbox, Object feature) { |
121 |
// TODO Auto-generated method stub
|
122 |
|
123 |
} |
124 |
|
125 |
public void addBboxToLayer(Object bbox, Object layer) { |
126 |
// TODO Auto-generated method stub
|
127 |
|
128 |
} |
129 |
|
130 |
public void addDescriptionToLayer(String description, Object layer) { |
131 |
// TODO Auto-generated method stub
|
132 |
|
133 |
} |
134 |
|
135 |
public void addElementToFeature(Object element, Object feature) { |
136 |
// TODO Auto-generated method stub
|
137 |
|
138 |
} |
139 |
|
140 |
public void addFeatureToLayer(Object feature, Object layer) { |
141 |
// TODO Auto-generated method stub
|
142 |
|
143 |
} |
144 |
|
145 |
public void addGeometryToFeature(Object geometry, Object feature) { |
146 |
// TODO Auto-generated method stub
|
147 |
|
148 |
} |
149 |
|
150 |
public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon) { |
151 |
// TODO Auto-generated method stub
|
152 |
|
153 |
} |
154 |
|
155 |
public void addNameToFeature(String name, Object feature) { |
156 |
// TODO Auto-generated method stub
|
157 |
|
158 |
} |
159 |
|
160 |
public void addNameToLayer(String name, Object layer) { |
161 |
// TODO Auto-generated method stub
|
162 |
|
163 |
} |
164 |
|
165 |
public void addParentElementToElement(Object parent, Object element) { |
166 |
// TODO Auto-generated method stub
|
167 |
|
168 |
} |
169 |
|
170 |
public void addParentLayerToLayer(Object parent, Object layer) { |
171 |
// TODO Auto-generated method stub
|
172 |
|
173 |
} |
174 |
|
175 |
public void addSrsToLayer(String srs, Object Layer) { |
176 |
// TODO Auto-generated method stub
|
177 |
|
178 |
} |
179 |
|
180 |
public void endBbox(Object bbox) { |
181 |
// TODO Auto-generated method stub
|
182 |
|
183 |
} |
184 |
|
185 |
public void endElement(Object element) { |
186 |
// TODO Auto-generated method stub
|
187 |
|
188 |
} |
189 |
|
190 |
public void endFeature(Object feature) { |
191 |
// TODO Auto-generated method stub
|
192 |
|
193 |
} |
194 |
|
195 |
public void endInnerPolygon(Object innerPolygon) { |
196 |
// TODO Auto-generated method stub
|
197 |
|
198 |
} |
199 |
|
200 |
public void endLayer(Object layer) { |
201 |
// TODO Auto-generated method stub
|
202 |
|
203 |
} |
204 |
|
205 |
public void endLineString(Object lineString) { |
206 |
// TODO Auto-generated method stub
|
207 |
|
208 |
} |
209 |
|
210 |
public void endLinearRing(Object linearRing) { |
211 |
// TODO Auto-generated method stub
|
212 |
|
213 |
} |
214 |
|
215 |
public void endPoint(Object point) { |
216 |
// TODO Auto-generated method stub
|
217 |
|
218 |
} |
219 |
|
220 |
public void endPolygon(Object Polygon) { |
221 |
// TODO Auto-generated method stub
|
222 |
|
223 |
} |
224 |
|
225 |
public Object startBbox(String id, double[] x, double[] y, double[] z, String srs) { |
226 |
// TODO Auto-generated method stub
|
227 |
return null; |
228 |
} |
229 |
|
230 |
public Object startElement(String name, Object value, String xsElementName, Object parentElement) { |
231 |
// TODO Auto-generated method stub
|
232 |
return null; |
233 |
} |
234 |
|
235 |
public Object startFeature(String id, String name, String xsElementName, Object layer) { |
236 |
// TODO Auto-generated method stub
|
237 |
return null; |
238 |
} |
239 |
|
240 |
public Object startInnerPolygon(String id, double[] x, double[] y, double[] z, String srs) { |
241 |
// TODO Auto-generated method stub
|
242 |
return null; |
243 |
} |
244 |
|
245 |
public Object startLayer(String id, String name, String description, String srs, Object parentLayer, Object bBox, String xsElementName) { |
246 |
// TODO Auto-generated method stub
|
247 |
return null; |
248 |
} |
249 |
|
250 |
public Object startLineString(String id, double[] x, double[] y, double[] z, String srs) { |
251 |
// TODO Auto-generated method stub
|
252 |
return null; |
253 |
} |
254 |
|
255 |
public Object startLinearRing(String id, double[] x, double[] y, double[] z, String srs) { |
256 |
// TODO Auto-generated method stub
|
257 |
return null; |
258 |
} |
259 |
|
260 |
public Object startPoint(String id, double x, double y, double z, String srs) { |
261 |
// TODO Auto-generated method stub
|
262 |
return null; |
263 |
} |
264 |
|
265 |
public Object startPolygon(String id, double[] x, double[] y, double[] z, String srs) { |
266 |
// TODO Auto-generated method stub
|
267 |
return null; |
268 |
} |
269 |
|
270 |
public void addGeometryToMultiGeometry(Object geometry, Object multiGeometry) { |
271 |
// TODO Auto-generated method stub
|
272 |
|
273 |
} |
274 |
|
275 |
public void addLineStringToMultiLineString(Object lineString, Object multiLineString) { |
276 |
// TODO Auto-generated method stub
|
277 |
|
278 |
} |
279 |
|
280 |
public void addPointToMultiPoint(Object point, Object multiPoint) { |
281 |
// TODO Auto-generated method stub
|
282 |
|
283 |
} |
284 |
|
285 |
public void addPolygonToMultiPolygon(Object polygon, Object multiPolygon) { |
286 |
// TODO Auto-generated method stub
|
287 |
|
288 |
} |
289 |
|
290 |
public void endMultiGeometry(Object multiGeometry) { |
291 |
// TODO Auto-generated method stub
|
292 |
|
293 |
} |
294 |
|
295 |
public void endMultiLineString(Object multiLineString) { |
296 |
// TODO Auto-generated method stub
|
297 |
|
298 |
} |
299 |
|
300 |
public void endMultiPoint(Object multiPoint) { |
301 |
// TODO Auto-generated method stub
|
302 |
|
303 |
} |
304 |
|
305 |
public void endMultiPolygon(Object multiPolygon) { |
306 |
// TODO Auto-generated method stub
|
307 |
|
308 |
} |
309 |
|
310 |
public Object startMultiGeometry(String id, String srs) { |
311 |
// TODO Auto-generated method stub
|
312 |
return null; |
313 |
} |
314 |
|
315 |
public Object startMultiLineString(String id, String srs) { |
316 |
// TODO Auto-generated method stub
|
317 |
return null; |
318 |
} |
319 |
|
320 |
public Object startMultiPoint(String id, String srs) { |
321 |
// TODO Auto-generated method stub
|
322 |
return null; |
323 |
} |
324 |
|
325 |
public Object startMultiPolygon(String id, String srs) { |
326 |
// TODO Auto-generated method stub
|
327 |
return null; |
328 |
} |
329 |
|
330 |
|
331 |
|
332 |
|
333 |
|
334 |
|
335 |
|
336 |
|
337 |
} |