Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1010 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / querys / Feature.java @ 12804

History | View | Annotate | Download (3.04 KB)

1

    
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
*
4
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
*
20
* For more information, contact:
21
*
22
*  Generalitat Valenciana
23
*   Conselleria d'Infraestructures i Transport
24
*   Av. Blasco Ib??ez, 50
25
*   46010 VALENCIA
26
*   SPAIN
27
*
28
*      +34 963862235
29
*   gvsig@gva.es
30
*      www.gvsig.gva.es
31
*
32
*    or
33
*
34
*   IVER T.I. S.A
35
*   Salamanca 50
36
*   46005 Valencia
37
*   Spain
38
*
39
*   +34 963163400
40
*   dac@iver.es
41
*/
42
package es.gva.cit.gazetteer.querys;
43
import java.awt.geom.Point2D;
44

    
45
/**
46
 * This class represents a Feature into the WFS context
47
 * 
48
 * 
49
 * @author Jorge Piera Llodra (piera_jor@gva.es)
50
 */
51
public class Feature {
52

    
53
/**
54
 * 
55
 * 
56
 */
57
    private String Id;
58

    
59
/**
60
 * 
61
 * 
62
 */
63
    private String Name;
64

    
65
/**
66
 * 
67
 * 
68
 */
69
    private String Description;
70
/**
71
 * 
72
 * 
73
 */
74
    private Point2D coordinates;
75

    
76
/**
77
 * 
78
 * 
79
 * 
80
 * @param id 
81
 * @param name 
82
 * @param description 
83
 * @param coordinates 
84
 */
85
    public  Feature(String id, String name, String description, Point2D coordinates) {        
86
        super();
87
        Id = id;
88
        Name = name;
89
        Description = description;
90
        this.coordinates = coordinates;
91
    } 
92

    
93
/**
94
 * 
95
 * 
96
 * 
97
 * @return Returns the coordinates.
98
 */
99
    public Point2D getCoordinates() {        
100
        return coordinates;
101
    } 
102

    
103
/**
104
 * 
105
 * 
106
 * 
107
 * @param coordinates The coordinates to set.
108
 */
109
    public void setCoordinates(Point2D coordinates) {        
110
        this.coordinates = coordinates;
111
    } 
112

    
113
/**
114
 * 
115
 * 
116
 * 
117
 * @return Returns the description.
118
 */
119
    public String getDescription() {        
120
        return Description;
121
    } 
122

    
123
/**
124
 * 
125
 * 
126
 * 
127
 * @param description The description to set.
128
 */
129
    public void setDescription(String description) {        
130
        Description = description;
131
    } 
132

    
133
/**
134
 * 
135
 * 
136
 * 
137
 * @return Returns the id.
138
 */
139
    public String getId() {        
140
        return Id;
141
    } 
142

    
143
/**
144
 * 
145
 * 
146
 * 
147
 * @param id The id to set.
148
 */
149
    public void setId(String id) {        
150
        Id = id;
151
    } 
152

    
153
/**
154
 * 
155
 * 
156
 * 
157
 * @return Returns the name.
158
 */
159
    public String getName() {        
160
        return Name;
161
    } 
162

    
163
/**
164
 * 
165
 * 
166
 * 
167
 * @param name The name to set.
168
 */
169
    public void setName(String name) {        
170
        Name = name;
171
    } 
172

    
173
/**
174
 * 
175
 * 
176
 * 
177
 * @return 
178
 */
179
    public String toString() {        
180
        return this.getDescription();
181
    } 
182
 }