Add TmfEventTypeManager
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / ITmfEventContent.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>ITmfEventContent</u></b>
17 * <p>
18 */
19 public interface ITmfEventContent extends Cloneable {
20
21 /**
22 * @return the raw event content
23 */
24 public Object getRawContent();
25
26 /**
27 * @return the formatted event content (string'ified)
28 */
29 public String getFmtContent();
30
31 /**
32 * @return the event type
33 */
34 public ITmfEventType getType();
35
36 /**
37 * @return the list of event fields
38 */
39 public ITmfEventField[] getFields();
40
41 /**
42 * @param index the field index
43 * @return the corresponding field
44 */
45 public ITmfEventField getField(int index) throws TmfNoSuchFieldException;
46
47 /**
48 * @param name the field name
49 * @return the corresponding field
50 */
51 public ITmfEventField getField(String name) throws TmfNoSuchFieldException;
52
53 /**
54 * @return a clone of the event content
55 */
56 public ITmfEventContent clone();
57 }
This page took 0.041731 seconds and 5 git commands to generate.