diff -r a151135b0cf9 -r aa2539c91954 tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/decodeplugins/dictionary/encoder/DataType.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/decodeplugins/dictionary/encoder/DataType.java Fri Oct 08 14:56:39 2010 +0300 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +* DataType enumeration +* +*/ +package com.nokia.tracecompiler.decodeplugins.dictionary.encoder; + +/** + * DataType enumeration + * + */ +public enum DataType { + + /** + * String type + */ + STRING("string"), //$NON-NLS-1$ + + /** + * Integer type + */ + INTEGER("integer"), //$NON-NLS-1$ + + /** + * Float type + */ + FLOAT("float"), //$NON-NLS-1$ + + /** + * Hex type + */ + HEX("hex"), //$NON-NLS-1$ + + /** + * Binary type + */ + BINARY("binary"), //$NON-NLS-1$ + + /** + * Octal type + */ + OCTAL("octal"), //$NON-NLS-1$ + + /** + * Enum type + */ + ENUM("enum"), //$NON-NLS-1$ + + /** + * Raw type + */ + RAW("raw"), //$NON-NLS-1$ + + /** + * Compound type + */ + COMPOUND("compound"); //$NON-NLS-1$ + + /** + * Data type + */ + private final String type; + + /** + * Constructor + * + * @param type + * the type + */ + private DataType(String type) { + this.type = type; + } + + /** + * Gets the type as string + * + * @return type + */ + public String getType() { + return type; + } + +}