Commit | Line | Data |
---|---|---|
ff71e543 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made 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: | |
10 | * Matthew Khouzam - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
7ce90559 | 13 | package org.eclipse.tracecompass.btf.core.trace; |
ff71e543 | 14 | |
baafe54c AM |
15 | import org.eclipse.jdt.annotation.NonNull; |
16 | ||
ff71e543 MK |
17 | /** |
18 | * Column names | |
19 | * | |
20 | * @author Matthew Khouzam | |
21 | */ | |
22 | public enum BtfColumnNames { | |
23 | ||
24 | /** | |
25 | * The event timestamp | |
26 | */ | |
27 | TIMESTAMP("Timestamp"), //$NON-NLS-1$ | |
28 | /** | |
29 | * The source | |
30 | */ | |
31 | SOURCE("Source"), //$NON-NLS-1$ | |
32 | /** | |
33 | * The source instance | |
34 | */ | |
35 | SOURCE_INSTANCE("Source instance"), //$NON-NLS-1$ | |
36 | /** | |
37 | * The event field name | |
38 | */ | |
39 | EVENT_TYPE("Event type"), //$NON-NLS-1$ | |
40 | /** | |
41 | * The target | |
42 | */ | |
43 | TARGET("Target"), //$NON-NLS-1$ | |
44 | /** | |
45 | * The target instance | |
46 | */ | |
47 | TARGET_INSTANCE("Target instance"), //$NON-NLS-1$ | |
48 | /** | |
49 | * The event | |
50 | */ | |
51 | EVENT("Event"), //$NON-NLS-1$ | |
52 | /** | |
53 | * Notes | |
54 | */ | |
55 | NOTES("Notes"); //$NON-NLS-1$ | |
56 | ||
baafe54c | 57 | private final @NonNull String fField; |
ff71e543 | 58 | |
baafe54c | 59 | private BtfColumnNames(@NonNull String field) { |
ff71e543 MK |
60 | fField = field; |
61 | } | |
62 | ||
63 | @Override | |
baafe54c | 64 | public @NonNull String toString() { |
ff71e543 MK |
65 | return fField; |
66 | } | |
67 | } |