svn-gvsig-desktop / branches / v06 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / querys / GazetteerOptions.java @ 4813
History | View | Annotate | Download (3.4 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 |
|
44 |
/**
|
45 |
* This class is used to manage the aspect and the
|
46 |
* filter of the gazetteer.
|
47 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
48 |
*/
|
49 |
public class GazetteerOptions { |
50 |
private AspectOptions aspect = null; |
51 |
private InteligentSearchOptions search = null; |
52 |
|
53 |
public GazetteerOptions(){
|
54 |
aspect = new AspectOptions();
|
55 |
search = new InteligentSearchOptions();
|
56 |
} |
57 |
|
58 |
public AspectOptions getAspect() {
|
59 |
return aspect;
|
60 |
} |
61 |
|
62 |
public void setAspect(AspectOptions aspect) { |
63 |
this.aspect = aspect;
|
64 |
} |
65 |
|
66 |
public InteligentSearchOptions getSearch() {
|
67 |
return search;
|
68 |
} |
69 |
|
70 |
public void setSearch(InteligentSearchOptions search) { |
71 |
this.search = search;
|
72 |
} |
73 |
|
74 |
/**
|
75 |
* This class contains all the options to show the
|
76 |
* gazetteer search on the gvSIG view
|
77 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
78 |
*/
|
79 |
public class AspectOptions{ |
80 |
private boolean goTo = false; |
81 |
private boolean keepOld = false; |
82 |
private boolean paintCurrent = false; |
83 |
|
84 |
public AspectOptions() {
|
85 |
super();
|
86 |
} |
87 |
|
88 |
public AspectOptions(boolean goTo, boolean keepOld, boolean paintCurrent) { |
89 |
super();
|
90 |
// TODO Auto-generated constructor stub
|
91 |
this.goTo = goTo;
|
92 |
this.keepOld = keepOld;
|
93 |
this.paintCurrent = paintCurrent;
|
94 |
} |
95 |
|
96 |
public boolean isGoTo() { |
97 |
return goTo;
|
98 |
} |
99 |
|
100 |
public void setGoTo(boolean goTo) { |
101 |
this.goTo = goTo;
|
102 |
} |
103 |
|
104 |
public boolean isKeepOld() { |
105 |
return keepOld;
|
106 |
} |
107 |
public void setKeepOld(boolean keepOld) { |
108 |
this.keepOld = keepOld;
|
109 |
} |
110 |
|
111 |
public boolean isPaintCurrent() { |
112 |
return paintCurrent;
|
113 |
} |
114 |
|
115 |
public void setPaintCurrent(boolean paintCurrent) { |
116 |
this.paintCurrent = paintCurrent;
|
117 |
} |
118 |
|
119 |
|
120 |
|
121 |
} |
122 |
|
123 |
/**
|
124 |
* This class contains all the options to realize
|
125 |
* the inteligent gazetteer search
|
126 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
127 |
*/
|
128 |
public class InteligentSearchOptions{ |
129 |
private boolean withAccents = false; |
130 |
|
131 |
public InteligentSearchOptions() {
|
132 |
super();
|
133 |
} |
134 |
|
135 |
public InteligentSearchOptions(boolean withAccents) { |
136 |
super();
|
137 |
// TODO Auto-generated constructor stub
|
138 |
this.withAccents = withAccents;
|
139 |
} |
140 |
|
141 |
public boolean isWithAccents() { |
142 |
return withAccents;
|
143 |
} |
144 |
|
145 |
public void setWithAccents(boolean withAccents) { |
146 |
this.withAccents = withAccents;
|
147 |
} |
148 |
|
149 |
} |
150 |
|
151 |
|
152 |
|
153 |
} |