Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / spi / AbstractDataStoreProviderFactory.java @ 42891

History | View | Annotate | Download (2.34 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.dal.spi;
25

    
26
import org.gvsig.fmap.dal.DataStoreProviderFactory;
27
import org.gvsig.tools.dynobject.DynObject;
28
import org.gvsig.tools.service.ServiceException;
29
import org.gvsig.tools.service.spi.Provider;
30
import org.gvsig.tools.service.spi.ProviderServices;
31

    
32
public abstract class AbstractDataStoreProviderFactory implements
33
                DataStoreProviderFactory {
34

    
35
        private String name = null;
36
        private String description = "";
37

    
38

    
39
        protected AbstractDataStoreProviderFactory(String name, String description) {
40
                this.name = name;
41
                this.description = description;
42
        }
43
        
44
        @Override
45
        public final Provider create(DynObject parameters, ProviderServices services)
46
                        throws ServiceException {
47
                throw new UnsupportedOperationException();
48
        }
49

    
50
        @Override
51
        public final void initialize() {
52
                throw new UnsupportedOperationException();
53
        }
54

    
55
        @Override
56
        public final String getName() {
57
                return this.name;
58
        }
59

    
60
        @Override
61
        public final String getDescription() {
62
                return this.description;
63
        }
64

    
65
        @Override
66
        public int allowRead() {
67
                return UNKNOWN;
68
        }
69

    
70
        @Override
71
        public int allowWrite() {
72
                return UNKNOWN;
73
        }
74

    
75
        @Override
76
        public int allowCreate() {
77
                return UNKNOWN;
78
        }
79

    
80
        @Override
81
        public int hasTabularSupport() {
82
                return UNKNOWN;
83
        }
84

    
85
        @Override
86
        public int hasVectorialSupport() {
87
                return UNKNOWN;
88
        }
89

    
90
        @Override
91
        public int hasRasterSupport() {
92
                return UNKNOWN;
93
        }
94
}