1 /*******************************************************************************
2 * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
9 * Contributors: Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.ctf
.core
.event
.types
;
15 * Simple Datatype definition is a datatype that allows the addition of
16 * getIntegerValue and getStringValue to a class.
18 * @author Matthew Khouzam
21 public abstract class SimpleDatatypeDefinition
extends Definition
{
24 * Create a new SimpleDatatypeDefinition
26 * @param definitionScope
27 * The scope of this definition
29 * The name of the field matching this definition in the parent
32 public SimpleDatatypeDefinition(IDefinitionScope definitionScope
,
34 super(definitionScope
, fieldName
);
38 * Gets the value in integer form
40 * @return the integer in a Long, can be null
42 public Long
getIntegerValue() {
47 * Gets the value in string form
49 * @return the integer in a String, can be null
51 public String
getStringValue() {