svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / DataSet.java @ 40435
History | View | Annotate | Download (1.42 KB)
1 |
package org.gvsig.fmap.dal; |
---|---|
2 |
|
3 |
import org.gvsig.tools.dispose.Disposable; |
4 |
import org.gvsig.tools.exception.BaseException; |
5 |
import org.gvsig.tools.visitor.Visitable; |
6 |
import org.gvsig.tools.visitor.Visitor; |
7 |
|
8 |
/**
|
9 |
* <p> Interface that represents a generic set of data. It may proceed either from a data
|
10 |
* query, a user selection or a collection of locked elements.</p>
|
11 |
*/
|
12 |
public interface DataSet extends Visitable, Disposable { |
13 |
|
14 |
/**
|
15 |
* Indicates whether this DataSet belongs to a specific store
|
16 |
* @param store
|
17 |
* a DataStore
|
18 |
* @return true if this belongs to the given DataStore, false if not.
|
19 |
*/
|
20 |
public boolean isFromStore(DataStore store); |
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 |
|
39 |
} |