svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / querys / Query.java @ 3480
History | View | Annotate | Download (5.9 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 es.gva.cit.catalogClient.querys.Coordinates; |
44 |
|
45 |
/**
|
46 |
* This class contains all the queryable fields that the user interface
|
47 |
* supports.
|
48 |
*
|
49 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
50 |
*/
|
51 |
public class Query { |
52 |
private String name; |
53 |
private String nameFilter; |
54 |
private ThesaurusName[] feature; |
55 |
private String fieldAttribute; |
56 |
private int recsByPage; |
57 |
private Coordinates coordinates;
|
58 |
private String coordinatesFilter; |
59 |
private boolean isCoordinatesClicked; |
60 |
private boolean isGotoclicked; |
61 |
private boolean isKeepOldClicked; |
62 |
|
63 |
|
64 |
/**
|
65 |
* @param name
|
66 |
* @param nameFilter
|
67 |
* @param feature
|
68 |
* @param recsByPage
|
69 |
* @param coordinates
|
70 |
* @param coordinatesFilter
|
71 |
*/
|
72 |
public Query(String name, String nameFilter, ThesaurusName[] feature, String fieldAttribute, |
73 |
int recsByPage, Coordinates coordinates, String coordinatesFilter) { |
74 |
super();
|
75 |
this.name = name;
|
76 |
this.nameFilter = nameFilter;
|
77 |
this.feature = feature;
|
78 |
this.fieldAttribute = fieldAttribute;
|
79 |
this.recsByPage = recsByPage;
|
80 |
this.coordinates = coordinates;
|
81 |
this.coordinatesFilter = coordinatesFilter;
|
82 |
} |
83 |
|
84 |
/**
|
85 |
* To search a place by name
|
86 |
* @param name
|
87 |
* Place name
|
88 |
* @param description
|
89 |
* Thesaurus description
|
90 |
*/
|
91 |
public Query(String name,String description){ |
92 |
ThesaurusName[] thesaurus = new ThesaurusName[1]; |
93 |
thesaurus[0] = new ThesaurusName(); |
94 |
thesaurus[0].setName(description);
|
95 |
this.name = name;
|
96 |
this.nameFilter = "Y"; |
97 |
this.feature = thesaurus;
|
98 |
this.recsByPage = 100; |
99 |
this.coordinates = null; |
100 |
this.coordinatesFilter = null; |
101 |
|
102 |
|
103 |
} |
104 |
|
105 |
/**
|
106 |
* @return Returns the coordinates.
|
107 |
*/
|
108 |
public Coordinates getCoordinates() {
|
109 |
return coordinates;
|
110 |
} |
111 |
/**
|
112 |
* @param coordinates The coordinates to set.
|
113 |
*/
|
114 |
public void setCoordinates(Coordinates coordinates) { |
115 |
this.coordinates = coordinates;
|
116 |
} |
117 |
/**
|
118 |
* @return Returns the coordinatesFilter.
|
119 |
*/
|
120 |
public String getCoordinatesFilter() { |
121 |
return coordinatesFilter;
|
122 |
} |
123 |
/**
|
124 |
* @param coordinatesFilter The coordinatesFilter to set.
|
125 |
*/
|
126 |
public void setCoordinatesFilter(String coordinatesFilter) { |
127 |
this.coordinatesFilter = coordinatesFilter;
|
128 |
} |
129 |
/**
|
130 |
* @return Returns the feature.
|
131 |
*/
|
132 |
public ThesaurusName[] getFeatures() { |
133 |
return feature;
|
134 |
} |
135 |
/**
|
136 |
* @param feature The feature to set.
|
137 |
*/
|
138 |
public void setFeatures(ThesaurusName[] feature) { |
139 |
this.feature = feature;
|
140 |
} |
141 |
/**
|
142 |
* @return Returns the name.
|
143 |
*/
|
144 |
public String getName() { |
145 |
return name;
|
146 |
} |
147 |
/**
|
148 |
* @param name The name to set.
|
149 |
*/
|
150 |
public void setName(String name) { |
151 |
this.name = name;
|
152 |
} |
153 |
/**
|
154 |
* @return Returns the nameFilter.
|
155 |
*/
|
156 |
public String getNameFilter() { |
157 |
return nameFilter;
|
158 |
} |
159 |
/**
|
160 |
* @param nameFilter The nameFilter to set.
|
161 |
*/
|
162 |
public void setNameFilter(String nameFilter) { |
163 |
this.nameFilter = nameFilter;
|
164 |
} |
165 |
/**
|
166 |
* @return Returns the recsByPage.
|
167 |
*/
|
168 |
public int getRecsByPage() { |
169 |
return recsByPage;
|
170 |
} |
171 |
/**
|
172 |
* @param recsByPage The recsByPage to set.
|
173 |
*/
|
174 |
public void setRecsByPage(int recsByPage) { |
175 |
this.recsByPage = recsByPage;
|
176 |
} |
177 |
/**
|
178 |
* @return Returns the fieldAttribute.
|
179 |
*/
|
180 |
public String getFieldAttribute() { |
181 |
return fieldAttribute;
|
182 |
} |
183 |
/**
|
184 |
* @param fieldAttribute The fieldAttribute to set.
|
185 |
*/
|
186 |
public void setFieldAttribute(String fieldAttribute) { |
187 |
this.fieldAttribute = fieldAttribute;
|
188 |
} |
189 |
/**
|
190 |
* @return Returns the isCoordinatesClicked.
|
191 |
*/
|
192 |
public boolean isCoordinatesClicked() { |
193 |
return isCoordinatesClicked;
|
194 |
} |
195 |
/**
|
196 |
* @param isCoordinatesClicked The isCoordinatesClicked to set.
|
197 |
*/
|
198 |
public void setCoordinatesClicked(boolean isCoordinatesClicked) { |
199 |
this.isCoordinatesClicked = isCoordinatesClicked;
|
200 |
} |
201 |
/**
|
202 |
* @return Returns the isGotoclicked.
|
203 |
*/
|
204 |
public boolean isGotoclicked() { |
205 |
return isGotoclicked;
|
206 |
} |
207 |
/**
|
208 |
* @param isGotoclicked The isGotoclicked to set.
|
209 |
*/
|
210 |
public void setGotoclicked(boolean isGotoclicked) { |
211 |
this.isGotoclicked = isGotoclicked;
|
212 |
} |
213 |
/**
|
214 |
* @return Returns the isKeepOldClicked.
|
215 |
*/
|
216 |
public boolean isKeepOldClicked() { |
217 |
return isKeepOldClicked;
|
218 |
} |
219 |
/**
|
220 |
* @param isKeepOldClicked The isKeepOldClicked to set.
|
221 |
*/
|
222 |
public void setKeepOldClicked(boolean isKeepOldClicked) { |
223 |
this.isKeepOldClicked = isKeepOldClicked;
|
224 |
} |
225 |
} |