Revision 34093

View differences:

tags/v2_0_0_Build_2021/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/impl/DefaultMapContextManagerTest.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {DiSiD Technologies}  {{Task}}
26
 */
27
package org.gvsig.fmap.mapcontext.impl;
28

  
29
import java.awt.Graphics2D;
30
import java.awt.image.BufferedImage;
31
import java.util.Map;
32

  
33
import org.cresques.cts.ICoordTrans;
34
import org.gvsig.compat.print.PrintAttributes;
35
import org.gvsig.fmap.crs.CRSFactory;
36
import org.gvsig.fmap.dal.exception.ReadException;
37
import org.gvsig.fmap.dal.feature.Feature;
38
import org.gvsig.fmap.dal.feature.FeatureStore;
39
import org.gvsig.fmap.mapcontext.MapContext;
40
import org.gvsig.fmap.mapcontext.MapContextDrawer;
41
import org.gvsig.fmap.mapcontext.MapContextException;
42
import org.gvsig.fmap.mapcontext.MapContextRuntimeException;
43
import org.gvsig.fmap.mapcontext.ViewPort;
44
import org.gvsig.fmap.mapcontext.layers.FLayers;
45
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
46
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
47
import org.gvsig.fmap.mapcontext.rendering.legend.LegendException;
48
import org.gvsig.fmap.mapcontext.rendering.legend.driver.ILegendReader;
49
import org.gvsig.fmap.mapcontext.rendering.legend.driver.ILegendWriter;
50
import org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener;
51
import org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent;
52
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
53
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
54
import org.gvsig.tools.observer.Observer;
55
import org.gvsig.tools.persistence.PersistentState;
56
import org.gvsig.tools.persistence.exception.PersistenceException;
57
import org.gvsig.tools.task.Cancellable;
58

  
59
/**
60
 * @author <a href="mailto:cordinyana@gvsig.org">C?sar Ordi?ana</a>
61
 */
