Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.file / org.gvsig.fmap.dal.file.lib / src / main / java / org / gvsig / fmap / dal / serverexplorer / filesystem / impl / AbstractFilesystemServerExplorerProviderFactory.java @ 44831

History | View | Annotate | Download (1.03 KB)

1
package org.gvsig.fmap.dal.serverexplorer.filesystem.impl;
2

    
3

    
4
import org.gvsig.fmap.dal.serverexplorer.filesystem.spi.FilesystemServerExplorerProviderFactory;
5

    
6
/**
7
 * Abstract Factory to create File System Server Explorer Providers
8
 * @author dmartinezizquierdo
9
 *
10
 */
11
public abstract class AbstractFilesystemServerExplorerProviderFactory
12
    implements FilesystemServerExplorerProviderFactory {
13

    
14
    private final String name;
15
    private final String description;
16

    
17
    public AbstractFilesystemServerExplorerProviderFactory(String name, String description){
18
        this.name = name;
19
        this.description = description;
20
    }
21

    
22
    @Override
23
    public String getName() {
24
        return this.name;
25
    }
26

    
27
    @Override
28
    public String getDescription() {
29
        return this.description;
30
    }
31

    
32
    @Override
33
    public int allowCreate() {
34
        return UNKNOWN;
35
    }
36

    
37
    @Override
38
    public boolean isHidden() {
39
        return false;
40
    }
41
    
42
    @Override
43
    public boolean isMode(int mode) {
44
        return this.getMode()==mode;
45
    }
46
}