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 / AbstractFilesystemProviderServices.java @ 43019

History | View | Annotate | Download (1.33 KB)

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

    
3
import org.gvsig.fmap.dal.serverexplorer.filesystem.spi.FilesystemProviderServices;
4

    
5
/**
6
 * Abstract implementation of FilesystemServerExplorerProviderFactoryParameters
7
 * @author dmartinezizquierdo
8
 *
9
 */
10
public abstract class AbstractFilesystemProviderServices implements FilesystemProviderServices{
11

    
12
    String name=null;
13
    String description=null;
14
    int allowCreate=FilesystemProviderServices.UNKNOWN;
15
    int mode=-1;
16

    
17
    /**
18
     * Returns the name of the provider
19
     *
20
     * @return name of the provider
21
     */
22
    public String getName(){
23
        return name;
24
    }
25

    
26
    /**
27
     * Return a short descripion about the provider
28
     *
29
     * @return description about the provider
30
     */
31
    public String getDescription(){
32
        return description;
33
    }
34

    
35
    /**
36
     * The provider can create new stores.
37
     *
38
     * @return YES if has creation support
39
     */
40
    public int allowCreate(){
41
        return allowCreate;
42
    }
43

    
44
    /**
45
     * Returns the mode supported
46
     * @return DataServerExplorer.MODE
47
     */
48
    public int getMode(){
49
        return mode;
50
    }
51

    
52
    /**
53
     * Return true if any mode in the parameter is supported.
54
     *
55
     * @param mode
56
     * @return boolean
57
     */
58
    public boolean isMode(int mode){
59
        return this.mode==mode;
60
    }
61

    
62
}