root / branches / v2_0_0_prep / libraries / libFMap_mapcontext / src-test / org / gvsig / fmap / mapcontext / persistence / DummyFileFeatureStore.java @ 37298
History | View | Annotate | Download (31.7 KB)
1 |
package org.gvsig.fmap.mapcontext.persistence; |
---|---|
2 |
|
3 |
import java.text.DateFormat; |
4 |
import java.util.Collection; |
5 |
import java.util.Iterator; |
6 |
import java.util.List; |
7 |
import java.util.Set; |
8 |
|
9 |
import org.cresques.cts.IProjection; |
10 |
|
11 |
import org.gvsig.fmap.dal.DataQuery; |
12 |
import org.gvsig.fmap.dal.DataServerExplorer; |
13 |
import org.gvsig.fmap.dal.DataSet; |
14 |
import org.gvsig.fmap.dal.DataStoreParameters; |
15 |
import org.gvsig.fmap.dal.exception.DataException; |
16 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
17 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
18 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
19 |
import org.gvsig.fmap.dal.feature.Feature; |
20 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
21 |
import org.gvsig.fmap.dal.feature.FeatureAttributeGetter; |
22 |
import org.gvsig.fmap.dal.feature.FeatureCache; |
23 |
import org.gvsig.fmap.dal.feature.FeatureIndex; |
24 |
import org.gvsig.fmap.dal.feature.FeatureIndexes; |
25 |
import org.gvsig.fmap.dal.feature.FeatureLocks; |
26 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
27 |
import org.gvsig.fmap.dal.feature.FeatureReference; |
28 |
import org.gvsig.fmap.dal.feature.FeatureRules; |
29 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
30 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
31 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
32 |
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms; |
33 |
import org.gvsig.fmap.dal.feature.FeatureType; |
34 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
35 |
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
36 |
import org.gvsig.fmap.geom.Geometry; |
37 |
import org.gvsig.fmap.geom.primitive.Envelope; |
38 |
import org.gvsig.timesupport.Interval; |
39 |
import org.gvsig.tools.ToolsLocator; |
40 |
import org.gvsig.tools.dataTypes.CoercionException; |
41 |
import org.gvsig.tools.dataTypes.DataType; |
42 |
import org.gvsig.tools.dynobject.DynClass; |
43 |
import org.gvsig.tools.dynobject.DynField; |
44 |
import org.gvsig.tools.dynobject.DynMethod; |
45 |
import org.gvsig.tools.dynobject.DynObject; |
46 |
import org.gvsig.tools.dynobject.DynObjectValueItem; |
47 |
import org.gvsig.tools.dynobject.DynStruct; |
48 |
import org.gvsig.tools.dynobject.exception.DynFieldIsNotAContainerException; |
49 |
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
50 |
import org.gvsig.tools.dynobject.exception.DynFieldValidateException; |
51 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
52 |
import org.gvsig.tools.dynobject.exception.DynObjectValidateException; |
53 |
import org.gvsig.tools.evaluator.Evaluator; |
54 |
import org.gvsig.tools.exception.BaseException; |
55 |
import org.gvsig.tools.observer.Observer; |
56 |
import org.gvsig.tools.persistence.PersistenceManager; |
57 |
import org.gvsig.tools.persistence.PersistentState; |
58 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
59 |
import org.gvsig.tools.undo.RedoException; |
60 |
import org.gvsig.tools.undo.UndoException; |
61 |
import org.gvsig.tools.visitor.Visitor; |
62 |
|
63 |
public class DummyFileFeatureStore implements FeatureStore { |
64 |
|
65 |
public static class DummyFeatureAttributeDescriptor implements |
66 |
FeatureAttributeDescriptor { |
67 |
|
68 |
public boolean allowNull() { |
69 |
// TODO Auto-generated method stub
|
70 |
return false; |
71 |
} |
72 |
|
73 |
public Object getAdditionalInfo(String infoName) { |
74 |
// TODO Auto-generated method stub
|
75 |
return null; |
76 |
} |
77 |
|
78 |
public FeatureAttributeDescriptor getCopy() {
|
79 |
// TODO Auto-generated method stub
|
80 |
return null; |
81 |
} |
82 |
|
83 |
public DataType getDataType() {
|
84 |
// TODO Auto-generated method stub
|
85 |
return null; |
86 |
} |
87 |
|
88 |
public String getDataTypeName() { |
89 |
// TODO Auto-generated method stub
|
90 |
return null; |
91 |
} |
92 |
|
93 |
public DateFormat getDateFormat() { |
94 |
// TODO Auto-generated method stub
|
95 |
return null; |
96 |
} |
97 |
|
98 |
public Object getDefaultValue() { |
99 |
// TODO Auto-generated method stub
|
100 |
return null; |
101 |
} |
102 |
|
103 |
public Evaluator getEvaluator() {
|
104 |
// TODO Auto-generated method stub
|
105 |
return null; |
106 |
} |
107 |
|
108 |
public int getGeometrySubType() { |
109 |
// TODO Auto-generated method stub
|
110 |
return 0; |
111 |
} |
112 |
|
113 |
public int getGeometryType() { |
114 |
return Geometry.TYPES.POINT;
|
115 |
} |
116 |
|
117 |
public int getIndex() { |
118 |
// TODO Auto-generated method stub
|
119 |
return 0; |
120 |
} |
121 |
|
122 |
public int getMaximumOccurrences() { |
123 |
// TODO Auto-generated method stub
|
124 |
return 0; |
125 |
} |
126 |
|
127 |
public int getMinimumOccurrences() { |
128 |
// TODO Auto-generated method stub
|
129 |
return 0; |
130 |
} |
131 |
|
132 |
public String getName() { |
133 |
// TODO Auto-generated method stub
|
134 |
return null; |
135 |
} |
136 |
|
137 |
public Class getObjectClass() { |
138 |
// TODO Auto-generated method stub
|
139 |
return null; |
140 |
} |
141 |
|
142 |
public int getPrecision() { |
143 |
// TODO Auto-generated method stub
|
144 |
return 0; |
145 |
} |
146 |
|
147 |
public IProjection getSRS() {
|
148 |
// TODO Auto-generated method stub
|
149 |
return null; |
150 |
} |
151 |
|
152 |
public int getSize() { |
153 |
// TODO Auto-generated method stub
|
154 |
return 0; |
155 |
} |
156 |
|
157 |
public int getType() { |
158 |
// TODO Auto-generated method stub
|
159 |
return 0; |
160 |
} |
161 |
|
162 |
public boolean isAutomatic() { |
163 |
// TODO Auto-generated method stub
|
164 |
return false; |
165 |
} |
166 |
|
167 |
public boolean isPrimaryKey() { |
168 |
// TODO Auto-generated method stub
|
169 |
return false; |
170 |
} |
171 |
|
172 |
public boolean isReadOnly() { |
173 |
// TODO Auto-generated method stub
|
174 |
return false; |
175 |
} |
176 |
|
177 |
public String getSubtype() { |
178 |
// TODO Auto-generated method stub
|
179 |
return null; |
180 |
} |
181 |
|
182 |
public int getTheTypeOfAvailableValues() { |
183 |
// TODO Auto-generated method stub
|
184 |
return 0; |
185 |
} |
186 |
|
187 |
public boolean isContainer() { |
188 |
// TODO Auto-generated method stub
|
189 |
return false; |
190 |
} |
191 |
|
192 |
public boolean isHidden() { |
193 |
// TODO Auto-generated method stub
|
194 |
return false; |
195 |
} |
196 |
|
197 |
public boolean isMandatory() { |
198 |
// TODO Auto-generated method stub
|
199 |
return false; |
200 |
} |
201 |
|
202 |
public boolean isPersistent() { |
203 |
// TODO Auto-generated method stub
|
204 |
return false; |
205 |
} |
206 |
|
207 |
public DynField setAvailableValues(DynObjectValueItem[] values) { |
208 |
// TODO Auto-generated method stub
|
209 |
return null; |
210 |
} |
211 |
|
212 |
public DynField setAvailableValues(List values) { |
213 |
// TODO Auto-generated method stub
|
214 |
return null; |
215 |
} |
216 |
|
217 |
public DynField setClassOfItems(Class theClass) |
218 |
throws DynFieldIsNotAContainerException {
|
219 |
// TODO Auto-generated method stub
|
220 |
return null; |
221 |
} |
222 |
|
223 |
public DynField setClassOfValue(Class theClass) |
224 |
throws DynFieldIsNotAContainerException {
|
225 |
// TODO Auto-generated method stub
|
226 |
return null; |
227 |
} |
228 |
|
229 |
public DynField setDefaultDynValue(Object defaultValue) { |
230 |
// TODO Auto-generated method stub
|
231 |
return null; |
232 |
} |
233 |
|
234 |
public DynField setDefaultFieldValue(Object defaultValue) { |
235 |
// TODO Auto-generated method stub
|
236 |
return null; |
237 |
} |
238 |
|
239 |
public DynField setDescription(String description) { |
240 |
// TODO Auto-generated method stub
|
241 |
return null; |
242 |
} |
243 |
|
244 |
public DynField setElementsType(int type) |
245 |
throws DynFieldIsNotAContainerException {
|
246 |
// TODO Auto-generated method stub
|
247 |
return null; |
248 |
} |
249 |
|
250 |
public DynField setElementsType(DynStruct type)
|
251 |
throws DynFieldIsNotAContainerException {
|
252 |
// TODO Auto-generated method stub
|
253 |
return null; |
254 |
} |
255 |
|
256 |
public DynField setGroup(String groupName) { |
257 |
// TODO Auto-generated method stub
|
258 |
return null; |
259 |
} |
260 |
|
261 |
public DynField setHidden(boolean hidden) { |
262 |
// TODO Auto-generated method stub
|
263 |
return null; |
264 |
} |
265 |
|
266 |
public DynField setMandatory(boolean mandatory) { |
267 |
// TODO Auto-generated method stub
|
268 |
return null; |
269 |
} |
270 |
|
271 |
public DynField setMaxValue(Object maxValue) { |
272 |
// TODO Auto-generated method stub
|
273 |
return null; |
274 |
} |
275 |
|
276 |
public DynField setMinValue(Object minValue) { |
277 |
// TODO Auto-generated method stub
|
278 |
return null; |
279 |
} |
280 |
|
281 |
public DynField setOrder(int order) { |
282 |
// TODO Auto-generated method stub
|
283 |
return null; |
284 |
} |
285 |
|
286 |
public DynField setPersistent(boolean persistent) { |
287 |
// TODO Auto-generated method stub
|
288 |
return null; |
289 |
} |
290 |
|
291 |
public DynField setReadOnly(boolean isReadOnly) { |
292 |
// TODO Auto-generated method stub
|
293 |
return null; |
294 |
} |
295 |
|
296 |
public DynField setSubtype(String subtype) { |
297 |
// TODO Auto-generated method stub
|
298 |
return null; |
299 |
} |
300 |
|
301 |
public DynField setTheTypeOfAvailableValues(int type) { |
302 |
// TODO Auto-generated method stub
|
303 |
return null; |
304 |
} |
305 |
|
306 |
public DynField setType(int type) { |
307 |
// TODO Auto-generated method stub
|
308 |
return null; |
309 |
} |
310 |
|
311 |
public DynField setType(DataType type) {
|
312 |
// TODO Auto-generated method stub
|
313 |
return null; |
314 |
} |
315 |
|
316 |
public void validate(Object value) throws DynFieldValidateException { |
317 |
// TODO Auto-generated method stub
|
318 |
|
319 |
} |
320 |
|
321 |
public Object coerce(Object value) throws CoercionException { |
322 |
// TODO Auto-generated method stub
|
323 |
return null; |
324 |
} |
325 |
|
326 |
public DynObjectValueItem[] getAvailableValues() { |
327 |
// TODO Auto-generated method stub
|
328 |
return null; |
329 |
} |
330 |
|
331 |
public Class getClassOfItems() { |
332 |
// TODO Auto-generated method stub
|
333 |
return null; |
334 |
} |
335 |
|
336 |
public Class getClassOfValue() { |
337 |
// TODO Auto-generated method stub
|
338 |
return null; |
339 |
} |
340 |
|
341 |
public String getDescription() { |
342 |
// TODO Auto-generated method stub
|
343 |
return null; |
344 |
} |
345 |
|
346 |
public DynField getElementsType() {
|
347 |
// TODO Auto-generated method stub
|
348 |
return null; |
349 |
} |
350 |
|
351 |
public String getGroup() { |
352 |
// TODO Auto-generated method stub
|
353 |
return null; |
354 |
} |
355 |
|
356 |
public Object getMaxValue() { |
357 |
// TODO Auto-generated method stub
|
358 |
return null; |
359 |
} |
360 |
|
361 |
public Object getMinValue() { |
362 |
// TODO Auto-generated method stub
|
363 |
return null; |
364 |
} |
365 |
|
366 |
public int getOder() { |
367 |
// TODO Auto-generated method stub
|
368 |
return 0; |
369 |
} |
370 |
|
371 |
public boolean isTime() { |
372 |
// TODO Auto-generated method stub
|
373 |
return false; |
374 |
} |
375 |
|
376 |
public FeatureAttributeGetter getFeatureAttributeGetter() {
|
377 |
// TODO Auto-generated method stub
|
378 |
return null; |
379 |
} |
380 |
|
381 |
public void setFeatureAttributeGetter( |
382 |
FeatureAttributeGetter featureAttributeGetter) { |
383 |
// TODO Auto-generated method stub
|
384 |
|
385 |
} |
386 |
|
387 |
} |
388 |
|
389 |
public static class DummyFeatureType implements FeatureType { |
390 |
|
391 |
public boolean allowAutomaticValues() { |
392 |
// TODO Auto-generated method stub
|
393 |
return false; |
394 |
} |
395 |
|
396 |
public Object get(String name) { |
397 |
// TODO Auto-generated method stub
|
398 |
return null; |
399 |
} |
400 |
|
401 |
public Object get(int index) { |
402 |
// TODO Auto-generated method stub
|
403 |
return null; |
404 |
} |
405 |
|
406 |
public FeatureAttributeDescriptor getAttributeDescriptor(String name) { |
407 |
// TODO Auto-generated method stub
|
408 |
return null; |
409 |
} |
410 |
|
411 |
public FeatureAttributeDescriptor getAttributeDescriptor(int index) { |
412 |
return new DummyFeatureAttributeDescriptor(); |
413 |
} |
414 |
|
415 |
public FeatureAttributeDescriptor[] getAttributeDescriptors() { |
416 |
// TODO Auto-generated method stub
|
417 |
return null; |
418 |
} |
419 |
|
420 |
public FeatureType getCopy() {
|
421 |
// TODO Auto-generated method stub
|
422 |
return null; |
423 |
} |
424 |
|
425 |
public FeatureAttributeDescriptor getDefaultGeometryAttribute() {
|
426 |
// TODO Auto-generated method stub
|
427 |
return null; |
428 |
} |
429 |
|
430 |
public int getDefaultGeometryAttributeIndex() { |
431 |
return 0; |
432 |
} |
433 |
|
434 |
public String getDefaultGeometryAttributeName() { |
435 |
// TODO Auto-generated method stub
|
436 |
return null; |
437 |
} |
438 |
|
439 |
public IProjection getDefaultSRS() {
|
440 |
// TODO Auto-generated method stub
|
441 |
return null; |
442 |
} |
443 |
|
444 |
public EditableFeatureType getEditable() {
|
445 |
// TODO Auto-generated method stub
|
446 |
return null; |
447 |
} |
448 |
|
449 |
public String getId() { |
450 |
// TODO Auto-generated method stub
|
451 |
return null; |
452 |
} |
453 |
|
454 |
public int getIndex(String name) { |
455 |
// TODO Auto-generated method stub
|
456 |
return 0; |
457 |
} |
458 |
|
459 |
public FeatureAttributeDescriptor[] getPrimaryKey() { |
460 |
// TODO Auto-generated method stub
|
461 |
return null; |
462 |
} |
463 |
|
464 |
public FeatureRules getRules() {
|
465 |
// TODO Auto-generated method stub
|
466 |
return null; |
467 |
} |
468 |
|
469 |
public List getSRSs() { |
470 |
// TODO Auto-generated method stub
|
471 |
return null; |
472 |
} |
473 |
|
474 |
public boolean hasEvaluators() { |
475 |
// TODO Auto-generated method stub
|
476 |
return false; |
477 |
} |
478 |
|
479 |
public boolean hasOID() { |
480 |
// TODO Auto-generated method stub
|
481 |
return false; |
482 |
} |
483 |
|
484 |
public Iterator iterator() { |
485 |
// TODO Auto-generated method stub
|
486 |
return null; |
487 |
} |
488 |
|
489 |
public int size() { |
490 |
// TODO Auto-generated method stub
|
491 |
return 0; |
492 |
} |
493 |
|
494 |
public DynClass[] getSuperDynClasses() { |
495 |
// TODO Auto-generated method stub
|
496 |
return null; |
497 |
} |
498 |
|
499 |
public void removeDynMethod(String name) { |
500 |
// TODO Auto-generated method stub
|
501 |
|
502 |
} |
503 |
|
504 |
public DynField addDynField(String name) { |
505 |
// TODO Auto-generated method stub
|
506 |
return null; |
507 |
} |
508 |
|
509 |
public DynField addDynFieldArray(String name) { |
510 |
// TODO Auto-generated method stub
|
511 |
return null; |
512 |
} |
513 |
|
514 |
public DynField addDynFieldBoolean(String name) { |
515 |
// TODO Auto-generated method stub
|
516 |
return null; |
517 |
} |
518 |
|
519 |
public DynField addDynFieldChoice(String name, int type, |
520 |
Object defaultValue, DynObjectValueItem[] values, |
521 |
boolean mandatory, boolean persistent) { |
522 |
// TODO Auto-generated method stub
|
523 |
return null; |
524 |
} |
525 |
|
526 |
public DynField addDynFieldChoice(String name, int type, |
527 |
Object defaultValue, DynObjectValueItem[] values) { |
528 |
// TODO Auto-generated method stub
|
529 |
return null; |
530 |
} |
531 |
|
532 |
public DynField addDynFieldDate(String name) { |
533 |
// TODO Auto-generated method stub
|
534 |
return null; |
535 |
} |
536 |
|
537 |
public DynField addDynFieldDouble(String name) { |
538 |
// TODO Auto-generated method stub
|
539 |
return null; |
540 |
} |
541 |
|
542 |
public DynField addDynFieldFile(String name) { |
543 |
// TODO Auto-generated method stub
|
544 |
return null; |
545 |
} |
546 |
|
547 |
public DynField addDynFieldFloat(String name) { |
548 |
// TODO Auto-generated method stub
|
549 |
return null; |
550 |
} |
551 |
|
552 |
public DynField addDynFieldFolder(String name) { |
553 |
// TODO Auto-generated method stub
|
554 |
return null; |
555 |
} |
556 |
|
557 |
public DynField addDynFieldInt(String name) { |
558 |
// TODO Auto-generated method stub
|
559 |
return null; |
560 |
} |
561 |
|
562 |
public DynField addDynFieldList(String name) { |
563 |
// TODO Auto-generated method stub
|
564 |
return null; |
565 |
} |
566 |
|
567 |
public DynField addDynFieldLong(String name) { |
568 |
// TODO Auto-generated method stub
|
569 |
return null; |
570 |
} |
571 |
|
572 |
public DynField addDynFieldMap(String name) { |
573 |
// TODO Auto-generated method stub
|
574 |
return null; |
575 |
} |
576 |
|
577 |
public DynField addDynFieldObject(String name) { |
578 |
// TODO Auto-generated method stub
|
579 |
return null; |
580 |
} |
581 |
|
582 |
public DynField addDynFieldRange(String name, int type, |
583 |
Object defaultValue, Object min, Object max, boolean mandatory, |
584 |
boolean persistent) {
|
585 |
// TODO Auto-generated method stub
|
586 |
return null; |
587 |
} |
588 |
|
589 |
public DynField addDynFieldRange(String name, int type, |
590 |
Object defaultValue, Object min, Object max) { |
591 |
// TODO Auto-generated method stub
|
592 |
return null; |
593 |
} |
594 |
|
595 |
public DynField addDynFieldSet(String name) { |
596 |
// TODO Auto-generated method stub
|
597 |
return null; |
598 |
} |
599 |
|
600 |
public DynField addDynFieldSingle(String name, int type, |
601 |
Object defaultValue, boolean mandatory, boolean persistent) { |
602 |
// TODO Auto-generated method stub
|
603 |
return null; |
604 |
} |
605 |
|
606 |
public DynField addDynFieldSingle(String name, int type, |
607 |
Object defaultValue) {
|
608 |
// TODO Auto-generated method stub
|
609 |
return null; |
610 |
} |
611 |
|
612 |
public DynField addDynFieldString(String name) { |
613 |
// TODO Auto-generated method stub
|
614 |
return null; |
615 |
} |
616 |
|
617 |
public DynField addDynFieldURI(String name) { |
618 |
// TODO Auto-generated method stub
|
619 |
return null; |
620 |
} |
621 |
|
622 |
public DynField addDynFieldURL(String name) { |
623 |
// TODO Auto-generated method stub
|
624 |
return null; |
625 |
} |
626 |
|
627 |
public void extend(DynStruct struct) { |
628 |
// TODO Auto-generated method stub
|
629 |
|
630 |
} |
631 |
|
632 |
public void extend(String namespace, String structName) { |
633 |
// TODO Auto-generated method stub
|
634 |
|
635 |
} |
636 |
|
637 |
public void extend(String structName) { |
638 |
// TODO Auto-generated method stub
|
639 |
|
640 |
} |
641 |
|
642 |
public DynField getDeclaredDynField(String name) { |
643 |
// TODO Auto-generated method stub
|
644 |
return null; |
645 |
} |
646 |
|
647 |
public DynField[] getDeclaredDynFields() { |
648 |
// TODO Auto-generated method stub
|
649 |
return null; |
650 |
} |
651 |
|
652 |
public String getDescription() { |
653 |
// TODO Auto-generated method stub
|
654 |
return null; |
655 |
} |
656 |
|
657 |
public DynField getDynField(String name) { |
658 |
// TODO Auto-generated method stub
|
659 |
return null; |
660 |
} |
661 |
|
662 |
public DynField[] getDynFields() { |
663 |
// TODO Auto-generated method stub
|
664 |
return null; |
665 |
} |
666 |
|
667 |
public String getFullName() { |
668 |
// TODO Auto-generated method stub
|
669 |
return null; |
670 |
} |
671 |
|
672 |
public String getName() { |
673 |
// TODO Auto-generated method stub
|
674 |
return null; |
675 |
} |
676 |
|
677 |
public String getNamespace() { |
678 |
// TODO Auto-generated method stub
|
679 |
return null; |
680 |
} |
681 |
|
682 |
public DynStruct[] getSuperDynStructs() { |
683 |
// TODO Auto-generated method stub
|
684 |
return null; |
685 |
} |
686 |
|
687 |
public boolean isInstance(DynObject dynObject) { |
688 |
// TODO Auto-generated method stub
|
689 |
return false; |
690 |
} |
691 |
|
692 |
public DynObject newInstance() {
|
693 |
// TODO Auto-generated method stub
|
694 |
return null; |
695 |
} |
696 |
|
697 |
public void removeDynField(String name) { |
698 |
// TODO Auto-generated method stub
|
699 |
|
700 |
} |
701 |
|
702 |
public void setDescription(String description) { |
703 |
// TODO Auto-generated method stub
|
704 |
|
705 |
} |
706 |
|
707 |
public void setNamespace(String namespace) { |
708 |
// TODO Auto-generated method stub
|
709 |
|
710 |
} |
711 |
|
712 |
public void validate(DynObject object) |
713 |
throws DynObjectValidateException {
|
714 |
// TODO Auto-generated method stub
|
715 |
|
716 |
} |
717 |
|
718 |
public void addDynMethod(DynMethod dynMethod) { |
719 |
// TODO Auto-generated method stub
|
720 |
|
721 |
} |
722 |
|
723 |
public DynMethod getDeclaredDynMethod(String name) |
724 |
throws DynMethodException {
|
725 |
// TODO Auto-generated method stub
|
726 |
return null; |
727 |
} |
728 |
|
729 |
public DynMethod[] getDeclaredDynMethods() throws DynMethodException { |
730 |
// TODO Auto-generated method stub
|
731 |
return null; |
732 |
} |
733 |
|
734 |
public DynMethod getDynMethod(String name) throws DynMethodException { |
735 |
// TODO Auto-generated method stub
|
736 |
return null; |
737 |
} |
738 |
|
739 |
public DynMethod getDynMethod(int code) throws DynMethodException { |
740 |
// TODO Auto-generated method stub
|
741 |
return null; |
742 |
} |
743 |
|
744 |
public DynMethod[] getDynMethods() throws DynMethodException { |
745 |
// TODO Auto-generated method stub
|
746 |
return null; |
747 |
} |
748 |
|
749 |
public boolean isExtendable(DynStruct dynStruct) { |
750 |
// TODO Auto-generated method stub
|
751 |
return false; |
752 |
} |
753 |
|
754 |
public void extend(DynStruct[] structs) { |
755 |
// TODO Auto-generated method stub
|
756 |
|
757 |
} |
758 |
|
759 |
public void remove(DynStruct superDynStruct) { |
760 |
// TODO Auto-generated method stub
|
761 |
|
762 |
} |
763 |
|
764 |
public void removeAll(DynStruct[] superDynStruct) { |
765 |
// TODO Auto-generated method stub
|
766 |
|
767 |
} |
768 |
|
769 |
public FeatureAttributeDescriptor getDefaultTimeAttribute() {
|
770 |
// TODO Auto-generated method stub
|
771 |
return null; |
772 |
} |
773 |
|
774 |
} |
775 |
|
776 |
private String name = "[empty]"; |
777 |
|
778 |
public DummyFileFeatureStore() {
|
779 |
|
780 |
} |
781 |
|
782 |
public DummyFileFeatureStore(String id) { |
783 |
name = "[FILE FEATURE STORE - " + id + "]"; |
784 |
} |
785 |
|
786 |
public boolean allowWrite() { |
787 |
// TODO Auto-generated method stub
|
788 |
return false; |
789 |
} |
790 |
|
791 |
public void beginEditingGroup(String description) |
792 |
throws NeedEditingModeException {
|
793 |
// TODO Auto-generated method stub
|
794 |
|
795 |
} |
796 |
|
797 |
public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException { |
798 |
// TODO Auto-generated method stub
|
799 |
return false; |
800 |
} |
801 |
|
802 |
public void cancelEditing() throws DataException { |
803 |
// TODO Auto-generated method stub
|
804 |
|
805 |
} |
806 |
|
807 |
public FeatureQuery createFeatureQuery() {
|
808 |
// TODO Auto-generated method stub
|
809 |
return null; |
810 |
} |
811 |
|
812 |
public FeatureSelection createFeatureSelection() throws DataException { |
813 |
// TODO Auto-generated method stub
|
814 |
return null; |
815 |
} |
816 |
|
817 |
public FeatureIndex createIndex(FeatureType featureType,
|
818 |
String attributeName, String indexName) throws DataException { |
819 |
// TODO Auto-generated method stub
|
820 |
return null; |
821 |
} |
822 |
|
823 |
public FeatureIndex createIndex(FeatureType featureType,
|
824 |
String attributeName, String indexName, Observer observer) |
825 |
throws DataException {
|
826 |
// TODO Auto-generated method stub
|
827 |
return null; |
828 |
} |
829 |
|
830 |
public EditableFeature createNewFeature() throws DataException { |
831 |
// TODO Auto-generated method stub
|
832 |
return null; |
833 |
} |
834 |
|
835 |
public EditableFeature createNewFeature(FeatureType type,
|
836 |
Feature defaultValues) throws DataException {
|
837 |
// TODO Auto-generated method stub
|
838 |
return null; |
839 |
} |
840 |
|
841 |
public EditableFeature createNewFeature(FeatureType type,
|
842 |
boolean defaultValues) throws DataException { |
843 |
// TODO Auto-generated method stub
|
844 |
return null; |
845 |
} |
846 |
|
847 |
public EditableFeature createNewFeature(boolean defaultValues) |
848 |
throws DataException {
|
849 |
// TODO Auto-generated method stub
|
850 |
return null; |
851 |
} |
852 |
|
853 |
public void delete(Feature feature) throws DataException { |
854 |
// TODO Auto-generated method stub
|
855 |
|
856 |
} |
857 |
|
858 |
public void edit() throws DataException { |
859 |
// TODO Auto-generated method stub
|
860 |
|
861 |
} |
862 |
|
863 |
public void edit(int mode) throws DataException { |
864 |
// TODO Auto-generated method stub
|
865 |
|
866 |
} |
867 |
|
868 |
public void endEditingGroup() throws NeedEditingModeException { |
869 |
// TODO Auto-generated method stub
|
870 |
|
871 |
} |
872 |
|
873 |
public void finishEditing() throws DataException { |
874 |
// TODO Auto-generated method stub
|
875 |
|
876 |
} |
877 |
|
878 |
public FeatureType getDefaultFeatureType() throws DataException { |
879 |
return new DummyFeatureType(); |
880 |
} |
881 |
|
882 |
public Envelope getEnvelope() throws DataException { |
883 |
// TODO Auto-generated method stub
|
884 |
return null; |
885 |
} |
886 |
|
887 |
public Feature getFeatureByReference(FeatureReference reference)
|
888 |
throws DataException {
|
889 |
// TODO Auto-generated method stub
|
890 |
return null; |
891 |
} |
892 |
|
893 |
public Feature getFeatureByReference(FeatureReference reference,
|
894 |
FeatureType featureType) throws DataException {
|
895 |
// TODO Auto-generated method stub
|
896 |
return null; |
897 |
} |
898 |
|
899 |
public long getFeatureCount() throws DataException { |
900 |
// TODO Auto-generated method stub
|
901 |
return 0; |
902 |
} |
903 |
|
904 |
public FeatureSelection getFeatureSelection() throws DataException { |
905 |
// TODO Auto-generated method stub
|
906 |
return null; |
907 |
} |
908 |
|
909 |
public FeatureSet getFeatureSet() throws DataException { |
910 |
// TODO Auto-generated method stub
|
911 |
return null; |
912 |
} |
913 |
|
914 |
public FeatureSet getFeatureSet(FeatureQuery featureQuery)
|
915 |
throws DataException {
|
916 |
// TODO Auto-generated method stub
|
917 |
return null; |
918 |
} |
919 |
|
920 |
public void getFeatureSet(FeatureQuery featureQuery, Observer observer) |
921 |
throws DataException {
|
922 |
// TODO Auto-generated method stub
|
923 |
|
924 |
} |
925 |
|
926 |
public void getFeatureSet(Observer observer) throws DataException { |
927 |
// TODO Auto-generated method stub
|
928 |
|
929 |
} |
930 |
|
931 |
public FeatureType getFeatureType(String featureTypeId) |
932 |
throws DataException {
|
933 |
// TODO Auto-generated method stub
|
934 |
return null; |
935 |
} |
936 |
|
937 |
public List getFeatureTypes() throws DataException { |
938 |
// TODO Auto-generated method stub
|
939 |
return null; |
940 |
} |
941 |
|
942 |
public FeatureIndexes getIndexes() {
|
943 |
// TODO Auto-generated method stub
|
944 |
return null; |
945 |
} |
946 |
|
947 |
public FeatureLocks getLocks() throws DataException { |
948 |
// TODO Auto-generated method stub
|
949 |
return null; |
950 |
} |
951 |
|
952 |
public DataStoreParameters getParameters() {
|
953 |
// TODO Auto-generated method stub
|
954 |
return null; |
955 |
} |
956 |
|
957 |
public IProjection getSRSDefaultGeometry() throws DataException { |
958 |
// TODO Auto-generated method stub
|
959 |
return null; |
960 |
} |
961 |
|
962 |
public FeatureStoreTransforms getTransforms() {
|
963 |
// TODO Auto-generated method stub
|
964 |
return null; |
965 |
} |
966 |
|
967 |
public void insert(EditableFeature feature) throws DataException { |
968 |
// TODO Auto-generated method stub
|
969 |
|
970 |
} |
971 |
|
972 |
public boolean isAppendModeSupported() { |
973 |
// TODO Auto-generated method stub
|
974 |
return false; |
975 |
} |
976 |
|
977 |
public boolean isAppending() { |
978 |
// TODO Auto-generated method stub
|
979 |
return false; |
980 |
} |
981 |
|
982 |
public boolean isEditing() { |
983 |
// TODO Auto-generated method stub
|
984 |
return false; |
985 |
} |
986 |
|
987 |
public boolean isLocksSupported() { |
988 |
// TODO Auto-generated method stub
|
989 |
return false; |
990 |
} |
991 |
|
992 |
public void setSelection(FeatureSet selection) throws DataException { |
993 |
// TODO Auto-generated method stub
|
994 |
|
995 |
} |
996 |
|
997 |
public void update(EditableFeatureType featureType) throws DataException { |
998 |
// TODO Auto-generated method stub
|
999 |
|
1000 |
} |
1001 |
|
1002 |
public void update(EditableFeature feature) throws DataException { |
1003 |
// TODO Auto-generated method stub
|
1004 |
|
1005 |
} |
1006 |
|
1007 |
public void validateFeatures(int mode) throws DataException { |
1008 |
// TODO Auto-generated method stub
|
1009 |
|
1010 |
} |
1011 |
|
1012 |
public DataQuery createQuery() {
|
1013 |
// TODO Auto-generated method stub
|
1014 |
return null; |
1015 |
} |
1016 |
|
1017 |
public DataSet createSelection() throws DataException { |
1018 |
// TODO Auto-generated method stub
|
1019 |
return null; |
1020 |
} |
1021 |
|
1022 |
public void dispose() { |
1023 |
// TODO Auto-generated method stub
|
1024 |
|
1025 |
} |
1026 |
|
1027 |
public Iterator getChildren() { |
1028 |
// TODO Auto-generated method stub
|
1029 |
return null; |
1030 |
} |
1031 |
|
1032 |
public DataSet getDataSet() throws DataException { |
1033 |
// TODO Auto-generated method stub
|
1034 |
return null; |
1035 |
} |
1036 |
|
1037 |
public DataSet getDataSet(DataQuery dataQuery) throws DataException { |
1038 |
// TODO Auto-generated method stub
|
1039 |
return null; |
1040 |
} |
1041 |
|
1042 |
public void getDataSet(Observer observer) throws DataException { |
1043 |
// TODO Auto-generated method stub
|
1044 |
|
1045 |
} |
1046 |
|
1047 |
public void getDataSet(DataQuery dataQuery, Observer observer) |
1048 |
throws DataException {
|
1049 |
// TODO Auto-generated method stub
|
1050 |
|
1051 |
} |
1052 |
|
1053 |
public DataServerExplorer getExplorer() throws DataException, |
1054 |
ValidateDataParametersException { |
1055 |
// TODO Auto-generated method stub
|
1056 |
return null; |
1057 |
} |
1058 |
|
1059 |
public String getName() { |
1060 |
return name;
|
1061 |
} |
1062 |
|
1063 |
public DataSet getSelection() throws DataException { |
1064 |
// TODO Auto-generated method stub
|
1065 |
return null; |
1066 |
} |
1067 |
|
1068 |
public void refresh() throws DataException { |
1069 |
// TODO Auto-generated method stub
|
1070 |
|
1071 |
} |
1072 |
|
1073 |
public void setSelection(DataSet selection) throws DataException { |
1074 |
// TODO Auto-generated method stub
|
1075 |
|
1076 |
} |
1077 |
|
1078 |
public void beginComplexNotification() { |
1079 |
// TODO Auto-generated method stub
|
1080 |
|
1081 |
} |
1082 |
|
1083 |
public void disableNotifications() { |
1084 |
// TODO Auto-generated method stub
|
1085 |
|
1086 |
} |
1087 |
|
1088 |
public void enableNotifications() { |
1089 |
// TODO Auto-generated method stub
|
1090 |
|
1091 |
} |
1092 |
|
1093 |
public void endComplexNotification() { |
1094 |
// TODO Auto-generated method stub
|
1095 |
|
1096 |
} |
1097 |
|
1098 |
public void addObserver(Observer o) { |
1099 |
// TODO Auto-generated method stub
|
1100 |
|
1101 |
} |
1102 |
|
1103 |
public void deleteObserver(Observer o) { |
1104 |
// TODO Auto-generated method stub
|
1105 |
|
1106 |
} |
1107 |
|
1108 |
public void deleteObservers() { |
1109 |
// TODO Auto-generated method stub
|
1110 |
|
1111 |
} |
1112 |
|
1113 |
public void loadFromState(PersistentState state) |
1114 |
throws PersistenceException {
|
1115 |
name = state.getString("name");
|
1116 |
} |
1117 |
|
1118 |
public void saveToState(PersistentState state) throws PersistenceException { |
1119 |
state.set("name", name);
|
1120 |
} |
1121 |
|
1122 |
public Set getMetadataChildren() { |
1123 |
// TODO Auto-generated method stub
|
1124 |
return null; |
1125 |
} |
1126 |
|
1127 |
public Object getMetadataID() { |
1128 |
// TODO Auto-generated method stub
|
1129 |
return null; |
1130 |
} |
1131 |
|
1132 |
public String getMetadataName() { |
1133 |
// TODO Auto-generated method stub
|
1134 |
return null; |
1135 |
} |
1136 |
|
1137 |
public void delegate(DynObject dynObject) { |
1138 |
// TODO Auto-generated method stub
|
1139 |
|
1140 |
} |
1141 |
|
1142 |
public DynClass getDynClass() {
|
1143 |
// TODO Auto-generated method stub
|
1144 |
return null; |
1145 |
} |
1146 |
|
1147 |
public Object getDynValue(String name) throws DynFieldNotFoundException { |
1148 |
// TODO Auto-generated method stub
|
1149 |
return null; |
1150 |
} |
1151 |
|
1152 |
public boolean hasDynValue(String name) { |
1153 |
// TODO Auto-generated method stub
|
1154 |
return false; |
1155 |
} |
1156 |
|
1157 |
public void implement(DynClass dynClass) { |
1158 |
// TODO Auto-generated method stub
|
1159 |
|
1160 |
} |
1161 |
|
1162 |
public Object invokeDynMethod(String name, DynObject context) |
1163 |
throws DynMethodException {
|
1164 |
// TODO Auto-generated method stub
|
1165 |
return null; |
1166 |
} |
1167 |
|
1168 |
public Object invokeDynMethod(int code, DynObject context) |
1169 |
throws DynMethodException {
|
1170 |
// TODO Auto-generated method stub
|
1171 |
return null; |
1172 |
} |
1173 |
|
1174 |
public void setDynValue(String name, Object value) |
1175 |
throws DynFieldNotFoundException {
|
1176 |
// TODO Auto-generated method stub
|
1177 |
|
1178 |
} |
1179 |
|
1180 |
public boolean canRedo() { |
1181 |
// TODO Auto-generated method stub
|
1182 |
return false; |
1183 |
} |
1184 |
|
1185 |
public boolean canUndo() { |
1186 |
// TODO Auto-generated method stub
|
1187 |
return false; |
1188 |
} |
1189 |
|
1190 |
public List getRedoInfos() { |
1191 |
// TODO Auto-generated method stub
|
1192 |
return null; |
1193 |
} |
1194 |
|
1195 |
public List getUndoInfos() { |
1196 |
// TODO Auto-generated method stub
|
1197 |
return null; |
1198 |
} |
1199 |
|
1200 |
public void redo() throws RedoException { |
1201 |
// TODO Auto-generated method stub
|
1202 |
|
1203 |
} |
1204 |
|
1205 |
public void redo(int num) throws RedoException { |
1206 |
// TODO Auto-generated method stub
|
1207 |
|
1208 |
} |
1209 |
|
1210 |
public void undo() throws UndoException { |
1211 |
// TODO Auto-generated method stub
|
1212 |
|
1213 |
} |
1214 |
|
1215 |
public void undo(int num) throws UndoException { |
1216 |
// TODO Auto-generated method stub
|
1217 |
|
1218 |
} |
1219 |
|
1220 |
|
1221 |
|
1222 |
public static void registerPersistent() { |
1223 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
1224 |
DynStruct definition = manager.addDefinition( |
1225 |
DummyFileFeatureStore.class, |
1226 |
"DummyFileFeatureStore",
|
1227 |
"DummyFileFeatureStore Persistence definition",
|
1228 |
null,
|
1229 |
null
|
1230 |
); |
1231 |
definition.addDynFieldString("name")
|
1232 |
.setMandatory(true);
|
1233 |
} |
1234 |
|
1235 |
public void accept(Visitor visitor) throws BaseException { |
1236 |
// TODO Auto-generated method stub
|
1237 |
|
1238 |
} |
1239 |
|
1240 |
public void accept(Visitor visitor, DataQuery dataQuery) |
1241 |
throws BaseException {
|
1242 |
// TODO Auto-generated method stub
|
1243 |
|
1244 |
} |
1245 |
|
1246 |
public void createCache(String name, DynObject parameters) |
1247 |
throws DataException {
|
1248 |
// TODO Auto-generated method stub
|
1249 |
|
1250 |
} |
1251 |
|
1252 |
public FeatureCache getCache() {
|
1253 |
// TODO Auto-generated method stub
|
1254 |
return null; |
1255 |
} |
1256 |
|
1257 |
public void clear() { |
1258 |
// Nothing to do
|
1259 |
} |
1260 |
|
1261 |
public void export(DataServerExplorer explorer, String provider, |
1262 |
NewFeatureStoreParameters params) throws DataException {
|
1263 |
// TODO Auto-generated method stub
|
1264 |
|
1265 |
} |
1266 |
|
1267 |
public String getProviderName() { |
1268 |
// TODO Auto-generated method stub
|
1269 |
return null; |
1270 |
} |
1271 |
|
1272 |
public String getFullName() { |
1273 |
// TODO Auto-generated method stub
|
1274 |
return null; |
1275 |
} |
1276 |
|
1277 |
public boolean isKnownEnvelope() { |
1278 |
// TODO Auto-generated method stub
|
1279 |
return false; |
1280 |
} |
1281 |
|
1282 |
public boolean hasRetrievedFeaturesLimit() { |
1283 |
// TODO Auto-generated method stub
|
1284 |
return false; |
1285 |
} |
1286 |
|
1287 |
public int getRetrievedFeaturesLimit() { |
1288 |
// TODO Auto-generated method stub
|
1289 |
return 0; |
1290 |
} |
1291 |
|
1292 |
public Interval getInterval() {
|
1293 |
// TODO Auto-generated method stub
|
1294 |
return null; |
1295 |
} |
1296 |
|
1297 |
public Collection getTimes() { |
1298 |
// TODO Auto-generated method stub
|
1299 |
return null; |
1300 |
} |
1301 |
|
1302 |
public Collection getTimes(Interval interval) { |
1303 |
// TODO Auto-generated method stub
|
1304 |
return null; |
1305 |
} |
1306 |
|
1307 |
public FeatureIndex createIndex(String indexTypeName, |
1308 |
FeatureType featureType, String attributeName, String indexName) |
1309 |
throws DataException {
|
1310 |
// TODO Auto-generated method stub
|
1311 |
return null; |
1312 |
} |
1313 |
|
1314 |
public FeatureIndex createIndex(String indexTypeName, |
1315 |
FeatureType featureType, String attributeName, String indexName, |
1316 |
Observer observer) throws DataException { |
1317 |
// TODO Auto-generated method stub
|
1318 |
return null; |
1319 |
} |
1320 |
} |