Refactor TmfEventType and TmfEventField
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / ITmfEventType.java
1 /*******************************************************************************
2 * Copyright (c) 2012 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.event;
14
15 /**
16 * <b><u>ITmfEventType</u></b>
17 * <p>
18 */
19 public interface ITmfEventType extends Cloneable {
20
21 /**
22 * @return the event type context
23 */
24 public String getContext();
25
26 /**
27 * @return the event type ID
28 */
29 public String getId();
30
31 /**
32 * @return the event field labels
33 */
34 public String[] getFieldLabels();
35
36 /**
37 * @param index the event field index
38 * @return the corresponding event field label
39 */
40 public String getFieldLabel(int index) throws TmfNoSuchFieldException;
41
42 /**
43 * @param fieldId the event field ID
44 * @return the corresponding event field index
45 */
46 public int getFieldIndex(String fieldId) throws TmfNoSuchFieldException;
47
48 /**
49 * @return a clone of the event content
50 */
51 public ITmfEventType clone();
52
53 }
This page took 0.033169 seconds and 6 git commands to generate.