Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_897 / libraries / libRemoteServices / src / org / gvsig / remoteClient / wfs / WFSFeature.java @ 10444

History | View | Annotate | Download (4.08 KB)

1
package org.gvsig.remoteClient.wfs;
2

    
3
import java.util.ArrayList;
4
import java.util.Hashtable;
5
import java.util.Vector;
6

    
7
import org.gvsig.remoteClient.utils.BoundaryBox;
8
import org.gvsig.remoteClient.utils.CapabilitiesTags;
9
import org.gvsig.remoteClient.wcs.WCSCoverage.RectifiedGrid;
10

    
11
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
12
 *
13
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
14
 *
15
 * This program is free software; you can redistribute it and/or
16
 * modify it under the terms of the GNU General Public License
17
 * as published by the Free Software Foundation; either version 2
18
 * of the License, or (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
28
 *
29
 * For more information, contact:
30
 *
31
 *  Generalitat Valenciana
32
 *   Conselleria d'Infraestructures i Transport
33
 *   Av. Blasco Ib??ez, 50
34
 *   46010 VALENCIA
35
 *   SPAIN
36
 *
37
 *      +34 963862235
38
 *   gvsig@gva.es
39
 *      www.gvsig.gva.es
40
 *
41
 *    or
42
 *
43
 *   IVER T.I. S.A
44
 *   Salamanca 50
45
 *   46005 Valencia
46
 *   Spain
47
 *
48
 *   +34 963163400
49
 *   dac@iver.es
50
 */
51
/* CVS MESSAGES:
52
 *
53
 * $Id: WFSFeature.java 10444 2007-02-21 09:20:16Z  $
54
 * $Log$
55
 * Revision 1.5  2006-06-15 09:05:06  jorpiell
56
 * Actualizados los WFS
57
 *
58
 * Revision 1.4  2006/05/23 13:23:22  jorpiell
59
 * Se ha cambiado el final del bucle de parseado y se tiene en cuenta el online resource
60
 *
61
 * Revision 1.2  2006/04/20 16:39:16  jorpiell
62
 * A?adida la operacion de describeFeatureType y el parser correspondiente.
63
 *
64
 * Revision 1.1  2006/04/19 12:51:35  jorpiell
65
 * A?adidas algunas de las clases del servicio WFS
66
 *
67
 *
68
 */
69
/**
70
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
71
 */
72
public class WFSFeature {
73
         private String        name = null;
74
         private String        title = null;
75
         private String        _abstract = null;
76
         private Vector srs = new Vector();
77
         private BoundaryBox latLonBbox = null;
78
         private Hashtable bBoxes = new Hashtable();
79
         private Vector fields = new Vector();
80
         private Vector keywords = new Vector();
81
         
82
        /**
83
         * @return Returns the fields.
84
         */
85
        public Vector getFields() {
86
                return fields;
87
        }
88
        /**
89
         * @param fields The fields to set.
90
         */
91
        public void setFields(Vector fields) {
92
                this.fields = fields;
93
        }
94
        /**
95
         * @return Returns the _abstract.
96
         */
97
        public String getAbstract() {
98
                return _abstract;
99
        }
100
        /**
101
         * @param _abstract The _abstract to set.
102
         */
103
        public void setAbstract(String _abstract) {
104
                this._abstract = _abstract;
105
        }        
106
        
107
        /**
108
         * @return Returns the name.
109
         */
110
        public String getName() {
111
                return name;
112
        }
113
        
114
        /**
115
         * @param name The name to set.
116
         */
117
        public void setName(String name) {
118
                this.name = name;
119
        }
120
        
121
        /**
122
         * @return Returns the title.
123
         */
124
        public String getTitle() {
125
                return title;
126
        }
127
        
128
        /**
129
         * @param title The title to set.
130
         */
131
        public void setTitle(String title) {
132
                this.title = title;
133
        }
134
        
135
        /**
136
         * @return Returns the latLonBbox.
137
         */
138
        public BoundaryBox getLatLonBbox() {
139
                return latLonBbox;
140
        }
141
        /**
142
         * @param latLonBbox The latLonBbox to set.
143
         */
144
        public void setLatLonBbox(BoundaryBox latLonBbox) {
145
                this.latLonBbox = latLonBbox;
146
        }
147
        /**
148
         * @return Returns the keywords.
149
         */
150
        public Vector getKeywords() {
151
                return keywords;
152
        }
153
        
154
        public void addKeyword(String keyword){
155
                keywords.add(keyword);
156
        }
157
        /**
158
         * @return Returns the srs.
159
         */
160
        public Vector getSrs() {
161
                return srs;
162
        }
163
        
164
        public void addSRS(String key){
165
                if (!this.srs.contains(key))
166
                    srs.add(key);
167
        }
168
        
169
         /**
170
     * <p>Adds a bbox to the Bboxes vector</p>
171
     * @param bbox
172
     */
173
    public void addBBox(BoundaryBox bbox) {
174
        bBoxes.put(bbox.getSrs(), bbox);
175
    } 
176
    
177
    /**
178
     * <p>returns the bbox with that id in the Bboxes vector</p> 
179
     * @param id 
180
     */
181
    public BoundaryBox getBbox(String id) {
182
            return (BoundaryBox)bBoxes.get(id);
183
    } 
184
        
185
}