62
public class DefaultMapContextManagerTest extends
63
		AbstractLibraryAutoInitTestCase {
64

  
65
	private DefaultMapContextManager manager;
66

  
67
	protected void doSetUp() throws Exception {
68
		manager = new DefaultMapContextManager();
69
		
70
		manager.registerLegend("DummyLegend", DummyVectorLegend.class);
71
		manager.setDefaultVectorLegend("DummyLegend");
72
		manager.registerLegendReader("Dummy", DummyLegendReader.class);
73
		manager.registerLegendWriter("DummyLegend", "Dummy", DummyLegendWriter.class);
74
	}
75

  
76
	protected void tearDown() throws Exception {
77
		super.tearDown();
78
	}
79

  
80
	/**
81
	 * Test method for
82
	 * {@link org.gvsig.fmap.mapcontext.impl.DefaultMapContextManager#createDefaultMapContextDrawerInstance()}
83
	 * .
84
	 */
85
	public void testGetDefaultMapContextDrawerInstance() throws Exception {
86

  
87
		manager.setDefaultMapContextDrawer(DummyMapContextDrawer.class);
88

  
89
		MapContextDrawer drawer = manager
90
				.createDefaultMapContextDrawerInstance();
91

  
92
		assertNotNull("The created MapContextDrawer instance can't be null",
93
				drawer);
94
		assertTrue(
95
				"The created MapContextDrawer is not instance of the registered class"
96
						+ DummyMapContextDrawer.class,
97
				drawer instanceof DummyMapContextDrawer);
98
	}
99

  
100
	/**
101
	 * Test method for
102
	 * {@link org.gvsig.fmap.mapcontext.impl.DefaultMapContextManager#setDefaultMapContextDrawer(java.lang.Class)}
103
	 * .
104
	 */
105
	public void testSetDefaultMapContextDrawer() throws Exception {
106

  
107
		// First, try to register an invalid class
108
		try {
109
			manager.setDefaultMapContextDrawer(Object.class);
110
			fail("Error, a class that does not implement the MapContextDrawer "
111
					+ "interface has been accepted");
112
		} catch (MapContextRuntimeException e) {
113
			// OK
114
		}
115

  
116
		// Next, try to register a valid class
117
		manager.setDefaultMapContextDrawer(DummyMapContextDrawer.class);
118
	}
119

  
120
	public void testCreateGraphicsLayer() throws Exception {
121
		assertNotNull(manager.createGraphicsLayer(CRSFactory.getCRS("EPSG:23030")));
122
	}
123

  
124
	public void testCreateDefaultVectorLegend() throws Exception {
125

  
126
		IVectorLegend legend = manager.createDefaultVectorLegend(1);
127
		assertNotNull(legend);
128
		assertTrue(legend instanceof DummyVectorLegend);
129
	}
130

  
131
	public void testRegisterCreateLegend() throws Exception {
132

  
133
		manager.registerLegend("DummyLegend", DummyVectorLegend.class);
134

  
135
		ILegend legend = manager.createLegend("DummyLegend");
136
		assertNotNull(legend);
137
		assertTrue(legend instanceof DummyVectorLegend);
138

  
139
		assertNull(manager.createLegend("NONE"));
140
	}
141

  
142
	public void testRegisterCreateLegendReader() throws Exception {
143

  
144
		manager.registerLegendReader("Dummy", DummyLegendReader.class);
145

  
146
		ILegendReader legendReader = manager.createLegendReader("Dummy");
147
		assertNotNull(legendReader);
148
		assertTrue(legendReader instanceof DummyLegendReader);
149

  
150
		assertNull(manager.createLegendReader("NONE"));
151
	}
152

  
153
	public void testRegisterCreateLegendWriter() throws Exception {
154

  
155
		manager.registerLegend("DummyLegend", DummyVectorLegend.class);
156

  
157
		manager.registerLegendWriter("DummyLegend", "Dummy",
158
				DummyLegendWriter.class);
159

  
160
		// Test the registered writer is created
161
		ILegendWriter legendWriter = manager.createLegendWriter("DummyLegend",
162
				"Dummy");
163
		assertNotNull(legendWriter);
164
		assertTrue(legendWriter instanceof DummyLegendWriter);
165

  
166
		// Test non registered cases
167
		assertNull(manager.createLegendWriter("NONE", "Dummy"));
168
		assertNull(manager.createLegendWriter("DummyLegend", "NONE"));
169
		assertNull(manager.createLegendWriter("NONE", "NONE"));
170
	}
171

  
172
	public static class DummyMapContextDrawer implements MapContextDrawer {
173

  
174
		public void dispose() {
175
		}
176

  
177
		public void draw(FLayers root, BufferedImage image, Graphics2D g,
178
				Cancellable cancel, double scale) throws ReadException {
179
		}
180

  
181
		public void print(FLayers root, Graphics2D g, Cancellable cancel,
182
				double scale, PrintAttributes properties) throws ReadException {
183
		}
184

  
185
		public void setMapContext(MapContext mapContext) {
186
		}
187

  
188
		public void setViewPort(ViewPort viewPort) {
189
		}
190

  
191
	}
192

  
193
	public static class DummyLegendReader implements ILegendReader {
194

  
195
	}
196

  
197
	public static class DummyLegendWriter implements ILegendWriter {
198

  
199
	}
200

  
201
	public static class DummyVectorLegend implements IVectorLegend {
202

  
203
		public void draw(BufferedImage image, Graphics2D graphics2d,
204
				ViewPort viewPort, Cancellable cancel, double scale,
205
				Map queryParameters, ICoordTrans coordTrans,
206
				FeatureStore featureStore) throws LegendException {
207
			// Empty method
208
		}
209

  
210
		public int getShapeType() {
211
			// Empty method
212
			return 0;
213
		}
214

  
215
		public ISymbol getSymbolByFeature(Feature feat)
216
				throws MapContextException {
217
			// Empty method
218
			return null;
219
		}
220

  
221
		public boolean isSuitableForShapeType(int shapeType) {
222
			// Empty method
223
			return false;
224
		}
225

  
226
		public boolean isUseDefaultSymbol() {
227
			// Empty method
228
			return false;
229
		}
230

  
231
		public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel,
232
				double scale, Map queryParameters, ICoordTrans coordTrans,
233
				FeatureStore featureStore, PrintAttributes properties)
234
				throws LegendException {
235
			// Empty method
236
		}
237

  
238
		public void setDefaultSymbol(ISymbol s) {
239
			// Empty method
240
		}
241

  
242
		public void setShapeType(int shapeType) {
243
			// Empty method
244
		}
245

  
246
		public void useDefaultSymbol(boolean b) {
247
			// Empty method
248
		}
249

  
250
		public void addLegendListener(LegendContentsChangedListener listener) {
251
			// Empty method
252
		}
253

  
254
		public ILegend cloneLegend() {
255
			// Empty method
256
			return null;
257
		}
258

  
259
		public Object clone() throws CloneNotSupportedException {
260
			// TODO Auto-generated method stub
261
			return super.clone();
262
		}
263

  
264
		public void fireDefaultSymbolChangedEvent(SymbolLegendEvent event) {
265
			// Empty method
266
		}
267

  
268
		public ISymbol getDefaultSymbol() {
269
			// Empty method
270
			return null;
271
		}
272

  
273
		public LegendContentsChangedListener[] getListeners() {
274
			// Empty method
275
			return null;
276
		}
277

  
278
		public void removeLegendListener(LegendContentsChangedListener listener) {
279
			// Empty method
280
		}
281

  
282
		public void loadFromState(PersistentState state)
283
				throws PersistenceException {
284
			// Empty method
285
		}
286

  
287
		public void saveToState(PersistentState state)
288
				throws PersistenceException {
289
			// Empty method
290
		}
291

  
292
		public void addDrawingObserver(Observer observer) {
293
			// Empty method
294
		}
295

  
296
		public void deleteDrawingObserver(Observer observer) {
297
			// Empty method
298
		}
299

  
300
		public void deleteDrawingObservers() {
301
			// Empty method
302
		}
303
	}
