root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / querys / Feature.java @ 2967
History | View | Annotate | Download (2.81 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package es.gva.cit.gazetteer.querys; |
42 |
|
43 |
import java.awt.geom.Point2D; |
44 |
|
45 |
|
46 |
/**
|
47 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
48 |
*/
|
49 |
public class Feature { |
50 |
private String Id; |
51 |
private String Name; |
52 |
private String Description; |
53 |
private Point2D coordinates; |
54 |
|
55 |
|
56 |
|
57 |
/**
|
58 |
* @param id
|
59 |
* @param name
|
60 |
* @param description
|
61 |
* @param coordinates
|
62 |
*/
|
63 |
public Feature(String id, String name, String description, Point2D coordinates) { |
64 |
super();
|
65 |
Id = id; |
66 |
Name = name;
|
67 |
Description = description; |
68 |
this.coordinates = coordinates;
|
69 |
} |
70 |
/**
|
71 |
* @return Returns the coordinates.
|
72 |
*/
|
73 |
public Point2D getCoordinates() { |
74 |
return coordinates;
|
75 |
} |
76 |
/**
|
77 |
* @param coordinates The coordinates to set.
|
78 |
*/
|
79 |
public void setCoordinates(Point2D coordinates) { |
80 |
this.coordinates = coordinates;
|
81 |
} |
82 |
/**
|
83 |
* @return Returns the description.
|
84 |
*/
|
85 |
public String getDescription() { |
86 |
return Description;
|
87 |
} |
88 |
/**
|
89 |
* @param description The description to set.
|
90 |
*/
|
91 |
public void setDescription(String description) { |
92 |
Description = description; |
93 |
} |
94 |
/**
|
95 |
* @return Returns the id.
|
96 |
*/
|
97 |
public String getId() { |
98 |
return Id;
|
99 |
} |
100 |
/**
|
101 |
* @param id The id to set.
|
102 |
*/
|
103 |
public void setId(String id) { |
104 |
Id = id; |
105 |
} |
106 |
/**
|
107 |
* @return Returns the name.
|
108 |
*/
|
109 |
public String getName() { |
110 |
return Name; |
111 |
} |
112 |
/**
|
113 |
* @param name The name to set.
|
114 |
*/
|
115 |
public void setName(String name) { |
116 |
Name = name;
|
117 |
} |
118 |
|
119 |
public String toString(){ |
120 |
return this.getDescription(); |
121 |
} |
122 |
} |