svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / data / vectorial / FeatureType.java @ 21511
History | View | Annotate | Download (1.6 KB)
1 |
package org.gvsig.data.vectorial; |
---|---|
2 |
|
3 |
import java.text.DateFormat; |
4 |
import java.util.List; |
5 |
|
6 |
import org.gvsig.data.DataException; |
7 |
import org.gvsig.data.InitializeException; |
8 |
|
9 |
|
10 |
public interface FeatureType extends List { |
11 |
|
12 |
|
13 |
public void setDefaultGeometry(String name); |
14 |
public String getDefaultGeometry(); |
15 |
|
16 |
public Feature create(FeatureStore store) throws InitializeException; |
17 |
|
18 |
public FeatureAttributeDescriptor createNewAttributeDescriptor();
|
19 |
|
20 |
public void addRule(FeatureRule rule); |
21 |
public void clearRules(); |
22 |
public void validateFeatureModifiction(Feature feature,FeatureStore featureStore); |
23 |
public void validateFeatureEnd(Feature feature,FeatureStore featureStore); |
24 |
public void validateFeature(Feature feature,FeatureStore featureStore); |
25 |
|
26 |
public List getAllSRS(); |
27 |
public void setAllSRS(List allSRS); |
28 |
public String getDefaultSRS(); |
29 |
public void setDefaultSRS(String defaultSRS); |
30 |
|
31 |
public int[] getGeometryTypes(); |
32 |
public FeatureType cloneFeatureType();
|
33 |
|
34 |
public DateFormat getDateFormat(); |
35 |
public void setDateFormat(DateFormat dateFormat); |
36 |
public void setGeometryTypes(int[] geometryTypes); |
37 |
//FIXME si tiene que haber uno o pueden haber varios.
|
38 |
public String[] getFieldsId(); |
39 |
public String[] getFields(); |
40 |
public void setFieldsId(String[] fieldsId) throws DataException; |
41 |
|
42 |
public int getFieldIndex(String name); |
43 |
|
44 |
public FeatureAttributeDescriptor get(String name); |
45 |
|
46 |
public FeatureAttributeDescriptor getByOrder(int i); |
47 |
public FeatureType getSubFeatureType(String[] fields) throws DataException; |
48 |
public boolean isSubtypeOf(FeatureType featureType); |
49 |
|
50 |
} |