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 @ 44644
History | View | Annotate | Download (2.38 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
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 3
|
||
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., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | 40435 | jjdelcerro | package org.gvsig.fmap.dal; |
25 | |||
26 | import org.gvsig.tools.dispose.Disposable; |
||
27 | import org.gvsig.tools.exception.BaseException; |
||
28 | import org.gvsig.tools.visitor.Visitable; |
||
29 | import org.gvsig.tools.visitor.Visitor; |
||
30 | |||
31 | /**
|
||
32 | * <p> Interface that represents a generic set of data. It may proceed either from a data
|
||
33 | * query, a user selection or a collection of locked elements.</p>
|
||
34 | */
|
||
35 | public interface DataSet extends Visitable, Disposable { |
||
36 | |||
37 | /**
|
||
38 | * Indicates whether this DataSet belongs to a specific store
|
||
39 | * @param store
|
||
40 | * a DataStore
|
||
41 | * @return true if this belongs to the given DataStore, false if not.
|
||
42 | */
|
||
43 | public boolean isFromStore(DataStore store); |
||
44 | |||
45 | /**
|
||
46 | * Provides each value of this Store to the provided {@link Visitor}.
|
||
47 | * The values received through the {@link Visitor#visit(Object)} method
|
||
48 | * may be transient, reused or externally modifiable, so they can't
|
||
49 | * be used to be stored in any external form out of the visit method.
|
||
50 | *
|
||
51 | * If you need to store any of the values out of the
|
||
52 | * {@link Visitor#visit(Object)} method execution, create a copy or clone
|
||
53 | * the received value in order to be stored.
|
||
54 | *
|
||
55 | * @param visitor
|
||
56 | * the visitor to apply to each value.
|
||
57 | * @exception BaseException
|
||
58 | * if there is an error while performing the visit
|
||
59 | */
|
||
60 | public void accept(Visitor visitor) throws BaseException; |
||
61 | |||
62 | } |