20c8a92a23245274af3c73652fba0c6594085b14
[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 /**
17 * The TMF event event type. It contains a reference to the full field structure
18 * for that event type.
19 * <p>
20 * Types are unique within their context space.
21 *
22 * @since 1.0
23 * @version 1.0
24 * @author Francois Chouinard
25 * @see TmfEventType
26 * @see ITmfEvent
27 */
28 public interface ITmfEventType extends Cloneable {
29
30 // ------------------------------------------------------------------------
31 // Constants
32 // ------------------------------------------------------------------------
33
34 /**
35 * The default event type content
36 */
37 public static final String DEFAULT_CONTEXT_ID = "TmfContext"; //$NON-NLS-1$
38
39 /**
40 * The default event type name
41 */
42 public static final String DEFAULT_TYPE_ID = "TmfType"; //$NON-NLS-1$
43
44 // ------------------------------------------------------------------------
45 // Getters
46 // ------------------------------------------------------------------------
47
48 /**
49 * @return the event type context
50 */
51 public String getContext();
52
53 /**
54 * @return the event type ID
55 */
56 public String getName();
57
58 /**
59 * @return the event type root field
60 */
61 public ITmfEventField getRootField();
62
63 /**
64 * @return the event field names (labels)
65 */
66 public String[] getFieldNames();
67
68 /**
69 * @param index the event field index
70 * @return the corresponding event field label
71 */
72 public String getFieldName(int index);
73
74 // ------------------------------------------------------------------------
75 // Cloneable
76 // ------------------------------------------------------------------------
77
78 /**
79 * @return a clone of the event content
80 */
81 public ITmfEventType clone();
82
83 }
This page took 0.031528 seconds and 4 git commands to generate.