304
}
tags/v2_0_0_Build_2021/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/persistence/MapContextPersistenceTest.java
1
package org.gvsig.fmap.mapcontext.persistence;
2

  
3
import java.awt.Color;
4
import java.awt.Dimension;
5
import java.awt.geom.Rectangle2D;
6
import java.io.File;
7
import java.io.FileInputStream;
8
import java.io.FileOutputStream;
9

  
10
import org.gvsig.fmap.crs.CRSFactory;
11
import org.gvsig.fmap.dal.feature.FeatureStore;
12
import org.gvsig.fmap.geom.Geometry.TYPES;
13
import org.gvsig.fmap.geom.primitive.Envelope;
14
import org.gvsig.fmap.geom.primitive.impl.Envelope2D;
15
import org.gvsig.fmap.mapcontext.MapContext;
16
import org.gvsig.fmap.mapcontext.MapContextLocator;
17
import org.gvsig.fmap.mapcontext.ViewPort;
18
import org.gvsig.fmap.mapcontext.exceptions.LegendLayerException;
19
import org.gvsig.fmap.mapcontext.layers.FLayer;
20
import org.gvsig.fmap.mapcontext.layers.FLayers;
21
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
22
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
23
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
24
import org.gvsig.fmap.mapcontext.rendering.symbol.DummyVectorLegend;
25
import org.gvsig.tools.ToolsLocator;
26
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
27
import org.gvsig.tools.persistence.Persistent;
28
import org.gvsig.tools.persistence.PersistentState;
29
import org.slf4j.Logger;
30
import org.slf4j.LoggerFactory;
31

  
32
public class MapContextPersistenceTest extends AbstractLibraryAutoInitTestCase {
33

  
34
	final static private Logger logger =
35
			LoggerFactory.getLogger(MapContextPersistenceTest.class);
36

  
37
	protected void doSetUp() throws Exception {
38
		DummyVectorLegend.registerPersistent();
39
		DummyDBFeatureStore.registerPersistent();
40
		DummyFileFeatureStore.registerPersistent();
41

  
42
		MapContextLocator.getMapContextManager().registerLegend("DummyLegend",
43
				DummyVectorLegend.class);
44
		MapContextLocator.getMapContextManager().setDefaultVectorLegend(
45
				"DummyLegend");
46
	}
47
	
48
	private File getTempFile() throws Exception {
49

  
50
		File tempFile = File.createTempFile("persisted_mapcontext", ".xml");
51
		if (tempFile.exists())
52
			tempFile.delete();
53
		tempFile.createNewFile();
54
		
55
		System.out.println("TEMP FILE: " + tempFile.getAbsolutePath());
56
		return tempFile;
57
	}
58
	
59
	public void testMapContext() throws Exception {
60
		ViewPort vp = getViewPort();
61
		logger.debug("Creating mapcontext...");
62
		MapContext mc = new MapContext(vp);
63
		addDummyLayers(mc);
64
		doTestPersist(mc);
65
	}
66

  
67
	public void noTestFLyrs() throws Exception {
68
		
69
		int lyr_count = 3;
70
		// testPersist(mc);
71
		FLyrVect[] lyr = new FLyrVect[lyr_count];
72
		FeatureStore[] fs = new FeatureStore[lyr_count];
73
		FLayers lyrs = new FLayers();
74
		
75
		for (int i=0; i<lyr_count; i++) {
76
			fs[i] = new DummyFileFeatureStore("" + System.currentTimeMillis());
77
			lyr[i] = createLayer(fs[i]);
78
			lyr[i].setName("Layer " + (i+System.currentTimeMillis()));
79
			lyr[i].setIsLabeled(false);
80
			try { lyr[i].setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) {
81
				assertTrue("Error while creating legend: " + e.getMessage(), false);
82
			}
83
			lyrs.addLayer(lyr[i]);
84
		}
85
		
86
		for (int i=0; i<lyr_count; i++) {
87
			fs[i] = new DummyDBFeatureStore("" + System.currentTimeMillis());
88
			lyr[i] = createLayer(fs[i]);
89
			lyr[i].setName("Layer " + (10000 + i + System.currentTimeMillis()));
90
			lyr[i].setIsLabeled(false);
91
			try { lyr[i].setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) {
92
				assertTrue("Error while creating legend: " + e.getMessage(), false);
93
			}
94
			lyrs.addLayer(lyr[i]);
95
		}
96
		
97
		doTestPersist(lyrs);
98
	}
99
	
100
	
101
	
102
	private ViewPort getViewPort() {
103
		
104
		ViewPort vp = new ViewPort(CRSFactory.getCRS("EPSG:4326"));
105
		vp.setImageSize(new Dimension(640, 480));
106
		Envelope env = new Envelope2D(0, 0, 1000000, 1000000);
107
		vp.setEnvelope(env);
108
		env = new Envelope2D(200000, 200000, 500000, 500000);
109
		vp.setEnvelope(env);
110
		env = new Envelope2D(300000, 300000, 300000, 300000);
111
		vp.setEnvelope(env);
112
		env = new Envelope2D(400000, 400000, 200000, 200000);
113
		vp.setEnvelope(env);
114
		env = new Envelope2D(440000, 440000, 100000, 100000);
115
		vp.setEnvelope(env);
116
		env = new Envelope2D(480000, 480000, 30000, 30000);
117
		vp.setEnvelope(env);
118
		vp.setBackColor(Color.YELLOW);
119
		vp.setClipRect(new Rectangle2D.Double(0, 0, 10, 10));
120
		return vp;
121
	}
122

  
123
	private void addDummyLayers(MapContext mcon) throws Exception {
124
		
125
		FLayers resp = new FLayers();
126
		resp.setMapContext(mcon);
127
		resp.setName("root layer");
128
		
129
		FLayers aux = new FLayers();
130
		aux.setMapContext(mcon);
131
		aux.setName("Group");
132
		
133
		FLyrVect lyr = null;
134
		IVectorLegend lgn = null;
135
		FeatureStore fs = null;
136
		
137
		logger.debug("Adding dummy layers...");
138
			
139
		fs = new DummyFileFeatureStore("1");
140
		lyr = createLayer(fs);
141
		lyr.setName("Layer 1");
142
		try { lyr.setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) { }
143
		
144
		aux.addLayer(lyr);
145
		
146
		fs = new DummyDBFeatureStore("A");
147
		lyr = createLayer(fs);
148
		lyr.setName("Layer A");
149
		try { lyr.setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) { }
150

  
151
		aux.addLayer(lyr);
152
		
153
		fs = new DummyFileFeatureStore("2");
154
		lyr = createLayer(fs);
155
		lyr.setName("Layer 2");
156
		try { lyr.setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) { }
157

  
158
		aux.addLayer(lyr);
159
		
160
		fs = new DummyDBFeatureStore("B");
161
		lyr = createLayer(fs);
162
		lyr.setName("Layer 1");
163
		try { lyr.setLegend(new DummyVectorLegend(TYPES.SOLID)); } catch (LegendLayerException e) { }
164
		
165
		resp.addLayer(lyr);
166
		resp.addLayer(aux);
167
		
168
		mcon.getLayers().addLayer(resp);
169
	}
170

  
171
	private FLyrVect createLayer(FeatureStore fs) throws Exception {
172
		
173
		FLyrVect resp = new FLyrVect();
174
		resp.setDataStore(fs);
175
		resp.wakeUp();
176
		resp.load();
177
		return resp;
178
	}
179

  
180
	private void doTestPersist(Persistent p) throws Exception {
181
		
182
		System.out.println("Starting persistence test for class: " + p.getClass().getName());
183

  
184
		File perfile = getTempFile();
185
		FileOutputStream fos = new FileOutputStream(perfile);
186
		System.out.println("Getting state for class: " + p.getClass().getName());
187
		PersistentState pst = ToolsLocator.getPersistenceManager().getState(p);
188
		System.out.println("Saving state...");
189

  
190
		System.out.println("Saving state...");
191
		ToolsLocator.getPersistenceManager().saveState(pst, fos);
192
		System.out.println("Saving state... done.");
193

  
194
		fos.close();
195

  
196
		// ==============================================
197
		// ==============================================
198
		System.out.println("Is now persisted: " + p.getClass().getName());
199
		// ==============================================
200

  
201
		// if (true) return;
202

  
203
		System.out.println("Opening persistence file...");
204
		FileInputStream fis = new FileInputStream(perfile);
205

  
206
		System.out.println("Loading state from file...");
207
		pst = ToolsLocator.getPersistenceManager().loadState(fis);
208

  
209
		System.out.println("Instantiating " + p.getClass().getName()
210
				+ " from state, pst = " + pst);
211
		Object p2 = ToolsLocator.getPersistenceManager().create(pst);
212

  
213
		System.out.println("Comparing original and current...");
214
		comparePersistent(p, p2);
215

  
216
		System.out.println("Successful mapcontext persistence test!");
217
		
218
	}
219

  
220
	
221
	// FeatureStore, ILegend, ViewPort
222
	private void comparePersistent(Persistent p, Object p2) {
223
		
224
		if (p2.getClass().getName().compareTo(p.getClass().getName()) == 0) {
225
			
226
			if (p instanceof MapContext) {
227
				compareMapContexts((MapContext) p, (MapContext) p2);
228
			} else {
229
				if (p instanceof FLayer) {
230
					compareLayers((FLayer) p, (FLayer) p2);
231
				} else {
232
					if (p instanceof FeatureStore) {
233
						compareStore((FeatureStore) p, (FeatureStore) p2);
234
					} else {
235
						if (p instanceof ILegend) {
236
							compareLegend((ILegend) p, (ILegend) p2);
237
						} else {
238
							if (p instanceof ViewPort) {
239
								compareViewPorts((ViewPort) p, (ViewPort) p2);
240
							} else {
241
								fail("Did not compare: " + p.getClass().getName());
242
							}
243
						}
244
					}
245
				}
246
			}
247
		} else {
248
			fail("Comparing different classes (?)");
249
		}
250
		
251
	}
252

  
253
	private void compareMapContexts(MapContext m1, MapContext m2) {
254
		
255
		logger.debug("Getting viewports to compare...");
256
		ViewPort vp1 = m1.getViewPort();
257
		ViewPort vp2 = m2.getViewPort();
258
		
259
		compareViewPorts(vp1, vp2);
260

  
261
		logger.debug("Getting root flayers to compare...");
262
		FLayers lyr1 = m1.getLayers();
263
		FLayers lyr2 = m2.getLayers();
264
		compareLayers(lyr1, lyr2);
265
	}
266

  
267
	private void compareLayers(FLayer l1, FLayer l2) {
268
		
269
		logger.debug("Comparing layers...");
270

  
271
		assertTrue("Layers of diff type!", l1.getClass().getName().compareTo(l2.getClass().getName()) == 0);
272
		if (l1 instanceof FLayers) {
273
			
274
			logger.debug("(type FLayers)...");
275
			FLayers ls1 = (FLayers) l1;
276
			FLayers ls2 = (FLayers) l2;
277
			assertEquals(ls1.getLayersCount(), ls2.getLayersCount());
278
			int sz = ls2.getLayersCount();
279
			for (int i=0; i<sz; i++) {
280
				compareLayers(ls1.getLayer(i), ls2.getLayer(i));
281
			}
282
			
283
		} else {
284
			if (l1 instanceof FLyrVect) {
285
				
286
				logger.debug("(type FLyrVect)...");
287
				FLyrVect ls1 = (FLyrVect) l1;
288
				FLyrVect ls2 = (FLyrVect) l2;
289
				compareVectLayers(ls1, ls2);
290
				
291
			} else {
292
				
293
			}
294
		}
295

  
296
	}
297

  
298
	private void compareVectLayers(FLyrVect l1, FLyrVect l2) {
299
		compareLegend(l1.getLegend(), l2.getLegend());
300
		compareStore(l1.getFeatureStore(), l2.getFeatureStore());
301
	}
302

  
303
	private void compareStore(FeatureStore fs1,
304
			FeatureStore fs2) {
305
		
306
		logger.debug("Comparing stores...");
307
		assertTrue("Diff stores!", fs1.getName().compareTo(fs2.getName()) == 0);
308
	}
309

  
310
	private void compareLegend(ILegend l1, ILegend l2) {
311

  
312
		logger.debug("Comparing legends...");
313
		IVectorLegend vl1 = (IVectorLegend) l1;
314
		IVectorLegend vl2 = (IVectorLegend) l2;
315
		assertTrue("Diff legends!", vl1.getShapeType() == vl2.getShapeType());
316
		
317
	}
318

  
319
	private void compareViewPorts(ViewPort vp1, ViewPort vp2) {
320

  
321

  
322
		logger.debug("Comparing viewports...");
323
		
324
		assertEquals(
325
				vp1.getAdjustedEnvelope().getMinimum(0),
326
				vp2.getAdjustedEnvelope().getMinimum(0),
327
				0.00000000000001);
328
		assertEquals(
329
				vp1.getAdjustedEnvelope().getMinimum(1),
330
				vp2.getAdjustedEnvelope().getMinimum(1),
331
				0.00000000000001);
332
		assertEquals(
333
				vp1.getAdjustedEnvelope().getMaximum(0),
334
				vp2.getAdjustedEnvelope().getMaximum(0),
335
				0.00000000000001);
336
		assertEquals(
337
				vp1.getAdjustedEnvelope().getMaximum(1),
338
				vp2.getAdjustedEnvelope().getMaximum(1),
339
				0.00000000000001);
340
	}
341
	
342
}
0 343

  
tags/v2_0_0_Build_2021/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/persistence/DummyDBFeatureStore.java
1
package org.gvsig.fmap.mapcontext.persistence;
2

  
3
import java.util.Iterator;
4
import java.util.List;
5
import java.util.Set;
6

  
7
import org.cresques.cts.IProjection;
8
import org.gvsig.fmap.dal.DataQuery;
9
import org.gvsig.fmap.dal.DataServerExplorer;
10
import org.gvsig.fmap.dal.DataSet;
11
import org.gvsig.fmap.dal.DataStoreParameters;
12
import org.gvsig.fmap.dal.exception.DataException;
13
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
14
import org.gvsig.fmap.dal.feature.EditableFeature;
15
import org.gvsig.fmap.dal.feature.EditableFeatureType;
16
import org.gvsig.fmap.dal.feature.Feature;
17
import org.gvsig.fmap.dal.feature.FeatureCache;
18
import org.gvsig.fmap.dal.feature.FeatureIndex;
19
import org.gvsig.fmap.dal.feature.FeatureIndexes;
20
import org.gvsig.fmap.dal.feature.FeatureLocks;
21
import org.gvsig.fmap.dal.feature.FeatureQuery;
22
import org.gvsig.fmap.dal.feature.FeatureReference;
23
import org.gvsig.fmap.dal.feature.FeatureSelection;
24
import org.gvsig.fmap.dal.feature.FeatureSet;
25
import org.gvsig.fmap.dal.feature.FeatureStore;
26
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms;
27
import org.gvsig.fmap.dal.feature.FeatureType;
28
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
29
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
30
import org.gvsig.fmap.geom.primitive.Envelope;
31
import org.gvsig.tools.ToolsLocator;
32
import org.gvsig.tools.dynobject.DynClass;
33
import org.gvsig.tools.dynobject.DynObject;
34
import org.gvsig.tools.dynobject.DynStruct;
35
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
36
import org.gvsig.tools.dynobject.exception.DynMethodException;
37
import org.gvsig.tools.exception.BaseException;
38
import org.gvsig.tools.observer.Observer;
39
import org.gvsig.tools.persistence.PersistenceManager;
40
import org.gvsig.tools.persistence.PersistentState;
41
import org.gvsig.tools.persistence.exception.PersistenceException;
42
import org.gvsig.tools.undo.RedoException;
43
import org.gvsig.tools.undo.UndoException;
44
import org.gvsig.tools.visitor.Visitor;
45

  
46
public class DummyDBFeatureStore implements FeatureStore {
47

  
48
	private String name = "[empty]";
49

  
50
	public DummyDBFeatureStore() {
51
		
52
	}
53
	
54
	public DummyDBFeatureStore(String id) {
55
		name = "[DATABASE FEATURE STORE - " + id + "]";
56
	}
57

  
58
	public boolean allowWrite() {
59
		// TODO Auto-generated method stub
60
		return false;
61
	}
62

  
63
	public void beginEditingGroup(String description)
64
			throws NeedEditingModeException {
65
		// TODO Auto-generated method stub
66

  
67
	}
68

  
69
	public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
70
		// TODO Auto-generated method stub
71
		return false;
72
	}
