root / org.gvsig.gpe / library / trunk / org.gvsig.gpe / org.gvsig.gpe.lib / org.gvsig.gpe.lib.impl / src / main / java / org / gvsig / gpe / lib / impl / parser / GPEContentHandlerAdapter.java @ 264
History | View | Annotate | Download (7.55 KB)
1 |
package org.gvsig.gpe.lib.impl.parser; |
---|---|
2 |
|
3 |
import org.gvsig.gpe.lib.api.parser.IAttributesIterator; |
4 |
import org.gvsig.gpe.lib.api.parser.ICoordinateIterator; |
5 |
import org.gvsig.gpe.lib.api.parser.IGPEContentHandler; |
6 |
import org.gvsig.gpe.lib.api.parser.IGPEContentHandlerInmGeom; |
7 |
|
8 |
public class GPEContentHandlerAdapter implements IGPEContentHandlerInmGeom { |
9 |
|
10 |
private IGPEContentHandler contentHandler;
|
11 |
|
12 |
public GPEContentHandlerAdapter(IGPEContentHandler contentHandler) {
|
13 |
this.contentHandler = contentHandler;
|
14 |
} |
15 |
|
16 |
public Object startCurve(String id, ICoordinateIterator coords, String srs) { |
17 |
return contentHandler.startCurve(id, coords, srs);
|
18 |
} |
19 |
|
20 |
public Object startCurve(String id, String srs) { |
21 |
return contentHandler.startCurve(id, srs);
|
22 |
} |
23 |
|
24 |
public Object startBbox(String id, ICoordinateIterator coords, String srs) { |
25 |
return contentHandler.startBbox(id, coords, srs);
|
26 |
} |
27 |
|
28 |
public void endCurve(Object Curve) { |
29 |
contentHandler.endCurve(Curve); |
30 |
} |
31 |
|
32 |
public void addSegmentToCurve(Object segment, Object curve) { |
33 |
contentHandler.addSegmentToCurve(segment, curve); |
34 |
} |
35 |
|
36 |
public void endBbox(Object bbox) { |
37 |
contentHandler.endBbox(bbox); |
38 |
} |
39 |
|
40 |
public Object startMultiCurve(String id, String srs) { |
41 |
return contentHandler.startMultiCurve(id, srs);
|
42 |
} |
43 |
|
44 |
public Object startLayer(String id, String namespace, String name, |
45 |
String description, String srs, IAttributesIterator attributes, |
46 |
Object parentLayer, Object bBox) { |
47 |
return contentHandler.startLayer(id, namespace, name, description, srs,
|
48 |
attributes, parentLayer, bBox); |
49 |
} |
50 |
|
51 |
public void endMultiCurve(Object multiCurve) { |
52 |
contentHandler.endMultiCurve(multiCurve); |
53 |
} |
54 |
|
55 |
public void addCurveToMultiCurve(Object curve, Object multiCurve) { |
56 |
contentHandler.addCurveToMultiCurve(curve, multiCurve); |
57 |
} |
58 |
|
59 |
public void endLayer(Object layer) { |
60 |
contentHandler.endLayer(layer); |
61 |
} |
62 |
|
63 |
public void addNameToLayer(String name, Object layer) { |
64 |
contentHandler.addNameToLayer(name, layer); |
65 |
} |
66 |
|
67 |
public void addDescriptionToLayer(String description, Object layer) { |
68 |
contentHandler.addDescriptionToLayer(description, layer); |
69 |
} |
70 |
|
71 |
public void addSrsToLayer(String srs, Object Layer) { |
72 |
contentHandler.addSrsToLayer(srs, Layer); |
73 |
} |
74 |
|
75 |
public void addParentLayerToLayer(Object parent, Object layer) { |
76 |
contentHandler.addParentLayerToLayer(parent, layer); |
77 |
} |
78 |
|
79 |
public void addBboxToLayer(Object bbox, Object layer) { |
80 |
contentHandler.addBboxToLayer(bbox, layer); |
81 |
} |
82 |
|
83 |
public Object startFeature(String id, String namespace, String name, |
84 |
IAttributesIterator attributes, Object layer) {
|
85 |
return contentHandler.startFeature(id, namespace, name, attributes,
|
86 |
layer); |
87 |
} |
88 |
|
89 |
public void endFeature(Object feature) { |
90 |
contentHandler.endFeature(feature); |
91 |
} |
92 |
|
93 |
public void addNameToFeature(String name, Object feature) { |
94 |
contentHandler.addNameToFeature(name, feature); |
95 |
} |
96 |
|
97 |
public void addFeatureToLayer(Object feature, Object layer) { |
98 |
contentHandler.addFeatureToLayer(feature, layer); |
99 |
} |
100 |
|
101 |
public Object startElement(String namespace, String name, Object value, |
102 |
IAttributesIterator attributes, Object parentElement) {
|
103 |
return contentHandler.startElement(namespace, name, value, attributes,
|
104 |
parentElement); |
105 |
} |
106 |
|
107 |
public void endElement(Object element) { |
108 |
contentHandler.endElement(element); |
109 |
} |
110 |
|
111 |
public void addParentElementToElement(Object parent, Object element) { |
112 |
contentHandler.addParentElementToElement(parent, element); |
113 |
} |
114 |
|
115 |
public void addElementToFeature(Object element, Object feature) { |
116 |
contentHandler.addElementToFeature(element, feature); |
117 |
} |
118 |
|
119 |
public Object startPoint(String id, ICoordinateIterator coords, String srs) { |
120 |
return contentHandler.startPoint(id, coords, srs);
|
121 |
} |
122 |
|
123 |
public void endPoint(Object point) { |
124 |
contentHandler.endPoint(point); |
125 |
} |
126 |
|
127 |
public Object startLineString(String id, ICoordinateIterator coords, |
128 |
String srs) {
|
129 |
return contentHandler.startLineString(id, coords, srs);
|
130 |
} |
131 |
|
132 |
public void endLineString(Object lineString) { |
133 |
contentHandler.endLineString(lineString); |
134 |
} |
135 |
|
136 |
public Object startLinearRing(String id, ICoordinateIterator coords, |
137 |
String srs) {
|
138 |
return contentHandler.startLinearRing(id, coords, srs);
|
139 |
} |
140 |
|
141 |
public void endLinearRing(Object linearRing) { |
142 |
contentHandler.endLinearRing(linearRing); |
143 |
} |
144 |
|
145 |
public Object startPolygon(String id, ICoordinateIterator coords, String srs) { |
146 |
return contentHandler.startPolygon(id, coords, srs);
|
147 |
} |
148 |
|
149 |
public Object endPolygon(Object polygon) { |
150 |
contentHandler.endPolygon(polygon); |
151 |
return polygon;
|
152 |
} |
153 |
|
154 |
public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon) { |
155 |
contentHandler.addInnerPolygonToPolygon(innerPolygon, Polygon);
|
156 |
} |
157 |
|
158 |
public Object startInnerPolygon(String id, ICoordinateIterator coords, |
159 |
String srs) {
|
160 |
return contentHandler.startInnerPolygon(id, coords, srs);
|
161 |
} |
162 |
|
163 |
public void endInnerPolygon(Object innerPolygon) { |
164 |
contentHandler.endInnerPolygon(innerPolygon); |
165 |
} |
166 |
|
167 |
public Object startMultiPoint(String id, String srs) { |
168 |
return contentHandler.startMultiPoint(id, srs);
|
169 |
} |
170 |
|
171 |
public Object endMultiPoint(Object multiPoint) { |
172 |
contentHandler.endMultiPoint(multiPoint); |
173 |
return multiPoint;
|
174 |
} |
175 |
|
176 |
public void addPointToMultiPoint(Object point, Object multiPoint) { |
177 |
contentHandler.addPointToMultiPoint(point, multiPoint); |
178 |
} |
179 |
|
180 |
public Object startMultiLineString(String id, String srs) { |
181 |
return contentHandler.startMultiLineString(id, srs);
|
182 |
} |
183 |
|
184 |
public Object endMultiLineString(Object multiLineString) { |
185 |
contentHandler.endMultiLineString(multiLineString); |
186 |
return multiLineString;
|
187 |
} |
188 |
|
189 |
public void addLineStringToMultiLineString(Object lineString, |
190 |
Object multiLineString) {
|
191 |
contentHandler.addLineStringToMultiLineString(lineString, |
192 |
multiLineString); |
193 |
} |
194 |
|
195 |
public Object startMultiPolygon(String id, String srs) { |
196 |
return contentHandler.startMultiPolygon(id, srs);
|
197 |
} |
198 |
|
199 |
public Object endMultiPolygon(Object multiPolygon) { |
200 |
contentHandler.endMultiPolygon(multiPolygon); |
201 |
return multiPolygon;
|
202 |
} |
203 |
|
204 |
public void addPolygonToMultiPolygon(Object polygon, Object multiPolygon) { |
205 |
contentHandler.addPolygonToMultiPolygon(polygon, multiPolygon); |
206 |
} |
207 |
|
208 |
public Object startMultiGeometry(String id, String srs) { |
209 |
return contentHandler.startMultiGeometry(id, srs);
|
210 |
} |
211 |
|
212 |
public Object endMultiGeometry(Object multiGeometry) { |
213 |
contentHandler.endMultiGeometry(multiGeometry); |
214 |
return multiGeometry;
|
215 |
} |
216 |
|
217 |
public void addGeometryToMultiGeometry(Object geometry, Object multiGeometry) { |
218 |
contentHandler.addGeometryToMultiGeometry(geometry, multiGeometry); |
219 |
} |
220 |
|
221 |
public void addBboxToFeature(Object bbox, Object feature) { |
222 |
contentHandler.addBboxToFeature(bbox, feature); |
223 |
} |
224 |
|
225 |
public void addGeometryToFeature(Object geometry, Object feature) { |
226 |
contentHandler.addGeometryToFeature(geometry, feature); |
227 |
} |
228 |
|
229 |
public Object startMetadata(String type, String data, |
230 |
IAttributesIterator attributes) { |
231 |
return contentHandler.startMetadata(type, data, attributes);
|
232 |
} |
233 |
|
234 |
public void addMetadataToFeature(Object metadata, Object feature) { |
235 |
contentHandler.addMetadataToFeature(metadata, feature); |
236 |
} |
237 |
|
238 |
public void addMetadataToMetadata(Object metadata, Object parent) { |
239 |
contentHandler.addMetadataToMetadata(metadata, parent); |
240 |
} |
241 |
|
242 |
public void endMetadata(Object metadata) { |
243 |
contentHandler.endMetadata(metadata); |
244 |
} |
245 |
|
246 |
public void endTime(Object time) { |
247 |
contentHandler.endTime(time); |
248 |
} |
249 |
|
250 |
public Object startTime(String name, String description, String type, |
251 |
String time, Object previous, Object next) { |
252 |
return contentHandler.startTime(name, description, type, time,
|
253 |
previous, next); |
254 |
} |
255 |
|
256 |
public Object startTime(String type, String time) { |
257 |
return contentHandler.startTime(type, time);
|
258 |
} |
259 |
|
260 |
public void addTimeToFeature(Object time, Object feature) { |
261 |
contentHandler.addTimeToFeature(time, feature); |
262 |
} |
263 |
|
264 |
} |