Revision 35126 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/persistence/DummyFileFeatureStore.java

View differences:

DummyFileFeatureStore.java
59 59

  
60 60
public class DummyFileFeatureStore implements FeatureStore {
61 61

  
62
    public static class DummyFeatureAttributeDescriptor implements
63
        FeatureAttributeDescriptor {
62
	public static class DummyFeatureAttributeDescriptor implements
63
			FeatureAttributeDescriptor {
64 64

  
65
        public boolean allowNull() {
66
            // TODO Auto-generated method stub
67
            return false;
68
        }
65
		public boolean allowNull() {
66
			// TODO Auto-generated method stub
67
			return false;
68
		}
69 69

  
70
        public Object getAdditionalInfo(String infoName) {
71
            // TODO Auto-generated method stub
72
            return null;
73
        }
70
		public Object getAdditionalInfo(String infoName) {
71
			// TODO Auto-generated method stub
72
			return null;
73
		}
74 74

  
75
        public FeatureAttributeDescriptor getCopy() {
76
            // TODO Auto-generated method stub
77
            return null;
78
        }
75
		public FeatureAttributeDescriptor getCopy() {
76
			// TODO Auto-generated method stub
77
			return null;
78
		}
79 79

  
80
        public DataType getDataType() {
81
            // TODO Auto-generated method stub
82
            return null;
83
        }
80
		public DataType getDataType() {
81
			// TODO Auto-generated method stub
82
			return null;
83
		}
84 84

  
85
        public String getDataTypeName() {
86
            // TODO Auto-generated method stub
87
            return null;
88
        }
85
		public String getDataTypeName() {
86
			// TODO Auto-generated method stub
87
			return null;
88
		}
89 89

  
90
        public DateFormat getDateFormat() {
91
            // TODO Auto-generated method stub
92
            return null;
93
        }
90
		public DateFormat getDateFormat() {
91
			// TODO Auto-generated method stub
92
			return null;
93
		}
94 94

  
95
        public Object getDefaultValue() {
96
            // TODO Auto-generated method stub
97
            return null;
98
        }
95
		public Object getDefaultValue() {
96
			// TODO Auto-generated method stub
97
			return null;
98
		}
99 99

  
100
        public Evaluator getEvaluator() {
101
            // TODO Auto-generated method stub
102
            return null;
103
        }
100
		public Evaluator getEvaluator() {
101
			// TODO Auto-generated method stub
102
			return null;
103
		}
104 104

  
105
        public int getGeometrySubType() {
106
            // TODO Auto-generated method stub
107
            return 0;
108
        }
105
		public int getGeometrySubType() {
106
			// TODO Auto-generated method stub
107
			return 0;
108
		}
109 109

  
110
        public int getGeometryType() {
111
            return Geometry.TYPES.POINT;
112
        }
110
		public int getGeometryType() {
111
			return Geometry.TYPES.POINT;
112
		}
113 113

  
114
        public int getIndex() {
115
            // TODO Auto-generated method stub
116
            return 0;
117
        }
114
		public int getIndex() {
115
			// TODO Auto-generated method stub
116
			return 0;
117
		}
118 118

  
119
        public int getMaximumOccurrences() {
120
            // TODO Auto-generated method stub
121
            return 0;
122
        }
119
		public int getMaximumOccurrences() {
120
			// TODO Auto-generated method stub
121
			return 0;
122
		}
123 123

  
124
        public int getMinimumOccurrences() {
125
            // TODO Auto-generated method stub
126
            return 0;
127
        }
124
		public int getMinimumOccurrences() {
125
			// TODO Auto-generated method stub
126
			return 0;
127
		}
128 128

  
129
        public String getName() {
130
            // TODO Auto-generated method stub
131
            return null;
132
        }
129
		public String getName() {
130
			// TODO Auto-generated method stub
131
			return null;
132
		}
133 133

  
134
        public Class getObjectClass() {
135
            // TODO Auto-generated method stub
136
            return null;
137
        }
134
		public Class getObjectClass() {
135
			// TODO Auto-generated method stub
136
			return null;
137
		}
138 138

  
139
        public int getPrecision() {
140
            // TODO Auto-generated method stub
141
            return 0;
142
        }
139
		public int getPrecision() {
140
			// TODO Auto-generated method stub
141
			return 0;
142
		}
143 143

  
144
        public IProjection getSRS() {
145
            // TODO Auto-generated method stub
146
            return null;
147
        }
144
		public IProjection getSRS() {
145
			// TODO Auto-generated method stub
146
			return null;
147
		}
148 148

  
149
        public int getSize() {
150
            // TODO Auto-generated method stub
151
            return 0;
152
        }
149
		public int getSize() {
150
			// TODO Auto-generated method stub
151
			return 0;
152
		}
153 153

  
154
        public int getType() {
155
            // TODO Auto-generated method stub
156
            return 0;
157
        }
154
		public int getType() {
155
			// TODO Auto-generated method stub
156
			return 0;
157
		}
158 158

  
159
        public boolean isAutomatic() {
160
            // TODO Auto-generated method stub
161
            return false;
162
        }
159
		public boolean isAutomatic() {
160
			// TODO Auto-generated method stub
161
			return false;
162
		}
163 163

  
164
        public boolean isPrimaryKey() {
165
            // TODO Auto-generated method stub
166
            return false;
167
        }
164
		public boolean isPrimaryKey() {
165
			// TODO Auto-generated method stub
166
			return false;
167
		}
168 168

  
169
        public boolean isReadOnly() {
170
            // TODO Auto-generated method stub
171
            return false;
172
        }
173

  
169
		public boolean isReadOnly() {
170
			// TODO Auto-generated method stub
171
			return false;
172
		}
173
      
174 174
        public String getSubtype() {
175 175
            // TODO Auto-generated method stub
176 176
            return null;
......
312 312

  
313 313
        public void validate(Object value) throws DynFieldValidateException {
314 314
            // TODO Auto-generated method stub
315

  
315
            
316 316
        }
317 317

  
318 318
        public Object coerce(Object value) throws CoercionException {
......
365 365
            return 0;
366 366
        }
367 367

  
368
    }
368
	}
369 369

  
370
    public static class DummyFeatureType implements FeatureType {
370
	public static class DummyFeatureType implements FeatureType {
371 371

  
372
        public boolean allowAutomaticValues() {
373
            // TODO Auto-generated method stub
374
            return false;
375
        }
372
		public boolean allowAutomaticValues() {
373
			// TODO Auto-generated method stub
374
			return false;
375
		}
376 376

  
377
        public Object get(String name) {
378
            // TODO Auto-generated method stub
379
            return null;
380
        }
377
		public Object get(String name) {
378
			// TODO Auto-generated method stub
379
			return null;
380
		}
381 381

  
382
        public Object get(int index) {
383
            // TODO Auto-generated method stub
384
            return null;
385
        }
382
		public Object get(int index) {
383
			// TODO Auto-generated method stub
384
			return null;
385
		}
386 386

  
387
        public FeatureAttributeDescriptor getAttributeDescriptor(String name) {
388
            // TODO Auto-generated method stub
389
            return null;
390
        }
387
		public FeatureAttributeDescriptor getAttributeDescriptor(String name) {
388
			// TODO Auto-generated method stub
389
			return null;
390
		}
391 391

  
392
        public FeatureAttributeDescriptor getAttributeDescriptor(int index) {
393
            return new DummyFeatureAttributeDescriptor();
394
        }
392
		public FeatureAttributeDescriptor getAttributeDescriptor(int index) {
393
			return new DummyFeatureAttributeDescriptor();
394
		}
395 395

  
396
        public FeatureAttributeDescriptor[] getAttributeDescriptors() {
397
            // TODO Auto-generated method stub
398
            return null;
399
        }
396
		public FeatureAttributeDescriptor[] getAttributeDescriptors() {
397
			// TODO Auto-generated method stub
398
			return null;
399
		}
400 400

  
401
        public FeatureType getCopy() {
402
            // TODO Auto-generated method stub
403
            return null;
404
        }
401
		public FeatureType getCopy() {
402
			// TODO Auto-generated method stub
403
			return null;
404
		}
405 405

  
406
        public FeatureAttributeDescriptor getDefaultGeometryAttribute() {
407
            // TODO Auto-generated method stub
408
            return null;
409
        }
406
		public FeatureAttributeDescriptor getDefaultGeometryAttribute() {
407
			// TODO Auto-generated method stub
408
			return null;
409
		}
410 410

  
411
        public int getDefaultGeometryAttributeIndex() {
412
            return 0;
413
        }
411
		public int getDefaultGeometryAttributeIndex() {
412
			return 0;
413
		}
414 414

  
415
        public String getDefaultGeometryAttributeName() {
416
            // TODO Auto-generated method stub
417
            return null;
418
        }
415
		public String getDefaultGeometryAttributeName() {
416
			// TODO Auto-generated method stub
417
			return null;
418
		}
419 419

  
420
        public IProjection getDefaultSRS() {
421
            // TODO Auto-generated method stub
422
            return null;
423
        }
420
		public IProjection getDefaultSRS() {
421
			// TODO Auto-generated method stub
422
			return null;
423
		}
424 424

  
425
        public EditableFeatureType getEditable() {
426
            // TODO Auto-generated method stub
427
            return null;
428
        }
425
		public EditableFeatureType getEditable() {
426
			// TODO Auto-generated method stub
427
			return null;
428
		}
429 429

  
430
        public String getId() {
431
            // TODO Auto-generated method stub
432
            return null;
433
        }
430
		public String getId() {
431
			// TODO Auto-generated method stub
432
			return null;
433
		}
434 434

  
435
        public int getIndex(String name) {
436
            // TODO Auto-generated method stub
437
            return 0;
438
        }
435
		public int getIndex(String name) {
436
			// TODO Auto-generated method stub
437
			return 0;
438
		}
439 439

  
440
        public FeatureAttributeDescriptor[] getPrimaryKey() {
441
            // TODO Auto-generated method stub
442
            return null;
443
        }
440
		public FeatureAttributeDescriptor[] getPrimaryKey() {
441
			// TODO Auto-generated method stub
442
			return null;
443
		}
444 444

  
445
        public FeatureRules getRules() {
446
            // TODO Auto-generated method stub
447
            return null;
448
        }
445
		public FeatureRules getRules() {
446
			// TODO Auto-generated method stub
447
			return null;
448
		}
449 449

  
450
        public List getSRSs() {
451
            // TODO Auto-generated method stub
452
            return null;
453
        }
450
		public List getSRSs() {
451
			// TODO Auto-generated method stub
452
			return null;
453
		}
454 454

  
455
        public boolean hasEvaluators() {
456
            // TODO Auto-generated method stub
457
            return false;
458
        }
455
		public boolean hasEvaluators() {
456
			// TODO Auto-generated method stub
457
			return false;
458
		}
459 459

  
460
        public boolean hasOID() {
461
            // TODO Auto-generated method stub
462
            return false;
463
        }
460
		public boolean hasOID() {
461
			// TODO Auto-generated method stub
462
			return false;
463
		}
464 464

  
465
        public Iterator iterator() {
466
            // TODO Auto-generated method stub
467
            return null;
468
        }
465
		public Iterator iterator() {
466
			// TODO Auto-generated method stub
467
			return null;
468
		}
469 469

  
470
        public int size() {
471
            // TODO Auto-generated method stub
472
            return 0;
473
        }
470
		public int size() {
471
			// TODO Auto-generated method stub
472
			return 0;
473
		}
474 474

  
475 475
        public DynClass[] getSuperDynClasses() {
476 476
            // TODO Auto-generated method stub
......
479 479

  
480 480
        public void removeDynMethod(String name) {
481 481
            // TODO Auto-generated method stub
482

  
482
            
483 483
        }
484 484

  
485 485
        public DynField addDynField(String name) {
......
607 607

  
608 608
        public void extend(DynStruct struct) {
609 609
            // TODO Auto-generated method stub
610

  
610
            
611 611
        }
612 612

  
613 613
        public void extend(String namespace, String structName) {
614 614
            // TODO Auto-generated method stub
615

  
615
            
616 616
        }
617 617

  
618 618
        public void extend(String structName) {
619 619
            // TODO Auto-generated method stub
620

  
620
            
621 621
        }
622 622

  
623 623
        public DynField getDeclaredDynField(String name) {
......
677 677

  
678 678
        public void removeDynField(String name) {
679 679
            // TODO Auto-generated method stub
680

  
680
            
681 681
        }
682 682

  
683 683
        public void setDescription(String description) {
684 684
            // TODO Auto-generated method stub
685

  
685
            
686 686
        }
687 687

  
688 688
        public void setNamespace(String namespace) {
689 689
            // TODO Auto-generated method stub
690

  
690
            
691 691
        }
692 692

  
693 693
        public void validate(DynObject object)
694 694
            throws DynObjectValidateException {
695 695
            // TODO Auto-generated method stub
696

  
696
            
697 697
        }
698 698

  
699 699
        public void addDynMethod(DynMethod dynMethod) {
700 700
            // TODO Auto-generated method stub
701

  
701
            
702 702
        }
703 703

  
704 704
        public DynMethod getDeclaredDynMethod(String name)
......
732 732
            return false;
733 733
        }
734 734

  
735
        public void extend(DynStruct[] structs) {
736
            // TODO Auto-generated method stub
735
		public void extend(DynStruct[] structs) {
736
			// TODO Auto-generated method stub
737
			
738
		}
737 739

  
738
        }
740
		public void remove(DynStruct superDynStruct) {
741
			// TODO Auto-generated method stub
742
			
743
		}
739 744

  
740
        public void remove(DynStruct superDynStruct) {
741
            // TODO Auto-generated method stub
745
		public void removeAll(DynStruct[] superDynStruct) {
746
			// TODO Auto-generated method stub
747
			
748
		}
742 749

  
743
        }
750
	}
744 751

  
745
        public void removeAll(DynStruct[] superDynStruct) {
746
            // TODO Auto-generated method stub
752
	private String name = "[empty]";
753
	
754
	public DummyFileFeatureStore() {
755
		
756
	}
757
	
758
	public DummyFileFeatureStore(String id) {
759
		name = "[FILE FEATURE STORE - " + id + "]";
760
	}
761
	
762
	public boolean allowWrite() {
763
		// TODO Auto-generated method stub
764
		return false;
765
	}
747 766

  
748
        }
767
	public void beginEditingGroup(String description)
768
			throws NeedEditingModeException {
769
		// TODO Auto-generated method stub
749 770

  
750
    }
771
	}
751 772

  
752
    private String name = "[empty]";
773
	public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
774
		// TODO Auto-generated method stub
775
		return false;
776
	}
753 777

  
754
    public DummyFileFeatureStore() {
778
	public void cancelEditing() throws DataException {
779
		// TODO Auto-generated method stub
755 780

  
756
    }
781
	}
757 782

  
758
    public DummyFileFeatureStore(String id) {
759
        name = "[FILE FEATURE STORE - " + id + "]";
760
    }
783
	public FeatureQuery createFeatureQuery() {
784
		// TODO Auto-generated method stub
785
		return null;
786
	}
761 787

  
762
    public boolean allowWrite() {
763
        // TODO Auto-generated method stub
764
        return false;
765
    }
788
	public FeatureSelection createFeatureSelection() throws DataException {
789
		// TODO Auto-generated method stub
790
		return null;
791
	}
766 792

  
767
    public void beginEditingGroup(String description)
768
        throws NeedEditingModeException {
769
        // TODO Auto-generated method stub
793
	public FeatureIndex createIndex(FeatureType featureType,
794
			String attributeName, String indexName) throws DataException {
795
		// TODO Auto-generated method stub
796
		return null;
797
	}
770 798

  
771
    }
799
	public FeatureIndex createIndex(FeatureType featureType,
800
			String attributeName, String indexName, Observer observer)
801
			throws DataException {
802
		// TODO Auto-generated method stub
803
		return null;
804
	}
772 805

  
773
    public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
774
        // TODO Auto-generated method stub
775
        return false;
776
    }
806
	public EditableFeature createNewFeature() throws DataException {
807
		// TODO Auto-generated method stub
808
		return null;
809
	}
777 810

  
778
    public void cancelEditing() throws DataException {
779
        // TODO Auto-generated method stub
811
	public EditableFeature createNewFeature(FeatureType type,
812
			Feature defaultValues) throws DataException {
813
		// TODO Auto-generated method stub
814
		return null;
815
	}
780 816

  
781
    }
817
	public EditableFeature createNewFeature(FeatureType type,
818
			boolean defaultValues) throws DataException {
819
		// TODO Auto-generated method stub
820
		return null;
821
	}
782 822

  
783
    public FeatureQuery createFeatureQuery() {
784
        // TODO Auto-generated method stub
785
        return null;
786
    }
823
	public EditableFeature createNewFeature(boolean defaultValues)
824
			throws DataException {
825
		// TODO Auto-generated method stub
826
		return null;
827
	}
787 828

  
788
    public FeatureSelection createFeatureSelection() throws DataException {
789
        // TODO Auto-generated method stub
790
        return null;
791
    }
829
	public void delete(Feature feature) throws DataException {
830
		// TODO Auto-generated method stub
792 831

  
793
    public FeatureIndex createIndex(FeatureType featureType,
794
        String attributeName, String indexName) throws DataException {
795
        // TODO Auto-generated method stub
796
        return null;
797
    }
832
	}
798 833

  
799
    public FeatureIndex createIndex(FeatureType featureType,
800
        String attributeName, String indexName, Observer observer)
801
        throws DataException {
802
        // TODO Auto-generated method stub
803
        return null;
804
    }
834
	public void edit() throws DataException {
835
		// TODO Auto-generated method stub
805 836

  
806
    public EditableFeature createNewFeature() throws DataException {
807
        // TODO Auto-generated method stub
808
        return null;
809
    }
837
	}
810 838

  
811
    public EditableFeature createNewFeature(FeatureType type,
812
        Feature defaultValues) throws DataException {
813
        // TODO Auto-generated method stub
814
        return null;
815
    }
839
	public void edit(int mode) throws DataException {
840
		// TODO Auto-generated method stub
816 841

  
817
    public EditableFeature createNewFeature(FeatureType type,
818
        boolean defaultValues) throws DataException {
819
        // TODO Auto-generated method stub
820
        return null;
821
    }
842
	}
822 843

  
823
    public EditableFeature createNewFeature(boolean defaultValues)
824
        throws DataException {
825
        // TODO Auto-generated method stub
826
        return null;
827
    }
844
	public void endEditingGroup() throws NeedEditingModeException {
845
		// TODO Auto-generated method stub
828 846

  
829
    public void delete(Feature feature) throws DataException {
830
        // TODO Auto-generated method stub
847
	}
831 848

  
832
    }
849
	public void finishEditing() throws DataException {
850
		// TODO Auto-generated method stub
833 851

  
834
    public void edit() throws DataException {
835
        // TODO Auto-generated method stub
852
	}
836 853

  
837
    }
854
	public FeatureType getDefaultFeatureType() throws DataException {
855
		return new DummyFeatureType();
856
	}
838 857

  
839
    public void edit(int mode) throws DataException {
840
        // TODO Auto-generated method stub
858
	public Envelope getEnvelope() throws DataException {
859
		// TODO Auto-generated method stub
860
		return null;
861
	}
841 862

  
842
    }
863
	public Feature getFeatureByReference(FeatureReference reference)
864
			throws DataException {
865
		// TODO Auto-generated method stub
866
		return null;
867
	}
843 868

  
844
    public void endEditingGroup() throws NeedEditingModeException {
845
        // TODO Auto-generated method stub
869
	public Feature getFeatureByReference(FeatureReference reference,
870
			FeatureType featureType) throws DataException {
871
		// TODO Auto-generated method stub
872
		return null;
873
	}
846 874

  
847
    }
875
	public long getFeatureCount() throws DataException {
876
		// TODO Auto-generated method stub
877
		return 0;
878
	}
848 879

  
849
    public void finishEditing() throws DataException {
850
        // TODO Auto-generated method stub
880
	public FeatureSelection getFeatureSelection() throws DataException {
881
		// TODO Auto-generated method stub
882
		return null;
883
	}
851 884

  
852
    }
885
	public FeatureSet getFeatureSet() throws DataException {
886
		// TODO Auto-generated method stub
887
		return null;
888
	}
853 889

  
854
    public FeatureType getDefaultFeatureType() throws DataException {
855
        return new DummyFeatureType();
856
    }
890
	public FeatureSet getFeatureSet(FeatureQuery featureQuery)
891
			throws DataException {
892
		// TODO Auto-generated method stub
893
		return null;
894
	}
857 895

  
858
    public Envelope getEnvelope() throws DataException {
859
        // TODO Auto-generated method stub
860
        return null;
861
    }
896
	public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
897
			throws DataException {
898
		// TODO Auto-generated method stub
862 899

  
863
    public Feature getFeatureByReference(FeatureReference reference)
864
        throws DataException {
865
        // TODO Auto-generated method stub
866
        return null;
867
    }
900
	}
868 901

  
869
    public Feature getFeatureByReference(FeatureReference reference,
870
        FeatureType featureType) throws DataException {
871
        // TODO Auto-generated method stub
872
        return null;
873
    }
902
	public void getFeatureSet(Observer observer) throws DataException {
903
		// TODO Auto-generated method stub
874 904

  
875
    public long getFeatureCount() throws DataException {
876
        // TODO Auto-generated method stub
877
        return 0;
878
    }
905
	}
879 906

  
880
    public FeatureSelection getFeatureSelection() throws DataException {
881
        // TODO Auto-generated method stub
882
        return null;
883
    }
907
	public FeatureType getFeatureType(String featureTypeId)
908
			throws DataException {
909
		// TODO Auto-generated method stub
910
		return null;
911
	}
884 912

  
885
    public FeatureSet getFeatureSet() throws DataException {
886
        // TODO Auto-generated method stub
887
        return null;
888
    }
913
	public List getFeatureTypes() throws DataException {
914
		// TODO Auto-generated method stub
915
		return null;
916
	}
889 917

  
890
    public FeatureSet getFeatureSet(FeatureQuery featureQuery)
891
        throws DataException {
892
        // TODO Auto-generated method stub
893
        return null;
894
    }
918
	public FeatureIndexes getIndexes() {
919
		// TODO Auto-generated method stub
920
		return null;
921
	}
895 922

  
896
    public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
897
        throws DataException {
898
        // TODO Auto-generated method stub
923
	public FeatureLocks getLocks() throws DataException {
924
		// TODO Auto-generated method stub
925
		return null;
926
	}
899 927

  
900
    }
928
	public DataStoreParameters getParameters() {
929
		// TODO Auto-generated method stub
930
		return null;
931
	}
901 932

  
902
    public void getFeatureSet(Observer observer) throws DataException {
903
        // TODO Auto-generated method stub
933
	public IProjection getSRSDefaultGeometry() throws DataException {
934
		// TODO Auto-generated method stub
935
		return null;
936
	}
904 937

  
905
    }
938
	public FeatureStoreTransforms getTransforms() {
939
		// TODO Auto-generated method stub
940
		return null;
941
	}
906 942

  
907
    public FeatureType getFeatureType(String featureTypeId)
908
        throws DataException {
909
        // TODO Auto-generated method stub
910
        return null;
911
    }
943
	public void insert(EditableFeature feature) throws DataException {
944
		// TODO Auto-generated method stub
912 945

  
913
    public List getFeatureTypes() throws DataException {
914
        // TODO Auto-generated method stub
915
        return null;
916
    }
946
	}
917 947

  
918
    public FeatureIndexes getIndexes() {
919
        // TODO Auto-generated method stub
920
        return null;
921
    }
948
	public boolean isAppendModeSupported() {
949
		// TODO Auto-generated method stub
950
		return false;
951
	}
922 952

  
923
    public FeatureLocks getLocks() throws DataException {
924
        // TODO Auto-generated method stub
925
        return null;
926
    }
953
	public boolean isAppending() {
954
		// TODO Auto-generated method stub
955
		return false;
956
	}
927 957

  
928
    public DataStoreParameters getParameters() {
929
        // TODO Auto-generated method stub
930
        return null;
931
    }
958
	public boolean isEditing() {
959
		// TODO Auto-generated method stub
960
		return false;
961
	}
932 962

  
933
    public IProjection getSRSDefaultGeometry() throws DataException {
934
        // TODO Auto-generated method stub
935
        return null;
936
    }
963
	public boolean isLocksSupported() {
964
		// TODO Auto-generated method stub
965
		return false;
966
	}
937 967

  
938
    public FeatureStoreTransforms getTransforms() {
939
        // TODO Auto-generated method stub
940
        return null;
941
    }
968
	public void setSelection(FeatureSet selection) throws DataException {
969
		// TODO Auto-generated method stub
942 970

  
943
    public void insert(EditableFeature feature) throws DataException {
944
        // TODO Auto-generated method stub
971
	}
945 972

  
946
    }
973
	public void update(EditableFeatureType featureType) throws DataException {
974
		// TODO Auto-generated method stub
947 975

  
948
    public boolean hasEmptyValues() {
949
        return true;
950
    }
951
    
952
    public boolean isAppendModeSupported() {
953
        // TODO Auto-generated method stub
954
        return false;
955
    }
976
	}
956 977

  
957
    public boolean isAppending() {
958
        // TODO Auto-generated method stub
959
        return false;
960
    }
978
	public void update(EditableFeature feature) throws DataException {
979
		// TODO Auto-generated method stub
961 980

  
962
    public boolean isEditing() {
963
        // TODO Auto-generated method stub
964
        return false;
965
    }
981
	}
966 982

  
967
    public boolean isLocksSupported() {
968
        // TODO Auto-generated method stub
969
        return false;
970
    }
983
	public void validateFeatures(int mode) throws DataException {
984
		// TODO Auto-generated method stub
971 985

  
972
    public void setSelection(FeatureSet selection) throws DataException {
973
        // TODO Auto-generated method stub
986
	}
974 987

  
975
    }
988
	public DataQuery createQuery() {
989
		// TODO Auto-generated method stub
990
		return null;
991
	}
976 992

  
977
    public void update(EditableFeatureType featureType) throws DataException {
978
        // TODO Auto-generated method stub
993
	public DataSet createSelection() throws DataException {
994
		// TODO Auto-generated method stub
995
		return null;
996
	}
979 997

  
980
    }
998
	public void dispose() {
999
		// TODO Auto-generated method stub
981 1000

  
982
    public void update(EditableFeature feature) throws DataException {
983
        // TODO Auto-generated method stub
1001
	}
984 1002

  
985
    }
1003
	public Iterator getChildren() {
1004
		// TODO Auto-generated method stub
1005
		return null;
1006
	}
986 1007

  
987
    public void validateFeatures(int mode) throws DataException {
988
        // TODO Auto-generated method stub
1008
	public DataSet getDataSet() throws DataException {
1009
		// TODO Auto-generated method stub
1010
		return null;
1011
	}
989 1012

  
990
    }
1013
	public DataSet getDataSet(DataQuery dataQuery) throws DataException {
1014
		// TODO Auto-generated method stub
1015
		return null;
1016
	}
991 1017

  
992
    public DataQuery createQuery() {
993
        // TODO Auto-generated method stub
994
        return null;
995
    }
1018
	public void getDataSet(Observer observer) throws DataException {
1019
		// TODO Auto-generated method stub
996 1020

  
997
    public DataSet createSelection() throws DataException {
998
        // TODO Auto-generated method stub
999
        return null;
1000
    }
1021
	}
1001 1022

  
1002
    public void dispose() {
1003
        // TODO Auto-generated method stub
1023
	public void getDataSet(DataQuery dataQuery, Observer observer)
1024
			throws DataException {
1025
		// TODO Auto-generated method stub
1004 1026

  
1005
    }
1027
	}
1006 1028

  
1007
    public Iterator getChildren() {
1008
        // TODO Auto-generated method stub
1009
        return null;
1010
    }
1029
	public DataServerExplorer getExplorer() throws DataException,
1030
			ValidateDataParametersException {
1031
		// TODO Auto-generated method stub
1032
		return null;
1033
	}
1011 1034

  
1012
    public DataSet getDataSet() throws DataException {
1013
        // TODO Auto-generated method stub
1014
        return null;
1015
    }
1035
	public String getName() {
1036
		return name;
1037
	}
1016 1038

  
1017
    public DataSet getDataSet(DataQuery dataQuery) throws DataException {
1018
        // TODO Auto-generated method stub
1019
        return null;
1020
    }
1039
	public DataSet getSelection() throws DataException {
1040
		// TODO Auto-generated method stub
1041
		return null;
1042
	}
1021 1043

  
1022
    public void getDataSet(Observer observer) throws DataException {
1023
        // TODO Auto-generated method stub
1044
	public void refresh() throws DataException {
1045
		// TODO Auto-generated method stub
1024 1046

  
1025
    }
1047
	}
1026 1048

  
1027
    public void getDataSet(DataQuery dataQuery, Observer observer)
1028
        throws DataException {
1029
        // TODO Auto-generated method stub
1049
	public void setSelection(DataSet selection) throws DataException {
1050
		// TODO Auto-generated method stub
1030 1051

  
1031
    }
1052
	}
1032 1053

  
1033
    public DataServerExplorer getExplorer() throws DataException,
1034
        ValidateDataParametersException {
1035
        // TODO Auto-generated method stub
1036
        return null;
1037
    }
1054
	public void beginComplexNotification() {
1055
		// TODO Auto-generated method stub
1038 1056

  
1039
    public String getName() {
1040
        return name;
1041
    }
1057
	}
1042 1058

  
1043
    public DataSet getSelection() throws DataException {
1044
        // TODO Auto-generated method stub
1045
        return null;
1046
    }
1059
	public void disableNotifications() {
1060
		// TODO Auto-generated method stub
1047 1061

  
1048
    public void refresh() throws DataException {
1049
        // TODO Auto-generated method stub
1062
	}
1050 1063

  
1051
    }
1064
	public void enableNotifications() {
1065
		// TODO Auto-generated method stub
1052 1066

  
1053
    public void setSelection(DataSet selection) throws DataException {
1054
        // TODO Auto-generated method stub
1067
	}
1055 1068

  
1056
    }
1069
	public void endComplexNotification() {
1070
		// TODO Auto-generated method stub
1057 1071

  
1058
    public void beginComplexNotification() {
1059
        // TODO Auto-generated method stub
1072
	}
1060 1073

  
1061
    }
1074
	public void addObserver(Observer o) {
1075
		// TODO Auto-generated method stub
1062 1076

  
1063
    public void disableNotifications() {
1064
        // TODO Auto-generated method stub
1077
	}
1065 1078

  
1066
    }
1079
	public void deleteObserver(Observer o) {
1080
		// TODO Auto-generated method stub
1067 1081

  
1068
    public void enableNotifications() {
1069
        // TODO Auto-generated method stub
1082
	}
1070 1083

  
1071
    }
1084
	public void deleteObservers() {
1085
		// TODO Auto-generated method stub
1072 1086

  
1073
    public void endComplexNotification() {
1074
        // TODO Auto-generated method stub
1087
	}
1075 1088

  
1076
    }
1089
	public void loadFromState(PersistentState state)
1090
			throws PersistenceException {
1091
		name = state.getString("name");
1092
	}
1077 1093

  
1078
    public void addObserver(Observer o) {
1079
        // TODO Auto-generated method stub
1094
	public void saveToState(PersistentState state) throws PersistenceException {
1095
		state.set("name", name);
1096
	}
1080 1097

  
1081
    }
1098
	public Set getMetadataChildren() {
1099
		// TODO Auto-generated method stub
1100
		return null;
1101
	}
1082 1102

  
1083
    public void deleteObserver(Observer o) {
1084
        // TODO Auto-generated method stub
1103
	public Object getMetadataID() {
1104
		// TODO Auto-generated method stub
1105
		return null;
1106
	}
1085 1107

  
1086
    }
1108
	public String getMetadataName() {
1109
		// TODO Auto-generated method stub
1110
		return null;
1111
	}
1087 1112

  
1088
    public void deleteObservers() {
1089
        // TODO Auto-generated method stub
1113
	public void delegate(DynObject dynObject) {
1114
		// TODO Auto-generated method stub
1090 1115

  
1091
    }
1116
	}
1092 1117

  
1093
    public void loadFromState(PersistentState state)
1094
        throws PersistenceException {
1095
        name = state.getString("name");
1096
    }
1118
	public DynClass getDynClass() {
1119
		// TODO Auto-generated method stub
1120
		return null;
1121
	}
1097 1122

  
1098
    public void saveToState(PersistentState state) throws PersistenceException {
1099
        state.set("name", name);
1100
    }
1123
	public Object getDynValue(String name) throws DynFieldNotFoundException {
1124
		// TODO Auto-generated method stub
1125
		return null;
1126
	}
1101 1127

  
1102
    public Set getMetadataChildren() {
1103
        // TODO Auto-generated method stub
1104
        return null;
1105
    }
1128
	public boolean hasDynValue(String name) {
1129
		// TODO Auto-generated method stub
1130
		return false;
1131
	}
1106 1132

  
1107
    public Object getMetadataID() {
1108
        // TODO Auto-generated method stub
1109
        return null;
1110
    }
1133
	public void implement(DynClass dynClass) {
1134
		// TODO Auto-generated method stub
1111 1135

  
1112
    public String getMetadataName() {
1113
        // TODO Auto-generated method stub
1114
        return null;
1115
    }
1136
	}
1116 1137

  
1117
    public void delegate(DynObject dynObject) {
1118
        // TODO Auto-generated method stub
1138
	public Object invokeDynMethod(String name, DynObject context)
1139
			throws DynMethodException {
1140
		// TODO Auto-generated method stub
1141
		return null;
1142
	}
1119 1143

  
1120
    }
1144
	public Object invokeDynMethod(int code, DynObject context)
1145
			throws DynMethodException {
1146
		// TODO Auto-generated method stub
1147
		return null;
1148
	}
1121 1149

  
1122
    public DynClass getDynClass() {
1123
        // TODO Auto-generated method stub
1124
        return null;
1125
    }
1150
	public void setDynValue(String name, Object value)
1151
			throws DynFieldNotFoundException {
1152
		// TODO Auto-generated method stub
1126 1153

  
1127
    public Object getDynValue(String name) throws DynFieldNotFoundException {
1128
        // TODO Auto-generated method stub
1129
        return null;
1130
    }
1154
	}
1131 1155

  
1132
    public boolean hasDynValue(String name) {
1133
        // TODO Auto-generated method stub
1134
        return false;
1135
    }
1156
	public boolean canRedo() {
1157
		// TODO Auto-generated method stub
1158
		return false;
1159
	}
1136 1160

  
1137
    public void implement(DynClass dynClass) {
1138
        // TODO Auto-generated method stub
1161
	public boolean canUndo() {
1162
		// TODO Auto-generated method stub
1163
		return false;
1164
	}
1139 1165

  
1140
    }
1166
	public List getRedoInfos() {
1167
		// TODO Auto-generated method stub
1168
		return null;
1169
	}
1141 1170

  
1142
    public Object invokeDynMethod(String name, DynObject context)
1143
        throws DynMethodException {
1144
        // TODO Auto-generated method stub
1145
        return null;
1146
    }
1171
	public List getUndoInfos() {
1172
		// TODO Auto-generated method stub
1173
		return null;
1174
	}
1147 1175

  
1148
    public Object invokeDynMethod(int code, DynObject context)
1149
        throws DynMethodException {
1150
        // TODO Auto-generated method stub
1151
        return null;
1152
    }
1176
	public void redo() throws RedoException {
1177
		// TODO Auto-generated method stub
1153 1178

  
1154
    public void setDynValue(String name, Object value)
1155
        throws DynFieldNotFoundException {
1156
        // TODO Auto-generated method stub
1179
	}
1157 1180

  
1158
    }
1181
	public void redo(int num) throws RedoException {
1182
		// TODO Auto-generated method stub
1159 1183

  
1160
    public boolean canRedo() {
1161
        // TODO Auto-generated method stub
1162
        return false;
1163
    }
1184
	}
1164 1185

  
1165
    public boolean canUndo() {
1166
        // TODO Auto-generated method stub
1167
        return false;
1168
    }
1186
	public void undo() throws UndoException {
1187
		// TODO Auto-generated method stub
1169 1188

  
1170
    public List getRedoInfos() {
1171
        // TODO Auto-generated method stub
1172
        return null;
1173
    }
1189
	}
1174 1190

  
1175
    public List getUndoInfos() {
1176
        // TODO Auto-generated method stub
1177
        return null;
1178
    }
1191
	public void undo(int num) throws UndoException {
1192
		// TODO Auto-generated method stub
1179 1193

  
1180
    public void redo() throws RedoException {
1181
        // TODO Auto-generated method stub
1194
	}
1195
	
1196
	
1197
	
1198
	public static void registerPersistent() {
1199
		PersistenceManager manager = ToolsLocator.getPersistenceManager();
1200
		DynStruct definition = manager.addDefinition(
1201
				DummyFileFeatureStore.class,
1202
				"DummyFileFeatureStore",
1203
				"DummyFileFeatureStore Persistence definition",
1204
				null, 
1205
				null
1206
		);
1207
		definition.addDynFieldString("name")
1208
			.setMandatory(true);
1209
	}
1182 1210

  
1183
    }
1211
	public void accept(Visitor visitor) throws BaseException {
1212
		// TODO Auto-generated method stub
1184 1213

  
1185
    public void redo(int num) throws RedoException {
1186
        // TODO Auto-generated method stub
1214
	}
1187 1215

  
1188
    }
1216
	public void accept(Visitor visitor, DataQuery dataQuery)
1217
			throws BaseException {
1218
		// TODO Auto-generated method stub
1189 1219

  
1190
    public void undo() throws UndoException {
1191
        // TODO Auto-generated method stub
1220
	}
1192 1221

  
1193
    }
1222
	public void createCache(String name, DynObject parameters)
1223
			throws DataException {
1224
		// TODO Auto-generated method stub
1225
		
1226
	}
1194 1227

  
1195
    public void undo(int num) throws UndoException {
1196
        // TODO Auto-generated method stub
1228
	public FeatureCache getCache() {
1229
		// TODO Auto-generated method stub
1230
		return null;
1231
	}
1197 1232

  
1198
    }
1233
	public void clear() {
1234
		// Nothing to do
1235
	}
1199 1236

  
1200
    public static void registerPersistent() {
1201
        PersistenceManager manager = ToolsLocator.getPersistenceManager();
1202
        DynStruct definition =
1203
            manager.addDefinition(DummyFileFeatureStore.class,
1204
                "DummyFileFeatureStore",
1205
                "DummyFileFeatureStore Persistence definition", null, null);
1206
        definition.addDynFieldString("name").setMandatory(true);
1207
    }
1237
	public void export(DataServerExplorer explorer, String provider,
1238
			NewFeatureStoreParameters params) throws DataException {
1239
		// TODO Auto-generated method stub
1240
		
1241
	}
1208 1242

  
1209
    public void accept(Visitor visitor) throws BaseException {
1210
        // TODO Auto-generated method stub
1243
	public String getProviderName() {
1244
		// TODO Auto-generated method stub
1245
		return null;
1246
	}
1211 1247

  
1212
    }
1248
	public String getFullName() {
1249
		// TODO Auto-generated method stub
1250
		return null;
1251
	}
1213 1252

  
1214
    public void accept(Visitor visitor, DataQuery dataQuery)
1215
        throws BaseException {
1216
        // TODO Auto-generated method stub
1217

  
1218
    }
1219

  
1220
    public void createCache(String name, DynObject parameters)
1221
        throws DataException {
1222
        // TODO Auto-generated method stub
1223

  
1224
    }
1225

  
1226
    public FeatureCache getCache() {
1227
        // TODO Auto-generated method stub
1228
        return null;
1229
    }
1230

  
1231
    public void clear() {
1232
        // Nothing to do
1233
    }
1234

  
1235
    public void export(DataServerExplorer explorer, String provider,
1236
        NewFeatureStoreParameters params) throws DataException {
1237
        // TODO Auto-generated method stub
1238

  
1239
    }
1240

  
1241
    public String getProviderName() {
1242
        // TODO Auto-generated method stub
1243
        return null;
1244
    }
1245

  
1246
    public String getFullName() {
1247
        // TODO Auto-generated method stub
1248
        return null;
1249
    }
1250

  
1251 1253
    public boolean isKnownEnvelope() {
1252 1254
        // TODO Auto-generated method stub
1253 1255
        return false;
......
1262 1264
        // TODO Auto-generated method stub
1263 1265
        return 0;
1264 1266
    }
1265

  
1266
    public FeatureIndex createIndex(String indexTypeName,
1267
        FeatureType featureType, String attributeName, String indexName)
1268
        throws DataException {
1269
        // TODO Auto-generated method stub
1270
        return null;
1271
    }
1272

  
1273
    public FeatureIndex createIndex(String indexTypeName,
1274
        FeatureType featureType, String attributeName, String indexName,
1275
        Observer observer) throws DataException {
1276
        // TODO Auto-generated method stub
1277
        return null;
1278
    }
1279
}
1267
}

Also available in: Unified diff