73

  
74
	public void cancelEditing() throws DataException {
75
		// TODO Auto-generated method stub
76

  
77
	}
78

  
79
	public FeatureQuery createFeatureQuery() {
80
		// TODO Auto-generated method stub
81
		return null;
82
	}
83

  
84
	public FeatureSelection createFeatureSelection() throws DataException {
85
		// TODO Auto-generated method stub
86
		return null;
87
	}
88

  
89
	public FeatureIndex createIndex(FeatureType featureType,
90
			String attributeName, String indexName) throws DataException {
91
		// TODO Auto-generated method stub
92
		return null;
93
	}
94

  
95
	public FeatureIndex createIndex(FeatureType featureType,
96
			String attributeName, String indexName, Observer observer)
97
			throws DataException {
98
		// TODO Auto-generated method stub
99
		return null;
100
	}
101

  
102
	public EditableFeature createNewFeature() throws DataException {
103
		// TODO Auto-generated method stub
104
		return null;
105
	}
106

  
107
	public EditableFeature createNewFeature(FeatureType type,
108
			Feature defaultValues) throws DataException {
109
		// TODO Auto-generated method stub
110
		return null;
111
	}
112

  
113
	public EditableFeature createNewFeature(FeatureType type,
114
			boolean defaultValues) throws DataException {
115
		// TODO Auto-generated method stub
116
		return null;
117
	}
