Revision 34827
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DataSet.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal; |
2 | 2 |
|
3 | 3 |
import org.gvsig.tools.dispose.Disposable; |
4 |
import org.gvsig.tools.exception.BaseException; |
|
4 | 5 |
import org.gvsig.tools.visitor.Visitable; |
6 |
import org.gvsig.tools.visitor.Visitor; |
|
5 | 7 |
|
6 | 8 |
/** |
7 | 9 |
* <p> Interface that represents a generic set of data. It may proceed either from a data |
... | ... | |
17 | 19 |
*/ |
18 | 20 |
public boolean isFromStore(DataStore store); |
19 | 21 |
|
22 |
/** |
|
23 |
* Provides each value of this Store to the provided {@link Visitor}. |
|
24 |
* The values received through the {@link Visitor#visit(Object)} method |
|
25 |
* may be transient, reused or externally modifiable, so they can't |
|
26 |
* be used to be stored in any external form out of the visit method. |
|
27 |
* |
|
28 |
* If you need to store any of the values out of the |
|
29 |
* {@link Visitor#visit(Object)} method execution, create a copy or clone |
|
30 |
* the received value in order to be stored. |
|
31 |
* |
|
32 |
* @param visitor |
|
33 |
* the visitor to apply to each value. |
|
34 |
* @exception BaseException |
|
35 |
* if there is an error while performing the visit |
|
36 |
*/ |
|
37 |
public void accept(Visitor visitor) throws BaseException; |
|
38 |
|
|
20 | 39 |
} |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DataStore.java | ||
---|---|---|
150 | 150 |
*/ |
151 | 151 |
DataSet getDataSet(DataQuery dataQuery) throws DataException; |
152 | 152 |
|
153 |
/** |
|
154 |
* Provides each value of this Store to the provided {@link Visitor}. |
|
155 |
* The values received through the {@link Visitor#visit(Object)} method |
|
156 |
* may be transient, reused or externally modifiable, so they can't |
|
157 |
* be used to be stored in any external form out of the visit method. |
|
158 |
* |
|
159 |
* If you need to store any of the values out of the |
|
160 |
* {@link Visitor#visit(Object)} method execution, create a copy or clone |
|
161 |
* the received value in order to be stored. |
|
162 |
* |
|
163 |
* @param visitor |
|
164 |
* the visitor to apply to each value. |
|
165 |
* @exception BaseException |
|
166 |
* if there is an error while performing the visit |
|
167 |
*/ |
|
168 |
public void accept(Visitor visitor) throws BaseException; |
|
169 |
|
|
153 | 170 |
/** |
154 |
* Provides each value of this container to the provided {@link Visitor}. |
|
155 |
* |
|
156 |
* @param visitor |
|
157 |
* the visitor to apply to each value. |
|
158 |
* @param dataQuery |
|
159 |
* defines the properties of the data to visit |
|
160 |
* @exception BaseException |
|
161 |
* if there is an error while performing the visit |
|
162 |
*/ |
|
171 |
* Provides each value of this Store to the provided {@link Visitor}. |
|
172 |
* The values received through the {@link Visitor#visit(Object)} method |
|
173 |
* may be transient, reused or externally modifiable, so they can't |
|
174 |
* be used to be stored in any external form out of the visit method. |
|
175 |
* |
|
176 |
* If you need to store any of the values out of the |
|
177 |
* {@link Visitor#visit(Object)} method execution, create a copy or clone |
|
178 |
* the received value in order to be stored. |
|
179 |
* |
|
180 |
* @param visitor |
|
181 |
* the visitor to apply to each value. |
|
182 |
* @param dataQuery |
|
183 |
* defines the properties of the data to visit |
|
184 |
* @exception BaseException |
|
185 |
* if there is an error while performing the visit |
|
186 |
*/ |
|
163 | 187 |
public void accept(Visitor visitor, DataQuery dataQuery) |
164 | 188 |
throws BaseException; |
165 | 189 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/featureset/DefaultFeatureSet.java | ||
---|---|---|
295 | 295 |
|
296 | 296 |
protected void doAccept(Visitor visitor, long firstValueIndex) |
297 | 297 |
throws VisitCanceledException, BaseException { |
298 |
DisposableIterator iterator = iterator(firstValueIndex);
|
|
298 |
DisposableIterator iterator = fastIterator(firstValueIndex);
|
|
299 | 299 |
|
300 | 300 |
try { |
301 | 301 |
while (iterator.hasNext()) { |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureSet.java | ||
---|---|---|
7 | 7 |
import org.gvsig.tools.dispose.DisposableIterator; |
8 | 8 |
import org.gvsig.tools.dynobject.DynObject; |
9 | 9 |
import org.gvsig.tools.dynobject.DynObjectSet; |
10 |
import org.gvsig.tools.exception.BaseException; |
|
10 | 11 |
import org.gvsig.tools.visitor.IndexedVisitable; |
12 |
import org.gvsig.tools.visitor.Visitor; |
|
11 | 13 |
|
12 | 14 |
/** |
13 | 15 |
* A FeatureSet represents a set of {@link Feature}(s). These sets of features |
... | ... | |
250 | 252 |
*/ |
251 | 253 |
public DynObjectSet getDynObjectSet(boolean fast); |
252 | 254 |
|
255 |
/** |
|
256 |
* Provides each value of this Store to the provided {@link Visitor}, |
|
257 |
* beginning from the provided index position. |
|
258 |
* The values received through the {@link Visitor#visit(Object)} method |
|
259 |
* may be transient, reused or externally modifiable, so they can't |
|
260 |
* be used to be stored in any external form out of the visit method. |
|
261 |
* |
|
262 |
* If you need to store any of the values out of the |
|
263 |
* {@link Visitor#visit(Object)} method execution, create a copy or clone |
|
264 |
* the received value in order to be stored. |
|
265 |
* |
|
266 |
* @param visitor |
|
267 |
* the visitor to apply to each value. |
|
268 |
* @param firstValueIndex |
|
269 |
* index of first element to be visited by the {@link Visitor} |
|
270 |
* @exception BaseException |
|
271 |
* if there is an error while performing the visit |
|
272 |
*/ |
|
273 |
void accept(Visitor visitor, long firstValueIndex) throws BaseException; |
|
253 | 274 |
} |
Also available in: Unified diff