root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / EditableFeatureAttributeDescriptor.java @ 38533
History | View | Annotate | Download (4.88 KB)
1 | 24496 | jmvivo | package org.gvsig.fmap.dal.feature; |
---|---|---|---|
2 | 23754 | jjdelcerro | |
3 | 26717 | jmvivo | import org.cresques.cts.IProjection; |
4 | 37297 | jpiera | |
5 | 24663 | jiyarza | import org.gvsig.fmap.dal.DataTypes; |
6 | 24505 | jmvivo | import org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeIntegrityException; |
7 | 37328 | cordinyana | import org.gvsig.fmap.geom.type.GeometryType; |
8 | 23754 | jjdelcerro | import org.gvsig.tools.evaluator.Evaluator; |
9 | |||
10 | 24663 | jiyarza | /**
|
11 | 27439 | jmvivo | * This interface represents a FeatureAttributeDescriptor in editable state.
|
12 | * To edit a FeatureAttributeDescriptor you have to obtain its instance of
|
||
13 | 24663 | jiyarza | * EditableFeatureAttributeDescriptor and then perform editing operations on it.
|
14 | 27439 | jmvivo | *
|
15 | * Once you have completed the editing you can save the changes to the original
|
||
16 | 24663 | jiyarza | * FeatureAttributeDescriptor. This is the only way to edit a FeatureAttributeDescriptor.
|
17 | */
|
||
18 | 23754 | jjdelcerro | public interface EditableFeatureAttributeDescriptor extends |
19 | FeatureAttributeDescriptor { |
||
20 | |||
21 | /**
|
||
22 | * Checks attribute integrity
|
||
23 | */
|
||
24 | 23772 | jjdelcerro | void checkIntegrity() throws AttributeFeatureTypeIntegrityException; |
25 | 23754 | jjdelcerro | |
26 | 24663 | jiyarza | /**
|
27 | * Sets the name
|
||
28 | 27439 | jmvivo | * @param
|
29 | 24663 | jiyarza | * name to set
|
30 | * @return this
|
||
31 | */
|
||
32 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setName(String name); |
33 | |||
34 | 24663 | jiyarza | /**
|
35 | * Sets the data type
|
||
36 | 27439 | jmvivo | * @param
|
37 | 24663 | jiyarza | * type one of the constants defined in {@link DataTypes}
|
38 | * @return this
|
||
39 | */
|
||
40 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setDataType(int type); |
41 | |||
42 | 24663 | jiyarza | /**
|
43 | * Sets the size
|
||
44 | 27439 | jmvivo | * @param size
|
45 | 24663 | jiyarza | * a size of type int
|
46 | * @return this
|
||
47 | 27439 | jmvivo | *
|
48 | 24663 | jiyarza | */
|
49 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setSize(int size); |
50 | |||
51 | 24663 | jiyarza | /**
|
52 | * Sets the precision
|
||
53 | 27439 | jmvivo | *
|
54 | * @param
|
||
55 | 24663 | jiyarza | * precision of type int
|
56 | 27439 | jmvivo | *
|
57 | 24663 | jiyarza | * @return this
|
58 | */
|
||
59 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setPrecision(int precision); |
60 | |||
61 | 24663 | jiyarza | /**
|
62 | * Sets the Class to which the related FeatureAttribute can be cast
|
||
63 | 27439 | jmvivo | *
|
64 | * @param theClass
|
||
65 | 24663 | jiyarza | * Class to which the related FeatureAttribute can be cast
|
66 | * @return this
|
||
67 | */
|
||
68 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setObjectClass(Class theClass); |
69 | |||
70 | 24663 | jiyarza | /**
|
71 | * Sets the number of minimum occurrences
|
||
72 | 27439 | jmvivo | *
|
73 | 24663 | jiyarza | * @param minimumOccurrences
|
74 | 27439 | jmvivo | *
|
75 | 24663 | jiyarza | * @return this
|
76 | */
|
||
77 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setMinimumOccurrences(
|
78 | int minimumOccurrences);
|
||
79 | |||
80 | 24663 | jiyarza | /**
|
81 | * Sets the maximum number of occurrences
|
||
82 | 27439 | jmvivo | *
|
83 | 24663 | jiyarza | * @param maximumOccurrences
|
84 | 27439 | jmvivo | *
|
85 | 24663 | jiyarza | * @return
|
86 | */
|
||
87 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setMaximumOccurrences(
|
88 | int maximumOccurrences);
|
||
89 | |||
90 | 24663 | jiyarza | /**
|
91 | * Sets whether the related FeatureAttribute is part of the FeatureType's primary key
|
||
92 | 27439 | jmvivo | *
|
93 | 24663 | jiyarza | * @param isPrimaryKey
|
94 | * true if is part of the primary key
|
||
95 | * @return this
|
||
96 | */
|
||
97 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setIsPrimaryKey(
|
98 | boolean isPrimaryKey);
|
||
99 | |||
100 | 24663 | jiyarza | /**
|
101 | * Sets the expression evaluator that the FeatureAttribute will use
|
||
102 | 27439 | jmvivo | * @param evaluator
|
103 | 24663 | jiyarza | * an implementation of DAL's Evaluator interface
|
104 | * @return this
|
||
105 | */
|
||
106 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator);
|
107 | |||
108 | 24663 | jiyarza | /**
|
109 | * Sets whether the related FeatureAttribute is read only
|
||
110 | 27439 | jmvivo | *
|
111 | 24663 | jiyarza | * @param isReadOnly
|
112 | 27439 | jmvivo | *
|
113 | 24663 | jiyarza | * @return this
|
114 | */
|
||
115 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly); |
116 | |||
117 | 24663 | jiyarza | /**
|
118 | * Sets whether the related FeatureAttribute can have a null value
|
||
119 | 27439 | jmvivo | *
|
120 | 24663 | jiyarza | * @param allowNull
|
121 | * a boolean value determining whether the FeatureAttribute can be null
|
||
122 | 27439 | jmvivo | *
|
123 | 24663 | jiyarza | * @return this
|
124 | */
|
||
125 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull); |
126 | |||
127 | 24663 | jiyarza | /**
|
128 | * Sets the SRS.
|
||
129 | 27439 | jmvivo | *
|
130 | 24663 | jiyarza | * @param SRS
|
131 | 27439 | jmvivo | *
|
132 | 24663 | jiyarza | * @return
|
133 | */
|
||
134 | 26717 | jmvivo | public EditableFeatureAttributeDescriptor setSRS(IProjection SRS);
|
135 | 23754 | jjdelcerro | |
136 | 37328 | cordinyana | /**
|
137 | * Sets the geometry type
|
||
138 | *
|
||
139 | * @param geometryType
|
||
140 | *
|
||
141 | * @return this
|
||
142 | * @deprecated use {@link #setGeometryType(GeometryType)} instead
|
||
143 | */
|
||
144 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setGeometryType(int geometryType); |
145 | |||
146 | 27981 | jmvivo | |
147 | 37328 | cordinyana | /**
|
148 | * Sets the geometry subtype
|
||
149 | *
|
||
150 | * @param geometrySubType
|
||
151 | *
|
||
152 | * @return this
|
||
153 | * @deprecated use {@link #setGeometryType(GeometryType)} instead
|
||
154 | */
|
||
155 | 27981 | jmvivo | public EditableFeatureAttributeDescriptor setGeometrySubType(
|
156 | int geometrySubType);
|
||
157 | |||
158 | 37328 | cordinyana | /**
|
159 | * Sets the geometry type
|
||
160 | *
|
||
161 | * @param geometryType
|
||
162 | *
|
||
163 | * @return this
|
||
164 | */
|
||
165 | public EditableFeatureAttributeDescriptor setGeometryType(
|
||
166 | GeometryType geometryType); |
||
167 | |||
168 | /**
|
||
169 | * Sets the default value
|
||
170 | *
|
||
171 | * @param defaultValue
|
||
172 | *
|
||
173 | * @return this
|
||
174 | */
|
||
175 | 23754 | jjdelcerro | public EditableFeatureAttributeDescriptor setDefaultValue(
|
176 | Object defaultValue);
|
||
177 | 30187 | jcarrasco | |
178 | 27439 | jmvivo | /**
|
179 | * Sets additional information of the attribute
|
||
180 | 27550 | jmvivo | * @return TODO
|
181 | 27439 | jmvivo | *
|
182 | 27550 | jmvivo | *
|
183 | 27439 | jmvivo | */
|
184 | 27550 | jmvivo | public EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName, Object value); |
185 | 27439 | jmvivo | |
186 | 27550 | jmvivo | /**
|
187 | * Sets whether the related FeatureAttribute is part of the FeatureType's
|
||
188 | * primary key
|
||
189 | *
|
||
190 | * @param isPrimaryKey
|
||
191 | * true if is part of the primary key
|
||
192 | * @return this
|
||
193 | */
|
||
194 | public EditableFeatureAttributeDescriptor setIsAutomatic(
|
||
195 | boolean isAutomatic);
|
||
196 | |||
197 | 37297 | jpiera | /**
|
198 | * Sets is the attribute is a temporal attribute.
|
||
199 | *
|
||
200 | * @param isTime
|
||
201 | * <code>true</code> if the attribute is temporal
|
||
202 | * @return
|
||
203 | * this
|
||
204 | */
|
||
205 | public EditableFeatureAttributeDescriptor setIsTime(boolean isTime); |
||
206 | 23754 | jjdelcerro | } |