118

  
119
	public EditableFeature createNewFeature(boolean defaultValues)
120
			throws DataException {
121
		// TODO Auto-generated method stub
122
		return null;
123
	}
124

  
125
	public void delete(Feature feature) throws DataException {
126
		// TODO Auto-generated method stub
127

  
128
	}
129

  
130
	public void edit() throws DataException {
131
		// TODO Auto-generated method stub
132

  
133
	}
134

  
135
	public void edit(int mode) throws DataException {
136
		// TODO Auto-generated method stub
137

  
138
	}
139

  
140
	public void endEditingGroup() throws NeedEditingModeException {
141
		// TODO Auto-generated method stub
142

  
143
	}
144

  
145
	public void export(DataServerExplorer explorer,
146
			String providerName,
147
			NewFeatureStoreParameters params) throws DataException {
148
		// TODO Auto-generated method stub
149

  
150
	}
151

  
152
	public void finishEditing() throws DataException {
153
		// TODO Auto-generated method stub
154

  
155
	}
156

  
157
	public FeatureType getDefaultFeatureType() throws DataException {
158
		return new DummyFileFeatureStore.DummyFeatureType();
159
	}
160

  
161
	public Envelope getEnvelope() throws DataException {
162
		// TODO Auto-generated method stub
163
		return null;
164
	}
