|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * DataType enumeration |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.decodeplugins.dictionary.encoder; |
|
20 |
|
21 /** |
|
22 * DataType enumeration |
|
23 * |
|
24 */ |
|
25 public enum DataType { |
|
26 |
|
27 /** |
|
28 * String type |
|
29 */ |
|
30 STRING("string"), //$NON-NLS-1$ |
|
31 |
|
32 /** |
|
33 * Integer type |
|
34 */ |
|
35 INTEGER("integer"), //$NON-NLS-1$ |
|
36 |
|
37 /** |
|
38 * Float type |
|
39 */ |
|
40 FLOAT("float"), //$NON-NLS-1$ |
|
41 |
|
42 /** |
|
43 * Hex type |
|
44 */ |
|
45 HEX("hex"), //$NON-NLS-1$ |
|
46 |
|
47 /** |
|
48 * Binary type |
|
49 */ |
|
50 BINARY("binary"), //$NON-NLS-1$ |
|
51 |
|
52 /** |
|
53 * Octal type |
|
54 */ |
|
55 OCTAL("octal"), //$NON-NLS-1$ |
|
56 |
|
57 /** |
|
58 * Enum type |
|
59 */ |
|
60 ENUM("enum"), //$NON-NLS-1$ |
|
61 |
|
62 /** |
|
63 * Raw type |
|
64 */ |
|
65 RAW("raw"), //$NON-NLS-1$ |
|
66 |
|
67 /** |
|
68 * Compound type |
|
69 */ |
|
70 COMPOUND("compound"); //$NON-NLS-1$ |
|
71 |
|
72 /** |
|
73 * Data type |
|
74 */ |
|
75 private final String type; |
|
76 |
|
77 /** |
|
78 * Constructor |
|
79 * |
|
80 * @param type |
|
81 * the type |
|
82 */ |
|
83 private DataType(String type) { |
|
84 this.type = type; |
|
85 } |
|
86 |
|
87 /** |
|
88 * Gets the type as string |
|
89 * |
|
90 * @return type |
|
91 */ |
|
92 public String getType() { |
|
93 return type; |
|
94 } |
|
95 |
|
96 } |