gvsig-gazetteer / org.gvsig.gazetteer / trunk / org.gvsig.gazetteer / org.gvsig.gazetteer.lib / src / main / java / org / gvsig / gazetteer / querys / Feature.java @ 103
History | View | Annotate | Download (3.08 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 org.gvsig.gazetteer.querys; |
43 |
import java.awt.geom.Point2D; |
44 |
|
45 |
import org.gvsig.fmap.geom.primitive.Point; |
46 |
|
47 |
/**
|
48 |
* This class represents a Feature into the WFS context
|
49 |
*
|
50 |
*
|
51 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
52 |
*/
|
53 |
public class Feature { |
54 |
private String Id; |
55 |
private String Name; |
56 |
private String Description; |
57 |
private Point coordinates; |
58 |
|
59 |
/**
|
60 |
* @param id
|
61 |
* @param name
|
62 |
* @param description
|
63 |
* @param coordinates
|
64 |
*/
|
65 |
public Feature(String id, String name, String description, Point coordinates) { |
66 |
super();
|
67 |
Id = id; |
68 |
Name = name;
|
69 |
Description = description; |
70 |
this.coordinates = coordinates;
|
71 |
} |
72 |
|
73 |
/**
|
74 |
*
|
75 |
*
|
76 |
*
|
77 |
* @return Returns the coordinates.
|
78 |
*/
|
79 |
public Point getCoordinates() { |
80 |
return coordinates;
|
81 |
} |
82 |
|
83 |
/**
|
84 |
*
|
85 |
*
|
86 |
*
|
87 |
* @param coordinates The coordinates to set.
|
88 |
*/
|
89 |
public void setCoordinates(Point coordinates) { |
90 |
this.coordinates = coordinates;
|
91 |
} |
92 |
|
93 |
/**
|
94 |
*
|
95 |
*
|
96 |
*
|
97 |
* @return Returns the description.
|
98 |
*/
|
99 |
public String getDescription() { |
100 |
return Description;
|
101 |
} |
102 |
|
103 |
/**
|
104 |
*
|
105 |
*
|
106 |
*
|
107 |
* @param description The description to set.
|
108 |
*/
|
109 |
public void setDescription(String description) { |
110 |
Description = description; |
111 |
} |
112 |
|
113 |
/**
|
114 |
*
|
115 |
*
|
116 |
*
|
117 |
* @return Returns the id.
|
118 |
*/
|
119 |
public String getId() { |
120 |
return Id;
|
121 |
} |
122 |
|
123 |
/**
|
124 |
*
|
125 |
*
|
126 |
*
|
127 |
* @param id The id to set.
|
128 |
*/
|
129 |
public void setId(String id) { |
130 |
Id = id; |
131 |
} |
132 |
|
133 |
/**
|
134 |
*
|
135 |
*
|
136 |
*
|
137 |
* @return Returns the name.
|
138 |
*/
|
139 |
public String getName() { |
140 |
return Name; |
141 |
} |
142 |
|
143 |
/**
|
144 |
*
|
145 |
*
|
146 |
*
|
147 |
* @param name The name to set.
|
148 |
*/
|
149 |
public void setName(String name) { |
150 |
Name = name;
|
151 |
} |
152 |
|
153 |
/*
|
154 |
* (non-Javadoc)
|
155 |
* @see java.lang.Object#toString()
|
156 |
*/
|
157 |
public String toString() { |
158 |
return getDescription();
|
159 |
} |
160 |
} |