165

  
166
	public Feature getFeatureByReference(FeatureReference reference)
167
			throws DataException {
168
		// TODO Auto-generated method stub
169
		return null;
170
	}
171

  
172
	public Feature getFeatureByReference(FeatureReference reference,
173
			FeatureType featureType) throws DataException {
174
		// TODO Auto-generated method stub
175
		return null;
176
	}
177

  
178
	public long getFeatureCount() throws DataException {
179
		// TODO Auto-generated method stub
180
		return 0;
181
	}
182

  
183
	public FeatureSelection getFeatureSelection() throws DataException {
184
		// TODO Auto-generated method stub
185
		return null;
186
	}
187

  
188
	public FeatureSet getFeatureSet() throws DataException {
189
		// TODO Auto-generated method stub
190
		return null;
191
	}
192

  
193
	public FeatureSet getFeatureSet(FeatureQuery featureQuery)
194
			throws DataException {
195
		// TODO Auto-generated method stub
196
		return null;
197
	}
198

  
199
	public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
200
			throws DataException {
201
		// TODO Auto-generated method stub
202

  
203
	}
204

  
205
	public void getFeatureSet(Observer observer) throws DataException {
206
		// TODO Auto-generated method stub
207

  
208
	}
209

  
210
	public FeatureType getFeatureType(String featureTypeId)
211
			throws DataException {
212
		// TODO Auto-generated method stub
213
		return null;
214
	}
215

  
216
	public List getFeatureTypes() throws DataException {
217
		// TODO Auto-generated method stub
218
		return null;
219
	}
220

  
221
	public FeatureIndexes getIndexes() {
222
		// TODO Auto-generated method stub
223
		return null;
224
	}
225

  
226
	public FeatureLocks getLocks() throws DataException {
227
		// TODO Auto-generated method stub
228
		return null;
229
	}
230

  
231
	public DataStoreParameters getParameters() {
232
		// TODO Auto-generated method stub
233
		return null;
234
	}
235

  
236
	public IProjection getSRSDefaultGeometry() throws DataException {
237
		// TODO Auto-generated method stub
238
		return null;
239
	}
240

  
241
	public FeatureStoreTransforms getTransforms() {
242
		// TODO Auto-generated method stub
243
		return null;
244
	}
245

  
246
	public void insert(EditableFeature feature) throws DataException {
247
		// TODO Auto-generated method stub
248

  
249
	}
250

  
251
	public boolean isAppendModeSupported() {
252
		// TODO Auto-generated method stub
253
		return false;
254
	}
255

  
256
	public boolean isAppending() {
257
		// TODO Auto-generated method stub
258
		return false;
259
	}
260

  
261
	public boolean isEditing() {
262
		// TODO Auto-generated method stub
263
		return false;
264
	}
265

  
266
	public boolean isLocksSupported() {
267
		// TODO Auto-generated method stub
268
		return false;
269
	}
270

  
271
	public void setSelection(FeatureSet selection) throws DataException {
272
		// TODO Auto-generated method stub
273

  
274
	}
275

  
276
	public void update(EditableFeatureType featureType) throws DataException {
277
		// TODO Auto-generated method stub
278

  
279
	}
280

  
281
	public void update(EditableFeature feature) throws DataException {
282
		// TODO Auto-generated method stub
283

  
284
	}
285

  
286
	public void validateFeatures(int mode) throws DataException {
287
		// TODO Auto-generated method stub
288

  
289
	}
290

  
291
	public DataQuery createQuery() {
292
		// TODO Auto-generated method stub
293
		return null;
294
	}
295

  
296
	public DataSet createSelection() throws DataException {
297
		// TODO Auto-generated method stub
298
		return null;
299
	}
300

  
301
	public void dispose() {
302
		// TODO Auto-generated method stub
303

  
304
	}
305

  
306
	public Iterator getChildren() {
307
		// TODO Auto-generated method stub
308
		return null;
309
	}
310

  
311
	public DataSet getDataSet() throws DataException {
312
		// TODO Auto-generated method stub
313
		return null;
314
	}
315

  
316
	public DataSet getDataSet(DataQuery dataQuery) throws DataException {
317
		// TODO Auto-generated method stub
318
		return null;
319
	}
320

  
321
	public void getDataSet(Observer observer) throws DataException {
322
		// TODO Auto-generated method stub
323

  
324
	}
