gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / javadocs / scripting / dal / Feature.java @ 462
History | View | Annotate | Download (1.56 KB)
1 |
|
---|---|
2 |
package scripting.dal; |
3 |
|
4 |
|
5 |
import org.gvsig.fmap.geom.Geometry; |
6 |
|
7 |
|
8 |
public interface EditableFeature extends org.gvsig.fmap.dal.feature.Feature { |
9 |
|
10 |
/**
|
11 |
* Gets the value of the default attribute to store the geometry.
|
12 |
*
|
13 |
*/
|
14 |
public Geometry geometry() ;
|
15 |
|
16 |
|
17 |
/**
|
18 |
* Create and return a dict and fill it with the name/values of the attributes.
|
19 |
*
|
20 |
*/
|
21 |
public dict getValues() ;
|
22 |
|
23 |
/**
|
24 |
* Enable the edit mode in this feature.
|
25 |
*
|
26 |
* @deprecated can't use this method, is not jet implemented. Use getEditable instead.
|
27 |
*/
|
28 |
public void edit() ; |
29 |
|
30 |
/**
|
31 |
* Gets the value of the attribute name of the feature.
|
32 |
*
|
33 |
* This method allow to treat a Feature as a dict.
|
34 |
*
|
35 |
* @param name of the atttribute to get
|
36 |
*
|
37 |
*/
|
38 |
public void __getitem__(String name) ; |
39 |
|
40 |
/**
|
41 |
* Returns the java object associated to this python object.
|
42 |
* With the current implementation this is not necessary, don't
|
43 |
* use now python wrappers for java objects.
|
44 |
*
|
45 |
* @deprecated this method now return self alwais.
|
46 |
*
|
47 |
*/
|
48 |
public void __call__() ; |
49 |
|
50 |
|
51 |
/**
|
52 |
* Gets the number of attributes of the feature.
|
53 |
*
|
54 |
* This method allow to use "len(feature)"
|
55 |
*
|
56 |
*/
|
57 |
public void __len__() ; |
58 |
|
59 |
/**
|
60 |
* Allow to iterate ower the name/values of the attributes of the feature.
|
61 |
*
|
62 |
*/
|
63 |
public Generator iteritems() ;
|
64 |
|
65 |
/**
|
66 |
* Allow to iterate ower the values of the attributes of the feature.
|
67 |
*
|
68 |
*/
|
69 |
public Generator itervalues() ;
|
70 |
|
71 |
/**
|
72 |
* Allow to iterate ower the names of the attributes of the feature.
|
73 |
*
|
74 |
*/
|
75 |
public Generator iterkeys() ;
|
76 |
|
77 |
} |