Statistics
| Revision:

gvsig-projects-pool / org.gvsig.topology / trunk / org.gvsig.topology / org.gvsig.topology.lib / org.gvsig.topology.lib.api / src / main / java / org / gvsig / topology / lib / api / TopologyDataSet.java @ 726

History | View | Annotate | Download (2.61 KB)

1
/**
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
package org.gvsig.topology.lib.api;
25

    
26
import org.gvsig.expressionevaluator.Expression;
27
import org.gvsig.fmap.dal.exception.DataException;
28
import org.gvsig.fmap.dal.feature.EditableFeature;
29
import org.gvsig.fmap.dal.feature.Feature;
30
import org.gvsig.fmap.dal.feature.FeatureReference;
31
import org.gvsig.fmap.dal.feature.FeatureStore;
32
import org.gvsig.fmap.geom.Geometry;
33
import org.gvsig.fmap.geom.SpatialIndex;
34
import org.gvsig.tools.util.PropertiesSupport;
35
import org.gvsig.tools.visitor.VisitCanceledException;
36
import org.gvsig.tools.visitor.Visitor;
37

    
38
/**
39
 *
40
 * @author jjdelcerro
41
 */
42
public interface TopologyDataSet extends PropertiesSupport, SerializableJSON {
43

    
44
    public static interface Operation {
45
        public void run() throws DataException;
46
    }
47
    
48
    public void setName(String name);
49

    
50
    public String getName();
51
    
52
    public FeatureStore getStore();
53

    
54
    public boolean isThisStore(FeatureStore featureStore);
55

    
56
    public int getGeometryType() ;
57

    
58
    public void accept(Visitor visitor) throws VisitCanceledException;
59

    
60
    public void edit() throws DataException;
61

    
62
    public void finishEditing() throws DataException;
63
    
64
    public EditableFeature createNewFeature() throws DataException;
65

    
66
    public void delete(FeatureReference feature) throws DataException;
67

    
68
    public void delete(Feature feature) throws DataException;
69

    
70
    public void insert(EditableFeature feature) throws DataException;
71

    
72
    public void update(EditableFeature feature) throws DataException;
73

    
74
    public long getSize();
75
    
76
    public SpatialIndex getSpatialIndex();
77
    
78
    public Iterable<FeatureReference> query(Geometry geom);
79

    
80
    public Feature findFirst(Expression expression);
81

    
82
    public void restart();
83
}