Revision 35499
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DataManager.java | ||
---|---|---|
32 | 32 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
33 | 33 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
34 | 34 |
import org.gvsig.fmap.dal.feature.Feature; |
35 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
|
35 | 36 |
import org.gvsig.fmap.dal.feature.FeatureAttributeGetter; |
36 | 37 |
import org.gvsig.fmap.dal.feature.FeatureIndex; |
37 | 38 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
... | ... | |
373 | 374 |
FeatureStore featureStore, FeatureQuery featureQuery, int pageSize) |
374 | 375 |
throws BaseException; |
375 | 376 |
|
377 |
/** |
|
378 |
* Registers a class that can be used to create a {@link FeatureAttributeGetter} |
|
379 |
* and associate it to a {@link FeatureAttributeDescriptor}. |
|
380 |
* |
|
381 |
* @param name |
|
382 |
* the name used to register the class. |
|
383 |
* @param clazz |
|
384 |
* it has to be an instance of {@link FeatureAttributeDescriptor} |
|
385 |
*/ |
|
376 | 386 |
public void registerFeatureAttributeGetter(String name, Class clazz); |
377 | 387 |
|
388 |
/** |
|
389 |
* Creates a {@link FeatureAttributeGetter} by name. If there is not any class |
|
390 |
* registered with this name or if there is any error an exception is thrown. |
|
391 |
* |
|
392 |
* @param name |
|
393 |
* the name that was used to register the class |
|
394 |
* @return |
|
395 |
* a {@link FeatureAttributeGetter} |
|
396 |
* @throws InitializeException |
|
397 |
* if there is any error creating the object |
|
398 |
*/ |
|
378 | 399 |
public FeatureAttributeGetter createFeatureAttributeGetter(String name) throws InitializeException; |
379 | 400 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/EditableFeatureAttributeDescriptor.java | ||
---|---|---|
181 | 181 |
public EditableFeatureAttributeDescriptor setIsAutomatic( |
182 | 182 |
boolean isAutomatic); |
183 | 183 |
|
184 |
/** |
|
185 |
* Sets is the attribute is a temporal attribute. |
|
186 |
* |
|
187 |
* @param isTime |
|
188 |
* <code>true</code> if the attribute is temporal |
|
189 |
* @return |
|
190 |
* this |
|
191 |
*/ |
|
184 | 192 |
public EditableFeatureAttributeDescriptor setIsTime(boolean isTime); |
185 |
|
|
186 | 193 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureAttributeDescriptor.java | ||
---|---|---|
153 | 153 |
public Object getAdditionalInfo(String infoName); |
154 | 154 |
|
155 | 155 |
/** |
156 |
* Reaturns if value is created automaticaly by the source
|
|
156 |
* Returns if value is created automatically by the source
|
|
157 | 157 |
*/ |
158 | 158 |
public boolean isAutomatic(); |
159 | 159 |
|
160 |
/** |
|
161 |
* Gets if the attribute is a temporal attribute. |
|
162 |
* @return |
|
163 |
* <code>true</code> if is a temporal attribute |
|
164 |
*/ |
|
160 | 165 |
public boolean isTime(); |
161 | 166 |
|
162 |
|
|
167 |
/** |
|
168 |
* Gets if the attribute has a {@link FeatureAttributeGetter}. |
|
169 |
* @return |
|
170 |
* a FeatureAttributeGetter or null. |
|
171 |
*/ |
|
163 | 172 |
public FeatureAttributeGetter getFeatureAttributeGetter(); |
164 | 173 |
|
174 |
/** |
|
175 |
* Sets the {@link FeatureAttributeGetter} that is used to update the |
|
176 |
* presentation of a field. |
|
177 |
* @param featureAttributeGetter |
|
178 |
* the {@link FeatureAttributeGetter} to set. |
|
179 |
*/ |
|
165 | 180 |
public void setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter); |
166 | 181 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/EditableFeature.java | ||
---|---|---|
259 | 259 |
*/ |
260 | 260 |
public void copyFrom(Feature source); |
261 | 261 |
|
262 |
/** |
|
263 |
* Sets the value of an attribute of type instant, given its name |
|
264 |
* @param name |
|
265 |
* attribute's name |
|
266 |
* @param value |
|
267 |
* value to set |
|
268 |
*/ |
|
262 | 269 |
public void setInstant(String name, Instant value); |
263 | 270 |
|
271 |
/** |
|
272 |
* Sets the value of an attribute of type instant, given its index |
|
273 |
* @param index |
|
274 |
* attribute's index |
|
275 |
* @param value |
|
276 |
* value to set |
|
277 |
*/ |
|
264 | 278 |
public void setInstant(int index, Instant value); |
265 | 279 |
|
280 |
/** |
|
281 |
* Sets the value of an attribute of type interval, given its name |
|
282 |
* @param name |
|
283 |
* attribute's name |
|
284 |
* @param value |
|
285 |
* value to set |
|
286 |
*/ |
|
266 | 287 |
public void setInterval(String name, Interval value); |
267 | 288 |
|
289 |
/** |
|
290 |
* Sets the value of an attribute of type interval, given its index |
|
291 |
* @param index |
|
292 |
* attribute's index |
|
293 |
* @param value |
|
294 |
* value to set |
|
295 |
*/ |
|
268 | 296 |
public void setInterval(int index, Interval value); |
269 |
|
|
270 | 297 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/Feature.java | ||
---|---|---|
383 | 383 |
*/ |
384 | 384 |
public List getSRSs(); |
385 | 385 |
|
386 |
/** |
|
387 |
* Returns the instant value of an attribute given its position. |
|
388 |
* |
|
389 |
* @param index |
|
390 |
* position of the attribute |
|
391 |
* @return |
|
392 |
* value of the specified attribute |
|
393 |
*/ |
|
386 | 394 |
public Instant getInstant(int index); |
387 | 395 |
|
396 |
/** |
|
397 |
* Returns the instant value of an attribute given its name. |
|
398 |
* |
|
399 |
* @param name |
|
400 |
* a string containing the name of the attribute |
|
401 |
* @return |
|
402 |
* value of the specified attribute |
|
403 |
*/ |
|
388 | 404 |
public Instant getInstant(String name); |
389 | 405 |
|
406 |
/** |
|
407 |
* Returns the interval value of an attribute given its position. |
|
408 |
* |
|
409 |
* @param index |
|
410 |
* position of the attribute |
|
411 |
* @return |
|
412 |
* value of the specified attribute |
|
413 |
*/ |
|
390 | 414 |
public Interval getInterval(int index); |
391 | 415 |
|
416 |
/** |
|
417 |
* Returns the interval value of an attribute given its name. |
|
418 |
* |
|
419 |
* @param name |
|
420 |
* a string containing the name of the attribute |
|
421 |
* @return |
|
422 |
* value of the specified attribute |
|
423 |
*/ |
|
392 | 424 |
public Interval getInterval(String name); |
393 | 425 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/EditableFeatureType.java | ||
---|---|---|
127 | 127 |
*/ |
128 | 128 |
public void setHasOID(boolean hasOID); |
129 | 129 |
|
130 |
/** |
|
131 |
* Sets the default time attribute name |
|
132 |
* |
|
133 |
* @param name |
|
134 |
* string containing the default time attribute name |
|
135 |
*/ |
|
130 | 136 |
public void setDefaultTimeAttributeName(String name); |
131 | 137 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureType.java | ||
---|---|---|
257 | 257 |
*/ |
258 | 258 |
public FeatureAttributeDescriptor getDefaultGeometryAttribute(); |
259 | 259 |
|
260 |
/** |
|
261 |
* Returns the default time FeatureAttributeDescriptor. Return null if |
|
262 |
* it's not set. |
|
263 |
* |
|
264 |
* @return |
|
265 |
* the default time attribute |
|
266 |
*/ |
|
260 | 267 |
public FeatureAttributeDescriptor getDefaultTimeAttribute(); |
261 | 268 |
|
262 | 269 |
|
Also available in: Unified diff