1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.event
;
16 * The generic event type in TMF. It contains a reference to the full field structure
17 * for that event type.
19 * Types are unique within their context space.
22 * @author Francois Chouinard
27 public interface ITmfEventType
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
34 * The default event type content
36 public static final String DEFAULT_CONTEXT_ID
= "TmfContext"; //$NON-NLS-1$
39 * The default event type name
41 public static final String DEFAULT_TYPE_ID
= "TmfType"; //$NON-NLS-1$
43 // ------------------------------------------------------------------------
45 // ------------------------------------------------------------------------
48 * @return the event type context
50 public String
getContext();
53 * @return the event type ID
55 public String
getName();
58 * @return the event type root field
60 public ITmfEventField
getRootField();
63 * @return the event field names (labels)
65 public String
[] getFieldNames();
68 * @param index the event field index
69 * @return the corresponding event field label
71 public String
getFieldName(int index
);