Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libGPE-KML / src / org / gvsig / gpe / kml / parser / profiles / Kml21BindingProfile.java @ 18284

History | View | Annotate | Download (9.63 KB)

1
package org.gvsig.gpe.kml.parser.profiles;
2

    
3
import org.gvsig.gpe.kml.parser.v21.features.DocumentBinding;
4
import org.gvsig.gpe.kml.parser.v21.features.ElementBinding;
5
import org.gvsig.gpe.kml.parser.v21.features.FeatureBinding;
6
import org.gvsig.gpe.kml.parser.v21.features.FolderBinding;
7
import org.gvsig.gpe.kml.parser.v21.features.LookAtBinding;
8
import org.gvsig.gpe.kml.parser.v21.features.MetadataBinding;
9
import org.gvsig.gpe.kml.parser.v21.features.PlaceMarketBinding;
10
import org.gvsig.gpe.kml.parser.v21.features.StyleBinding;
11
import org.gvsig.gpe.kml.parser.v21.geometries.CoordinatesTypeBinding;
12
import org.gvsig.gpe.kml.parser.v21.geometries.DoubleBinding;
13
import org.gvsig.gpe.kml.parser.v21.geometries.GeometryBinding;
14
import org.gvsig.gpe.kml.parser.v21.geometries.InnerBoundaryIsBinding;
15
import org.gvsig.gpe.kml.parser.v21.geometries.LatLonAltBoxBinding;
16
import org.gvsig.gpe.kml.parser.v21.geometries.LineStringTypeBinding;
17
import org.gvsig.gpe.kml.parser.v21.geometries.LinearRingBinding;
18
import org.gvsig.gpe.kml.parser.v21.geometries.MultiGeometryBinding;
19
import org.gvsig.gpe.kml.parser.v21.geometries.OuterBoundaryIsBinding;
20
import org.gvsig.gpe.kml.parser.v21.geometries.PointTypeBinding;
21
import org.gvsig.gpe.kml.parser.v21.geometries.PolygonTypeBinding;
22
import org.gvsig.gpe.kml.parser.v21.geometries.RegionBinding;
23
import org.gvsig.gpe.kml.parser.v21.header.HeaderBinding;
24

    
25

    
26
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
27
 *
28
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
29
 *
30
 * This program is free software; you can redistribute it and/or
31
 * modify it under the terms of the GNU General Public License
32
 * as published by the Free Software Foundation; either version 2
33
 * of the License, or (at your option) any later version.
34
 *
35
 * This program is distributed in the hope that it will be useful,
36
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38
 * GNU General Public License for more details.
39
 *
40
 * You should have received a copy of the GNU General Public License
41
 * along with this program; if not, write to the Free Software
42
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
43
 *
44
 * For more information, contact:
45
 *
46
 *  Generalitat Valenciana
47
 *   Conselleria d'Infraestructures i Transport
48
 *   Av. Blasco Ib??ez, 50
49
 *   46010 VALENCIA
50
 *   SPAIN
51
 *
52
 *      +34 963862235
53
 *   gvsig@gva.es
54
 *      www.gvsig.gva.es
55
 *
56
 *    or
57
 *
58
 *   IVER T.I. S.A
59
 *   Salamanca 50
60
 *   46005 Valencia
61
 *   Spain
62
 *
63
 *   +34 963163400
64
 *   dac@iver.es
65
 */
66
/* CVS MESSAGES:
67
 *
68
 * $Id$
69
 * $Log$
70
 *
71
 */
72
/**
73
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
74
 */
