Commit | Line | Data |
---|---|---|
21fb02fa MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: Matthew Khouzam - Initial API and implementation | |
10 | *******************************************************************************/ | |
11 | ||
12 | package org.eclipse.linuxtools.ctf.core.event.types; | |
13 | ||
14 | /** | |
15 | * Simple Datatype definition is a datatype that allows the addition of | |
16 | * getIntegerValue and getStringValue to a class. | |
17 | * | |
18 | * @author Matthew Khouzam | |
19 | * @since 1.2 | |
20 | */ | |
21 | public abstract class SimpleDatatypeDefinition extends Definition { | |
22 | ||
8de0528f AM |
23 | /** |
24 | * Create a new SimpleDatatypeDefinition | |
25 | * | |
26 | * @param definitionScope | |
27 | * The scope of this definition | |
28 | * @param fieldName | |
29 | * The name of the field matching this definition in the parent | |
30 | * scope | |
31 | */ | |
21fb02fa MK |
32 | public SimpleDatatypeDefinition(IDefinitionScope definitionScope, |
33 | String fieldName) { | |
34 | super(definitionScope, fieldName); | |
35 | } | |
36 | ||
37 | /** | |
a511da0d | 38 | * Gets the value in integer form |
21fb02fa MK |
39 | * |
40 | * @return the integer in a Long, can be null | |
41 | */ | |
42 | public Long getIntegerValue() { | |
43 | return null; | |
44 | } | |
45 | ||
46 | /** | |
a511da0d | 47 | * Gets the value in string form |
21fb02fa MK |
48 | * |
49 | * @return the integer in a String, can be null | |
50 | */ | |
51 | public String getStringValue() { | |
52 | return null; | |
53 | } | |
54 | ||
55 | } |