1/*
2 * Copyright (c) 2009-2010 jMonkeyEngine
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 *   notice, this list of conditions and the following disclaimer.
11 *
12 * * Redistributions in binary form must reproduce the above copyright
13 *   notice, this list of conditions and the following disclaimer in the
14 *   documentation and/or other materials provided with the distribution.
15 *
16 * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
17 *   may be used to endorse or promote products derived from this software
18 *   without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33package com.jme3.export.binary;
34
35class BinaryClassField {
36
37    public static final byte BYTE = 0;
38    public static final byte BYTE_1D = 1;
39    public static final byte BYTE_2D = 2;
40
41    public static final byte INT = 10;
42    public static final byte INT_1D = 11;
43    public static final byte INT_2D = 12;
44
45    public static final byte FLOAT = 20;
46    public static final byte FLOAT_1D = 21;
47    public static final byte FLOAT_2D = 22;
48
49    public static final byte DOUBLE = 30;
50    public static final byte DOUBLE_1D = 31;
51    public static final byte DOUBLE_2D = 32;
52
53    public static final byte LONG = 40;
54    public static final byte LONG_1D = 41;
55    public static final byte LONG_2D = 42;
56
57    public static final byte SHORT = 50;
58    public static final byte SHORT_1D = 51;
59    public static final byte SHORT_2D = 52;
60
61    public static final byte BOOLEAN = 60;
62    public static final byte BOOLEAN_1D = 61;
63    public static final byte BOOLEAN_2D = 62;
64
65    public static final byte STRING = 70;
66    public static final byte STRING_1D = 71;
67    public static final byte STRING_2D = 72;
68
69    public static final byte BITSET = 80;
70
71    public static final byte SAVABLE = 90;
72    public static final byte SAVABLE_1D = 91;
73    public static final byte SAVABLE_2D = 92;
74
75    public static final byte SAVABLE_ARRAYLIST = 100;
76    public static final byte SAVABLE_ARRAYLIST_1D = 101;
77    public static final byte SAVABLE_ARRAYLIST_2D = 102;
78
79    public static final byte SAVABLE_MAP = 105;
80    public static final byte STRING_SAVABLE_MAP = 106;
81    public static final byte INT_SAVABLE_MAP = 107;
82
83    public static final byte FLOATBUFFER_ARRAYLIST = 110;
84    public static final byte BYTEBUFFER_ARRAYLIST = 111;
85
86    public static final byte FLOATBUFFER = 120;
87    public static final byte INTBUFFER = 121;
88    public static final byte BYTEBUFFER = 122;
89    public static final byte SHORTBUFFER = 123;
90
91
92    byte type;
93    String name;
94    byte alias;
95
96    BinaryClassField(String name, byte alias, byte type) {
97        this.name = name;
98        this.alias = alias;
99        this.type = type;
100    }
101}
102