75
public class Kml21BindingProfile extends DefaultBindingProfile{
76
        protected CoordinatesTypeBinding coordinatesTypeBinding = null;
77
        protected DocumentBinding documentBinding = null;
78
        protected DoubleBinding doubleBinding = null;
79
        protected ElementBinding elementBinding = null;
80
        protected FeatureBinding featureBinding = null;
81
        protected FolderBinding folderBinding = null;
82
        protected GeometryBinding geometryBinding = null;
83
        protected HeaderBinding headerBinding = null;
84
        protected InnerBoundaryIsBinding innerBoundaryIsBinding = null;
85
        protected LatLonAltBoxBinding latLonAltBoxBinding = null;
86
        protected LineStringTypeBinding lineStringTypeBinding = null;
87
        protected LinearRingBinding linearRingBinding = null;
88
        protected LookAtBinding lookAtBinding = null;
89
        protected MetadataBinding metadataBinding = null;
90
        protected MultiGeometryBinding multiGeometryBinding= null;
91
        protected OuterBoundaryIsBinding outerBoundaryIsBinding = null;
92
        protected PlaceMarketBinding placeMarketBinding = null;
93
        protected PointTypeBinding pointTypeBinding = null;
94
        protected PolygonTypeBinding polygonTypeBinding = null;
95
        protected RegionBinding regionBinding = null;
96
        protected StyleBinding styleBinding = null;
97
        
98

    
99
        /*
100
         * (non-Javadoc)
101
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getCoordinatesTypeBinding()
102
         */
103
        public CoordinatesTypeBinding getCoordinatesTypeBinding() {
104
                if (coordinatesTypeBinding == null){
105
                        coordinatesTypeBinding = new CoordinatesTypeBinding();
106
                }
107
                return coordinatesTypeBinding;
108
        }
109

    
110
        /*
111
         * (non-Javadoc)
112
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getDocumentBinding()
113
         */
114
        public DocumentBinding getDocumentBinding() {
115
                if (documentBinding == null){
116
                        documentBinding = new DocumentBinding();
117
                }
118
                return documentBinding;
119
        }
120

    
121
        /*
122
         * (non-Javadoc)
123
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getDoubleBinding()
124
         */
125
        public DoubleBinding getDoubleBinding() {
126
                if (doubleBinding == null){
127
                        doubleBinding = new DoubleBinding();
128
                }
129
                return doubleBinding;
130
        }
131

    
132
        /*
133
         * (non-Javadoc)
134
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getElementBinding()
135
         */
136
        public ElementBinding getElementBinding() {
137
                if (elementBinding == null){
138
                        elementBinding = new ElementBinding();
139
                }
140
                return elementBinding;
141
        }
142

    
143
        /*
144
         * (non-Javadoc)
145
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getFeatureBinding()
146
         */
147
        public FeatureBinding getFeatureBinding() {
148
                if (featureBinding == null){
149
                        featureBinding = new FeatureBinding();
150
                }
151
                return featureBinding;
152
        }
153

    
154
        /*
155
         * (non-Javadoc)
156
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getFolderBinding()
157
         */
158
        public FolderBinding getFolderBinding() {
159
                if (folderBinding == null){
160
                        folderBinding = new FolderBinding();
161
                }
162
                return folderBinding;
163
        }
164

    
165
        /*
166
         * (non-Javadoc)
167
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getGeometryBinding()
168
         */
169
        public GeometryBinding getGeometryBinding() {
170
                if (geometryBinding == null){
171
                        geometryBinding = new GeometryBinding();
172
                }
173
                return geometryBinding;
174
        }
175

    
176
        /*
177
         * (non-Javadoc)
178
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getHeaderBinding()
179
         */
180
        public HeaderBinding getHeaderBinding() {
181
                if (headerBinding == null){
182
                        headerBinding = new HeaderBinding();
183
                }
184
                return headerBinding;
185
        }
186

    
187
        /*
188
         * (non-Javadoc)
189
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getInnerBoundaryIsBinding()
190
         */
191
        public InnerBoundaryIsBinding getInnerBoundaryIsBinding() {
192
                if (innerBoundaryIsBinding == null){
193
                        innerBoundaryIsBinding = new InnerBoundaryIsBinding();
194
                }
195
                return innerBoundaryIsBinding;
196
        }
197

    
198
        /*
199
         * (non-Javadoc)
200
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getLatLonAltBoxBinding()
201
         */
202
        public LatLonAltBoxBinding getLatLonAltBoxBinding() {
203
                if (latLonAltBoxBinding == null){
204
                        latLonAltBoxBinding = new LatLonAltBoxBinding();
205
                }
206
                return latLonAltBoxBinding;
207
        }
208

    
209
        /*
210
         * (non-Javadoc)
211
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getLineStringTypeBinding()
212
         */
213
        public LineStringTypeBinding getLineStringTypeBinding() {
214
                if (lineStringTypeBinding == null){
215
                        lineStringTypeBinding = new LineStringTypeBinding();
216
                }
217
                return lineStringTypeBinding;
218
        }
219

    
220
        /*
221
         * (non-Javadoc)
222
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getLinearRingBinding()
223
         */
224
        public LinearRingBinding getLinearRingBinding() {
225
                if (linearRingBinding == null){
226
                        linearRingBinding = new LinearRingBinding();
227
                }
228
                return linearRingBinding;
229
        }
230

    
231
        /*
232
         * (non-Javadoc)
233
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getLookAtBinding()
234
         */
235
        public LookAtBinding getLookAtBinding() {
236
                if (lookAtBinding == null){
237
                        lookAtBinding = new LookAtBinding();
238
                }
239
                return lookAtBinding;
240
        }
241

    
242
        /*
243
         * (non-Javadoc)
244
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getMetadataBinding()
245
         */
246
        public MetadataBinding getMetadataBinding() {
247
                if (metadataBinding == null){
248
                        metadataBinding = new MetadataBinding();
249
                }
250
                return metadataBinding;
251
        }
252

    
253
        /*
254
         * (non-Javadoc)
255
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getMultiGeometryBinding()
256
         */
257
        public MultiGeometryBinding getMultiGeometryBinding() {
258
                if (multiGeometryBinding == null){
259
                        multiGeometryBinding = new MultiGeometryBinding();
260
                }
261
                return multiGeometryBinding;
262
        }
263

    
264
        /*
265
         * (non-Javadoc)
266
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getOuterBoundaryIsBinding()
267
         */
268
        public OuterBoundaryIsBinding getOuterBoundaryIsBinding() {
269
                if (outerBoundaryIsBinding == null){
270
                        outerBoundaryIsBinding = new OuterBoundaryIsBinding();
271
                }
272
                return outerBoundaryIsBinding;
273
        }
274

    
275
        /*
276
         * (non-Javadoc)
277
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getPlaceMarketBinding()
278
         */
279
        public PlaceMarketBinding getPlaceMarketBinding() {
280
                if (placeMarketBinding == null){
281
                        placeMarketBinding = new PlaceMarketBinding();
282
                }
283
                return placeMarketBinding;
284
        }
285

    
286
        /*
287
         * (non-Javadoc)
288
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getPointTypeBinding()
289
         */
290
        public PointTypeBinding getPointTypeBinding() {
291
                if (pointTypeBinding == null){
292
                        pointTypeBinding = new PointTypeBinding();
293
                }
294
                return pointTypeBinding;
295
        }
296

    
297
        /*
298
         * (non-Javadoc)
299
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getPolygonTypeBinding()
300
         */
301
        public PolygonTypeBinding getPolygonTypeBinding() {
302
                if (polygonTypeBinding == null){
303
                        polygonTypeBinding = new PolygonTypeBinding();
304
                }
305
                return polygonTypeBinding;
306
        }
307

    
308
        /*
309
         * (non-Javadoc)
310
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getRegionBinding()
311
         */
312
        public RegionBinding getRegionBinding() {
313
                if (regionBinding == null){
314
                        regionBinding = new RegionBinding();
315
                }
316
                return regionBinding;
317
        }
318

    
319
        /*
320
         * (non-Javadoc)
321
         * @see org.gvsig.gpe.kml.reader.bindings.profiles.IBindingProfile#getStyleBinding()
322
         */
323
        public StyleBinding getStyleBinding() {
324
                if (styleBinding == null){
325
                        styleBinding = new StyleBinding();
326
                }
327
                return styleBinding;
328
        }
329
}