325

  
326
	public void getDataSet(DataQuery dataQuery, Observer observer)
327
			throws DataException {
328
		// TODO Auto-generated method stub
329

  
330
	}
331

  
332
	public DataServerExplorer getExplorer() throws DataException,
333
			ValidateDataParametersException {
334
		// TODO Auto-generated method stub
335
		return null;
336
	}
337

  
338
	public String getName() {
339
		// TODO Auto-generated method stub
340
		return name;
341
	}
342

  
343
	public DataSet getSelection() throws DataException {
344
		// TODO Auto-generated method stub
345
		return null;
346
	}
347

  
348
	public void refresh() throws DataException {
349
		// TODO Auto-generated method stub
350

  
351
	}
352

  
353
	public void setSelection(DataSet selection) throws DataException {
354
		// TODO Auto-generated method stub
355

  
356
	}
357

  
358
	public void beginComplexNotification() {
359
		// TODO Auto-generated method stub
360

  
361
	}
362

  
363
	public void disableNotifications() {
364
		// TODO Auto-generated method stub
365

  
366
	}
367

  
368
	public void enableNotifications() {
369
		// TODO Auto-generated method stub
370

  
371
	}
372

  
373
	public void endComplexNotification() {
374
		// TODO Auto-generated method stub
375

  
376
	}
377

  
378
	public void addObserver(Observer o) {
379
		// TODO Auto-generated method stub
380

  
381
	}
382

  
383
	public void deleteObserver(Observer o) {
384
		// TODO Auto-generated method stub
385

  
386
	}
387

  
388
	public void deleteObservers() {
389
		// TODO Auto-generated method stub
390

  
391
	}
392

  
393
	public void loadFromState(PersistentState state) throws PersistenceException {
394
		name = state.getString("name");
395
	}
396

  
397
	public void saveToState(PersistentState state) throws PersistenceException {
398
		state.set("name", name);
399
	}
400

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

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

  
411
	public String getMetadataName() {
412
		// TODO Auto-generated method stub
413
		return null;
414
	}
415

  
416
	public void delegate(DynObject dynObject) {
417
		// TODO Auto-generated method stub
418

  
419
	}
420

  
421
	public DynClass getDynClass() {
422
		// TODO Auto-generated method stub
423
		return null;
424
	}
425

  
426
	public Object getDynValue(String name) throws DynFieldNotFoundException {
427
		// TODO Auto-generated method stub
428
		return null;
429
	}
430

  
431
	public boolean hasDynValue(String name) {
432
		// TODO Auto-generated method stub
433
		return false;
434
	}
435

  
436
	public void implement(DynClass dynClass) {
437
		// TODO Auto-generated method stub
438

  
439
	}
440

  
441
	public Object invokeDynMethod(String name, DynObject context)
442
			throws DynMethodException {
443
		// TODO Auto-generated method stub
444
		return null;
445
	}
446

  
447
	public Object invokeDynMethod(int code, DynObject context)
448
			throws DynMethodException {
449
		// TODO Auto-generated method stub
450
		return null;
451
	}
452

  
453
	public void setDynValue(String name, Object value)
454
			throws DynFieldNotFoundException {
455
		// TODO Auto-generated method stub
456

  
457
	}
458

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

  
464
	public boolean canUndo() {
465
		// TODO Auto-generated method stub
466
		return false;
467
	}
468

  
469
	public List getRedoInfos() {
470
		// TODO Auto-generated method stub
471
		return null;
472
	}
473

  
474
	public List getUndoInfos() {
475
		// TODO Auto-generated method stub
476
		return null;
477
	}
478

  
479
	public void redo() throws RedoException {
480
		// TODO Auto-generated method stub
481

  
482
	}
483

  
484
	public void redo(int num) throws RedoException {
485
		// TODO Auto-generated method stub
486

  
487
	}
488

  
489
	public void undo() throws UndoException {
490
		// TODO Auto-generated method stub
491

  
492
	}
493

  
494
	public void undo(int num) throws UndoException {
495
		// TODO Auto-generated method stub
496

  
497
	}
498
	
499
	
500
	public static void registerPersistent() {
501
		PersistenceManager manager = ToolsLocator.getPersistenceManager();
502
		DynStruct definition = manager.addDefinition(
503
				DummyDBFeatureStore.class,
504
				"DummyDBFeatureStore",
505
				"DummyDBFeatureStore Persistence definition",
506
				null, 
507
				null
508
		);
509
		definition.addDynFieldString("name");
510
	}
511

  
512
	public void accept(Visitor visitor) throws BaseException {
513
		// TODO Auto-generated method stub
514

  
515
	}
516

  
517
	public void accept(Visitor visitor, DataQuery dataQuery)
518
			throws BaseException {
519
		// TODO Auto-generated method stub
520

  
521
	}
522

  
523
	public void createCache(String name, DynObject parameters)
524
			throws DataException {
525
		// TODO Auto-generated method stub
526
		
527
	}
528

  
529
	public FeatureCache getCache() {
530
		// TODO Auto-generated method stub
531
		return null;
532
	}
533

  
534
	public void clear() {
535
		// Nothing to do
536
	}
537

  
538
	public String getProviderName() {
539
		// TODO Auto-generated method stub
540
		return null;
541
	}
542

  
543
	public String getFullName() {
544
		// TODO Auto-generated method stub
545
		return null;
546
	}
