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 | 3566 | jorpiell | |
---|---|---|---|
2 | 2921 | jorpiell | /* 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 | 2955 | jorpiell | import java.awt.geom.Point2D; |
44 | 2953 | jorpiell | |
45 | 2921 | jorpiell | /**
|
46 | 3017 | jorpiell | * This class represents a Feature into the WFS context
|
47 | *
|
||
48 | 3566 | jorpiell | *
|
49 | 2921 | jorpiell | * @author Jorge Piera Llodra (piera_jor@gva.es)
|
50 | */
|
||
51 | public class Feature { |
||
52 | 3566 | jorpiell | |
53 | /**
|
||
54 | *
|
||
55 | *
|
||
56 | */
|
||
57 | 2955 | jorpiell | private String Id; |
58 | 3566 | jorpiell | |
59 | /**
|
||
60 | *
|
||
61 | *
|
||
62 | */
|
||
63 | 2955 | jorpiell | private String Name; |
64 | 3566 | jorpiell | |
65 | /**
|
||
66 | *
|
||
67 | *
|
||
68 | */
|
||
69 | 2955 | jorpiell | private String Description; |
70 | 3566 | jorpiell | /**
|
71 | *
|
||
72 | *
|
||
73 | */
|
||
74 | 2955 | jorpiell | private Point2D coordinates; |
75 | 3566 | jorpiell | |
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 | 2955 | jorpiell | super();
|
87 | Id = id; |
||
88 | Name = name;
|
||
89 | Description = description; |
||
90 | this.coordinates = coordinates;
|
||
91 | 3566 | jorpiell | } |
92 | |||
93 | /**
|
||
94 | *
|
||
95 | *
|
||
96 | *
|
||
97 | * @return Returns the coordinates.
|
||
98 | */
|
||
99 | public Point2D getCoordinates() { |
||
100 | 2925 | jorpiell | return coordinates;
|
101 | 3566 | jorpiell | } |
102 | |||
103 | /**
|
||
104 | *
|
||
105 | *
|
||
106 | *
|
||
107 | * @param coordinates The coordinates to set.
|
||
108 | */
|
||
109 | public void setCoordinates(Point2D coordinates) { |
||
110 | 2925 | jorpiell | this.coordinates = coordinates;
|
111 | 3566 | jorpiell | } |
112 | |||
113 | /**
|
||
114 | *
|
||
115 | *
|
||
116 | *
|
||
117 | * @return Returns the description.
|
||
118 | */
|
||
119 | public String getDescription() { |
||
120 | 2955 | jorpiell | return Description;
|
121 | 3566 | jorpiell | } |
122 | |||
123 | /**
|
||
124 | *
|
||
125 | *
|
||
126 | *
|
||
127 | * @param description The description to set.
|
||
128 | */
|
||
129 | public void setDescription(String description) { |
||
130 | 2955 | jorpiell | Description = description; |
131 | 3566 | jorpiell | } |
132 | |||
133 | /**
|
||
134 | *
|
||
135 | *
|
||
136 | *
|
||
137 | * @return Returns the id.
|
||
138 | */
|
||
139 | public String getId() { |
||
140 | 2955 | jorpiell | return Id;
|
141 | 3566 | jorpiell | } |
142 | |||
143 | /**
|
||
144 | *
|
||
145 | *
|
||
146 | *
|
||
147 | * @param id The id to set.
|
||
148 | */
|
||
149 | public void setId(String id) { |
||
150 | 2955 | jorpiell | Id = id; |
151 | 3566 | jorpiell | } |
152 | |||
153 | /**
|
||
154 | *
|
||
155 | *
|
||
156 | *
|
||
157 | * @return Returns the name.
|
||
158 | */
|
||
159 | public String getName() { |
||
160 | 2955 | jorpiell | return Name; |
161 | 3566 | jorpiell | } |
162 | |||
163 | /**
|
||
164 | *
|
||
165 | *
|
||
166 | *
|
||
167 | * @param name The name to set.
|
||
168 | */
|
||
169 | public void setName(String name) { |
||
170 | 2955 | jorpiell | Name = name;
|
171 | 3566 | jorpiell | } |
172 | |||
173 | /**
|
||
174 | *
|
||
175 | *
|
||
176 | *
|
||
177 | * @return
|
||
178 | */
|
||
179 | public String toString() { |
||
180 | 2967 | jorpiell | return this.getDescription(); |
181 | 3566 | jorpiell | } |
182 | } |