Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dataFile / src / org / gvsig / fmap / data / feature / file / dxf / DXFStoreParameters.java @ 22373

History | View | Annotate | Download (1.08 KB)

1
package org.gvsig.fmap.data.feature.file.dxf;
2

    
3
import java.io.File;
4

    
5
import org.cresques.cts.IProjection;
6
import org.gvsig.fmap.data.feature.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.fmap.data.feature.file.FileStoreParameters#getFile()
26
         */
27
        public File getFile() {
28
                return dxffile;
29
        }
30
        /* (non-Javadoc)
31
         * @see org.gvsig.fmap.data.feature.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

    
40
        public String getDescription() {
41
                return "DXF File";
42
        }
43

    
44
}