547
}
0 548

  
tags/v2_0_0_Build_2021/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/persistence/DummyFileFeatureStore.java
1
package org.gvsig.fmap.mapcontext.persistence;
2

  
3
import java.text.DateFormat;
4
import java.util.Iterator;
5
import java.util.List;
6
import java.util.Set;
7

  
8
import org.cresques.cts.IProjection;
9

  
10
import org.gvsig.fmap.dal.DataQuery;
11
import org.gvsig.fmap.dal.DataServerExplorer;
12
import org.gvsig.fmap.dal.DataSet;
13
import org.gvsig.fmap.dal.DataStoreParameters;
14
import org.gvsig.fmap.dal.exception.DataException;
15
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
16
import org.gvsig.fmap.dal.feature.EditableFeature;
17
import org.gvsig.fmap.dal.feature.EditableFeatureType;
18
import org.gvsig.fmap.dal.feature.Feature;
19
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
20
import org.gvsig.fmap.dal.feature.FeatureCache;
21
import org.gvsig.fmap.dal.feature.FeatureIndex;
22
import org.gvsig.fmap.dal.feature.FeatureIndexes;
23
import org.gvsig.fmap.dal.feature.FeatureLocks;
24
import org.gvsig.fmap.dal.feature.FeatureQuery;
25
import org.gvsig.fmap.dal.feature.FeatureReference;
26
import org.gvsig.fmap.dal.feature.FeatureRules;
27
import org.gvsig.fmap.dal.feature.FeatureSelection;
28
import org.gvsig.fmap.dal.feature.FeatureSet;
29
import org.gvsig.fmap.dal.feature.FeatureStore;
30
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms;
31
import org.gvsig.fmap.dal.feature.FeatureType;
32
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
33
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
34
import org.gvsig.fmap.geom.Geometry;
35
import org.gvsig.fmap.geom.primitive.Envelope;
36
import org.gvsig.tools.ToolsLocator;
37
import org.gvsig.tools.dataTypes.CoercionException;
38
import org.gvsig.tools.dataTypes.DataType;
39
import org.gvsig.tools.dynobject.DynClass;
40
import org.gvsig.tools.dynobject.DynField;
41
import org.gvsig.tools.dynobject.DynMethod;
42
import org.gvsig.tools.dynobject.DynObject;
43
import org.gvsig.tools.dynobject.DynObjectValueItem;
44
import org.gvsig.tools.dynobject.DynStruct;
45
import org.gvsig.tools.dynobject.exception.DynFieldIsNotAContainerException;
46
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
47
import org.gvsig.tools.dynobject.exception.DynFieldValidateException;
48
import org.gvsig.tools.dynobject.exception.DynMethodException;
49
import org.gvsig.tools.dynobject.exception.DynObjectValidateException;
50
import org.gvsig.tools.evaluator.Evaluator;
51
import org.gvsig.tools.exception.BaseException;
52
import org.gvsig.tools.observer.Observer;
53
import org.gvsig.tools.persistence.PersistenceManager;
54
import org.gvsig.tools.persistence.PersistentState;
55
import org.gvsig.tools.persistence.exception.PersistenceException;
56
import org.gvsig.tools.undo.RedoException;
57
import org.gvsig.tools.undo.UndoException;
58
import org.gvsig.tools.visitor.Visitor;
59

  
60
public class DummyFileFeatureStore implements FeatureStore {
61

  
62
	public static class DummyFeatureAttributeDescriptor implements
63
			FeatureAttributeDescriptor {
64

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  
179
        public int getTheTypeOfAvailableValues() {
180
            // TODO Auto-generated method stub
181
            return 0;
182
        }
183

  
184
        public boolean isContainer() {
185
            // TODO Auto-generated method stub
186
            return false;
187
        }
188

  
189
        public boolean isHidden() {
190
            // TODO Auto-generated method stub
191
            return false;
192
        }
193

  
194
        public boolean isMandatory() {
195
            // TODO Auto-generated method stub
196
            return false;
197
        }
198

  
199
        public boolean isPersistent() {
200
            // TODO Auto-generated method stub
201
            return false;
202
        }
203

  
204
        public DynField setAvailableValues(DynObjectValueItem[] values) {
205
            // TODO Auto-generated method stub
206
            return null;
207
        }
208

  
209
        public DynField setAvailableValues(List values) {
210
            // TODO Auto-generated method stub
211
            return null;
212
        }
213

  
214
        public DynField setClassOfItems(Class theClass)
215
            throws DynFieldIsNotAContainerException {
216
            // TODO Auto-generated method stub
217
            return null;
218
        }
219

  
220
        public DynField setClassOfValue(Class theClass)
221
            throws DynFieldIsNotAContainerException {
222
            // TODO Auto-generated method stub
223
            return null;
224
        }
225

  
226
        public DynField setDefaultDynValue(Object defaultValue) {
227
            // TODO Auto-generated method stub
228
            return null;
229
        }
230

  
231
        public DynField setDefaultFieldValue(Object defaultValue) {
232
            // TODO Auto-generated method stub
233
            return null;
234
        }
235

  
236
        public DynField setDescription(String description) {
237
            // TODO Auto-generated method stub
238
            return null;
239
        }
240

  
241
        public DynField setElementsType(int type)
242
            throws DynFieldIsNotAContainerException {
243
            // TODO Auto-generated method stub
244
            return null;
245
        }
246

  
247
        public DynField setElementsType(DynStruct type)
248
            throws DynFieldIsNotAContainerException {
249
            // TODO Auto-generated method stub
250
            return null;
251
        }
252

  
253
        public DynField setGroup(String groupName) {
254
            // TODO Auto-generated method stub
255
            return null;
256
        }
257

  
258
        public DynField setHidden(boolean hidden) {
259
            // TODO Auto-generated method stub
260
            return null;
261
        }
262

  
263
        public DynField setMandatory(boolean mandatory) {
264
            // TODO Auto-generated method stub
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff