root / branches / v2_0_0_prep / libraries / libFMap_dataFile / src / org / gvsig / data / datastores / vectorial / file / dxf / DXFStoreParameters.java @ 21709
History | View | Annotate | Download (1.05 KB)
1 |
package org.gvsig.data.datastores.vectorial.file.dxf; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
|
5 |
import org.cresques.cts.IProjection; |
6 |
import org.gvsig.data.datastores.vectorial.file.FileStoreParameters; |
7 |
|
8 |
|
9 |
public class DXFStoreParameters implements FileStoreParameters{ |
10 |
private File dxffile; |
11 |
private IProjection projection;
|
12 |
public String getDataStoreName() { |
13 |
return DXFStore.DATASTORE_NAME;
|
14 |
} |
15 |
public IProjection getProjection() {
|
16 |
return projection;
|
17 |
} |
18 |
public void setProjection(IProjection projection){ |
19 |
this.projection=projection;
|
20 |
} |
21 |
public boolean isValid() { |
22 |
return dxffile != null && this.projection != null; |
23 |
} |
24 |
/* (non-Javadoc)
|
25 |
* @see org.gvsig.data.datastores.vectorial.file.FileStoreParameters#getFile()
|
26 |
*/
|
27 |
public File getFile() { |
28 |
return dxffile;
|
29 |
} |
30 |
/* (non-Javadoc)
|
31 |
* @see org.gvsig.data.datastores.vectorial.file.FileStoreParameters#setFile(java.io.File)
|
32 |
*/
|
33 |
public void setFile(File aFile) { |
34 |
this.dxffile = aFile;
|
35 |
} |
36 |
public boolean fileAccept(File f) { |
37 |
return f.getAbsolutePath().toLowerCase().endsWith(".dxf"); |
38 |
} |
39 |
} |