Statistics
| Revision:

root / branches / Mobile1.0 / org.gvsig.gpe / src / org / gvsig / gpe / datatypes / GPEDataTypesManager.java @ 79

History | View | Annotate | Download (2.8 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
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 2
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
*/
22

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
28
package org.gvsig.gpe.datatypes;
29
/**
30
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
31
 */
32
public interface GPEDataTypesManager {
33
        public final static int GEOMETRY = 0;
34
        public final static int POINT = 1;
35
        public final static int LINESTRING = 2;
36
        public final static int POLYGON = 3;
37
        public final static int SOLID = 4;
38
        public final static int MULTIGEOMETRY = 6;
39
        public final static int MULTIPOINT = 7;
40
        public final static int MULTILINESTRING = 8;
41
        public final static int MULTIPOLYGON = 9;
42
        public final static int MULTISOLID = 10;
43
        
44
        
45
        public void registerFormat(String mimeType, String format);
46
        
47
        public String getFormat(String mimeType);        
48
        
49
        
50
        public Object getApplicationDataTypeByFormat(String format, Object parserDataType);
51
        
52
        public Object getParserDataTypeByFormat(String format, Object applicationDataType);
53
        
54
        public Object getApplicationDataTypeByMimeType(String mimeType, Object parserDataType);
55
        
56
        public Object getParserDataTypeByMimeType(String mimeType, Object applicationDataType);
57
        
58
        public Object getApplicationGeometryTypeByFormat(String format, Object parserGeometryType);
59
        
60
        public Object getParserGeometryTypeByFormat(String format, Object applicationGeometry);
61
        
62
        public Object getApplicationGeometryTypeByMimeType(String mimeType, Object parserGeometryType);
63
        
64
        public Object getParserGeometryTypeByMimeType(String mimeType, Object applicationGeometry);        
65
        
66
        public void addParserGeometryType(String format, Object parserGeometryType, int gpeGeometryType);
67
        
68
        public void addParserDataType(String format, Object parserDataType, int gpeDataType);
69
        
70
        public void registerAppGeometryType(Object appGeometrytype, int gpeGeometryType);
71
        
72
        public void registerAppDataType(Object appDataType, int gpeDataType);
73
        
74
        public void registerAppGeometryType(int appGeometrytype, int gpeGeometryType);
75
        
76
        public void registerAppDataType(int appDataType, int gpeDataType);
77
}
78