Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / dataTypes / DataTypes.java @ 2601

History | View | Annotate | Download (3.95 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 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
 * 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.tools.dataTypes;
25

    
26

    
27
/**
28
 * This interface defines a set of constants for
29
 * basic data types supported by gvSIG.
30
 */
31
public interface DataTypes {
32

    
33
        public static final int INVALID = 0x00;
34

    
35
        public static final int UNKNOWN = 0x00;
36
        public static final int BOOLEAN = 0x01;
37
        public static final int BYTE = 0x02;
38
        public static final int CHAR = 0x03;
39
        public static final int INT = 0x04;
40
        public static final int LONG = 0x05;
41
        public static final int FLOAT = 0x06;
42
        public static final int DOUBLE = 0x07;
43
        public static final int STRING = 0x08;
44
        public static final int DATE = 0x09;
45
        public static final int TIME = 0x0A;
46
        public static final int TIMESTAMP = 0x0B;
47
        public static final int BYTEARRAY = 0x0C;
48
        public static final int FILE = 0x0D;
49
        public static final int FOLDER = 0x0E;
50
        public static final int DYNOBJECT = 0x0F;
51
        public static final int URL = 0x10;
52
        public static final int URI = 0x11;
53
        public static final int VERSION = 0x12;
54
        public static final int DECIMAL = 0x13;
55
        public static final int LOCALE = 0x14;
56
        
57
        @Deprecated 
58
        public static final int BIGDECIMAL = DECIMAL;
59
        public static final int INTEGER = INT;
60

    
61
        public static final int CONTAINER = 0x20;
62
        public static final int ARRAY = 0x21;
63
        public static final int LIST = 0x22;
64
        public static final int SET = 0x23;
65
        public static final int MAP = 0x24;
66

    
67
        public static final int OBJECT = 0x40;
68

    
69
        public static final int MAX_TYPE_VALUE = 0x7f;
70

    
71
        public static final String SUBTYPE_FILE = "File";
72
        public static final String SUBTYPE_FOLDER = "Folder";
73
        public static final String SUBTYPE_DATE = "Date";
74
        public static final String SUBTYPE_TEXT = "Text";
75
        public static final String SUBTYPE_SCRIPT = "Script";
76
        public static final String SUBTYPE_PASSWORD = "Password";
77

    
78

    
79

    
80
        public static final String UNKNOWN_NAME = "";
81
        public static final String BOOLEAN_NAME = "Boolean";
82
        public static final String BYTE_NAME = "Byte";
83
        public static final String CHAR_NAME = "Char";
84
        public static final String INT_NAME = "Integer";
85
        public static final String LONG_NAME = "Long";
86
        public static final String FLOAT_NAME = "Float";
87
        public static final String DOUBLE_NAME = "Double";
88
        public static final String STRING_NAME = "String";
89
        public static final String DATE_NAME = "Date";
90
        public static final String TIME_NAME = "Time";
91
        public static final String TIMESTAMP_NAME = "Timestamp";
92
        public static final String BYTEARRAY_NAME = "ByteArray";
93
        public static final String FILE_NAME = "File";
94
        public static final String FOLDER_NAME = "Folder";
95
        public static final String DYNOBJECT_NAME = "DynObject";
96
        public static final String URL_NAME = "URL";
97
        public static final String URI_NAME = "URI";
98
        public static final String VERSION_NAME = "Version";
99
        public static final String DECIMAL_NAME = "Decimal";
100
        public static final String LOCALE_NAME = "Locale";
101
        public static final String ARRAY_NAME = "Array";
102
        public static final String LIST_NAME = "List";
103
        public static final String SET_NAME = "Set";
104
        public static final String MAP_NAME = "Map";
105

    
106
        public static final String OBJECT_NAME = "Object";
107

    
108
}