Revision 23329
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/Feature.java | ||
---|---|---|
8 | 8 |
import org.gvsig.fmap.geom.Geometry; |
9 | 9 |
import org.gvsig.fmap.geom.primitive.Envelope; |
10 | 10 |
|
11 |
/** |
|
12 |
* <p>Represents the basic unit of the alfanumeric and vectorial |
|
13 |
* data element (could be equivalent to data base register). |
|
14 |
* </p> |
|
15 |
* <br> |
|
16 |
* <p>The Feature: |
|
17 |
* <ul> |
|
18 |
* <li>Can create a unike identifier <code>FeatureID</code> |
|
19 |
* to recognize our Feature from each other of the same |
|
20 |
* data source</li> |
|
21 |
* <li>Have a <code>FeatureType</code> that shows the |
|
22 |
* charasteristics of the <code>Feature</code> (fields, |
|
23 |
* fileds data type, default geometry, validation rules).</li> |
|
24 |
* </ul> |
|
25 |
* </p> |
|
26 |
* <p><code>Feature</code> has all necesary methoths to access and |
|
27 |
* modify fileds values.</p> |
|
28 |
* |
|
29 |
* @author |
|
30 |
* |
|
31 |
*/ |
|
11 | 32 |
|
12 | 33 |
public interface Feature { |
13 | 34 |
|
... | ... | |
85 | 106 |
public List getAllSRS(); |
86 | 107 |
public String getDefaultSRS(); |
87 | 108 |
public Feature getFeature(String name); |
109 |
|
|
110 |
/** |
|
111 |
* |
|
112 |
* @throws DataException |
|
113 |
*/ |
|
88 | 114 |
|
89 | 115 |
public void editing() throws DataException; |
90 | 116 |
public void cancelEditing(); |
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/FeatureStore.java | ||
---|---|---|
12 | 12 |
import org.gvsig.fmap.data.index.IndexException; |
13 | 13 |
import org.gvsig.tools.observer.Observer; |
14 | 14 |
|
15 |
/** |
|
16 |
* <p>Is a specialization of DataStore to use alfanumeric and |
|
17 |
* vectorial data.</p> |
|
18 |
* <ul> |
|
19 |
* <il>It has suport to the diferent <i>Feature</i> definitions |
|
20 |
* (or types) represented by <i>FeatureType</i>, but always |
|
21 |
* use one by default. (The GML format, for example, can use |
|
22 |
* diferent <i>Feature</i> types.</il> |
|
23 |
* <il>Allows access to a subcollection data filtered and/or |
|
24 |
* sort it (as well load in a background mode). |
|
25 |
* </il> |
|
26 |
* <il>Allowed filters will be <i>alfanumerics</i> and/or |
|
27 |
* <i>Spatial</i> and/or <i>Feature type</i>.</il> |
|
28 |
* <il>Adds support to <i>Feature</i> edition level.</il> |
|
29 |
* <il>Adds support to modify structure (<i>FeatureType</i>).</il> |
|
30 |
* <il>Give information about contained geometry types.</il> |
|
31 |
* |
|
32 |
* </ul> |
|
33 |
* |
|
34 |
* @author |
|
35 |
* |
|
36 |
*/ |
|
15 | 37 |
public interface FeatureStore extends DataStore{ |
16 | 38 |
|
17 | 39 |
public DataCollection getDataCollection(FeatureType type, String filter, String order) throws ReadException; |
... | ... | |
20 | 42 |
/** |
21 | 43 |
* Para la carga en background |
22 | 44 |
*/ |
45 |
/** |
|
46 |
* To work in background |
|
47 |
*/ |
|
23 | 48 |
public void getDataCollection(FeatureType type, String filter, String order,Observer observer) throws DataException; |
24 | 49 |
public void getDataCollection(String[] fields, String filter, String order,Observer observer) throws DataException; |
25 | 50 |
public void getDataCollection(Observer observer); |
... | ... | |
74 | 99 |
public void disableNotifications(); |
75 | 100 |
public void enableNotifications(); |
76 | 101 |
|
77 |
//Bloqueo en edici?n
|
|
102 |
//Bloqueo en edicin |
|
78 | 103 |
public boolean isLocked(FeatureID id); |
79 | 104 |
public boolean lock(FeatureID id); |
80 | 105 |
|
Also available in: Unified diff