Revision 25789 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dxf/DXFStoreProvider.java

View differences:

DXFStoreProvider.java
7 7
import java.util.ArrayList;
8 8
import java.util.Iterator;
9 9
import java.util.List;
10
import java.util.Set;
10 11
import java.util.Vector;
11 12

  
12 13
import org.cresques.cts.IProjection;
......
27 28
import org.gvsig.fmap.dal.DALLocator;
28 29
import org.gvsig.fmap.dal.DataManager;
29 30
import org.gvsig.fmap.dal.DataServerExplorer;
31
import org.gvsig.fmap.dal.DataStoreNotification;
30 32
import org.gvsig.fmap.dal.DataTypes;
31 33
import org.gvsig.fmap.dal.exception.DataException;
32 34
import org.gvsig.fmap.dal.exception.InitializeException;
......
67 69
import org.gvsig.fmap.geom.primitive.Surface2DZ;
68 70
import org.gvsig.fmap.geom.util.Converter;
69 71
import org.gvsig.fmap.geom.util.UtilFunctions;
72
import org.gvsig.tools.dynobject.exception.DynMethodException;
70 73
import org.gvsig.tools.exception.NotYetImplemented;
71
import org.gvsig.tools.operations.OperationNotSupportedException;
72 74
import org.gvsig.tools.persistence.AbstractPersistenceManager;
73 75
import org.gvsig.tools.persistence.PersistenceException;
74 76
import org.gvsig.tools.persistence.PersistentState;
......
76 78
public class DXFStoreProvider extends AbstractMemoryStoreProvider implements
77 79
		ResourceConsumer {
78 80

  
79
	final public static String NAME = "DXF";
80
	final public static String DESCRIPTION = "DXF file";
81
	public static final String NAME = "DXF";
82
	public static final String DESCRIPTION = "DXF file";
83
	public static final String DYNCLASS_NAME = "DXFFile";
81 84

  
82 85
	private int ID_FIELD_ID = 0;
83 86
	private int ID_FIELD_GEOMETRY = 1;
......
123 126
		this.projection = this.getParameters().getCRS();
124 127

  
125 128
		try {
126
			leyendBuilder = (LegendBuilder) store.invokeOperation(
127
					LegendBuilder.OPERATION_NAME, null);
128
		} catch (OperationNotSupportedException e) {
129
			leyendBuilder = (LegendBuilder) store.invokeDynMethod(
130
					LegendBuilder.DYNMETHOD_BUILDER_NAME, null);
131
		} catch (DynMethodException e) {
129 132
			leyendBuilder = null;
130 133
		} catch (Exception e) {
131 134
			throw new InitializeException(e);
......
237 240
			}
238 241
			resource.notifyOpen();
239 242
			writer.end();
240
			resource.notifyClose();
243
			resource.notifyChanges();
241 244
			features.dispose();
242 245
			counterNewsOIDs = 0;
243 246

  
......
1359 1362
		return this.envelope;
1360 1363
	}
1361 1364

  
1365
	public Object getMetadataID() {
1366
		// TODO Auto-generated method stub
1367
		return null;
1368
	}
1362 1369

  
1370
	public Iterator getChilds() {
1371
		// TODO Auto-generated method stub
1372
		return null;
1373
	}
1363 1374

  
1375
	/*
1376
	 * (non-Javadoc)
1377
	 * 
1378
	 * @see org.gvsig.metadata.Metadata#getMetadataChildren()
1379
	 */
1380
	public Set getMetadataChildren() {
1381
		return null;
1382
	}
1383

  
1384
	/*
1385
	 * (non-Javadoc)
1386
	 * 
1387
	 * @see org.gvsig.metadata.Metadata#getMetadataName()
1388
	 */
1389
	public String getMetadataName() {
1390
		return this.getParameters().getFileName();
1391
	}
1392

  
1393
	/*
1394
	 * (non-Javadoc)
1395
	 * 
1396
	 * @see
1397
	 * org.gvsig.fmap.dal.resource.spi.ResourceConsumer#resourceChanged(org.
1398
	 * gvsig.fmap.dal.resource.spi.ResourceProvider)
1399
	 */
1400
	public void resourceChanged(ResourceProvider resource) {
1401
		this.store.notifyChange(DataStoreNotification.RESOURCE_CHANGED,
1402
				resource);
1403
	}
1364 1404
}

Also available in: Unified diff