001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or (at your option) any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.data.vpf.ifc;
017:
018: /**
019: * DataTypesDefinition.java Created: Thu Jan 02 17:26:02 2003
020: *
021: * @author <a href="mailto:kobit@users.sourceforge.net">Artur Hefczyc</a>
022: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/vpf/src/main/java/org/geotools/data/vpf/ifc/DataTypesDefinition.java $
023: * @version $Id: DataTypesDefinition.java 22482 2006-10-31 02:58:00Z desruisseaux $
024: */
025: public interface DataTypesDefinition {
026: // Byte order codes
027:
028: /**
029: * <code>LEAST_SIGNIF_FIRST</code> stores code for indicator of byte order
030: * <code>least-significant-byte-first</code> used during creating table.
031: * It is little-endian byte order used on Intel x86 based PCs but not in
032: * JVM.
033: */
034: public static final char LEAST_SIGNIF_FIRST = 'L';
035:
036: /** Variable constant <code>LITTLE_ENDIAN_ORDER</code> keeps value of */
037: public static final char LITTLE_ENDIAN_ORDER = LEAST_SIGNIF_FIRST;
038:
039: /**
040: * <code>MOST_SIGNIF_FIRST</code> stores code for indicator of byte order
041: * <code>most-significant-byte-first</code> used during creating table. It
042: * is big-endian byte order used on Motorola CPU based machines and in
043: * JVM.
044: */
045: public static final char MOST_SIGNIF_FIRST = 'M';
046:
047: /** Variable constant <code>BIG_ENDIAN_ORDER</code> keeps value of */
048: public static final char BIG_ENDIAN_ORDER = MOST_SIGNIF_FIRST;
049:
050: // Data type codes
051:
052: /** Variable constant <code>DATA_TEXT</code> keeps value of */
053: public static final char DATA_TEXT = 'T';
054:
055: /** Variable constant <code>DATA_LEVEL1_TEXT</code> keeps value of */
056: public static final char DATA_LEVEL1_TEXT = 'L';
057:
058: /** Variable constant <code>DATA_LEVEL2_TEXT</code> keeps value of */
059: public static final char DATA_LEVEL2_TEXT = 'N';
060:
061: /** Variable constant <code>DATA_LEVEL3_TEXT</code> keeps value of */
062: public static final char DATA_LEVEL3_TEXT = 'M';
063:
064: /** Variable constant <code>DATA_SHORT_FLOAT</code> keeps value of */
065: public static final char DATA_SHORT_FLOAT = 'F';
066:
067: /** Variable constant <code>DATA_LONG_FLOAT</code> keeps value of */
068: public static final char DATA_LONG_FLOAT = 'R';
069:
070: /** Variable constant <code>DATA_SHORT_INTEGER</code> keeps value of */
071: public static final char DATA_SHORT_INTEGER = 'S';
072:
073: /** Variable constant <code>DATA_LONG_INTEGER</code> keeps value of */
074: public static final char DATA_LONG_INTEGER = 'I';
075:
076: /** Variable constant <code>DATA_2_COORD_F</code> keeps value of */
077: public static final char DATA_2_COORD_F = 'C';
078:
079: /** Variable constant <code>DATA_2_COORD_R</code> keeps value of */
080: public static final char DATA_2_COORD_R = 'B';
081:
082: /** Variable constant <code>DATA_3_COORD_F</code> keeps value of */
083: public static final char DATA_3_COORD_F = 'Z';
084:
085: /** Variable constant <code>DATA_3_COORD_R</code> keeps value of */
086: public static final char DATA_3_COORD_R = 'Y';
087:
088: /** Variable constant <code>DATA_DATE_TIME</code> keeps value of */
089: public static final char DATA_DATE_TIME = 'D';
090:
091: /** Variable constant <code>DATA_NULL_FIELD</code> keeps value of */
092: public static final char DATA_NULL_FIELD = 'X';
093:
094: /** Variable constant <code>DATA_TRIPLET_ID</code> keeps value of */
095: public static final char DATA_TRIPLET_ID = 'K';
096:
097: /** Variable constant <code>DATA_SHORT_FLOAT_LEN</code> keeps value of */
098: public static final int DATA_SHORT_FLOAT_LEN = 4;
099:
100: /** Variable constant <code>DATA_LONG_FLOAT_LEN</code> keeps value of */
101: public static final int DATA_LONG_FLOAT_LEN = 8;
102:
103: /** Variable constant <code>DATA_SHORT_INTEGER_LEN</code> keeps value of */
104: public static final int DATA_SHORT_INTEGER_LEN = 2;
105:
106: /** Variable constant <code>DATA_LONG_INTEGER_LEN</code> keeps value of */
107: public static final int DATA_LONG_INTEGER_LEN = 4;
108:
109: /** Variable constant <code>DATA_DATE_TIME_LEN</code> keeps value of */
110: public static final int DATA_DATE_TIME_LEN = 20;
111:
112: /** Variable constant <code>DATA_2_COORD_F_LEN</code> keeps value of */
113: public static final int DATA_2_COORD_F_LEN = 8;
114:
115: /** Variable constant <code>DATA_2_COORD_R_LEN</code> keeps value of */
116: public static final int DATA_2_COORD_R_LEN = 16;
117:
118: /** Variable constant <code>DATA_3_COORD_F_LEN</code> keeps value of */
119: public static final int DATA_3_COORD_F_LEN = 12;
120:
121: /** Variable constant <code>DATA_3_COORD_R_LEN</code> keeps value of */
122: public static final int DATA_3_COORD_R_LEN = 24;
123:
124: /** Variable constant <code>DATA_TRIPLET_ID_LEN</code> keeps value of */
125: public static final int DATA_TRIPLET_ID_LEN = 1;
126:
127: /** Variable constant <code>DATA_NULL_FIELD_LEN</code> keeps value of */
128: public static final int DATA_NULL_FIELD_LEN = 0;
129:
130: /** Variable constant <code>STRING_NULL_VALUE</code> keeps value of */
131: public static final String STRING_NULL_VALUE = "-";
132:
133: /** Variable constant <code>STRING_NULL_VALUES</code> keeps value of */
134: public static final String[] STRING_NULL_VALUES = { "-", "--",
135: "N/A" };
136:
137: /** Variable constant <code>CHAR_NULL_VALUE</code> keeps value of */
138: public static final char CHAR_NULL_VALUE = '-';
139: }
140:
141: // DataTypesDefinition
|