Update for Bug287562 (Event Model code refresh + JUnits)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / event / TmfEventType.java
1 /*******************************************************************************
2 * Copyright (c) 2009 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.event;
14
15 /**
16 * <b><u>TmfEventType</u></b>
17 * <p>
18 * The event type.
19 */
20 public class TmfEventType {
21
22 // ========================================================================
23 // Attributes
24 // ========================================================================
25
26 private final String fTypeId;
27 private final TmfEventFormat fFormat;
28
29 // ========================================================================
30 // Constructors
31 // ========================================================================
32
33 /**
34 * @param type
35 * @param format
36 */
37 public TmfEventType(String typeID, TmfEventFormat format) {
38 fTypeId = typeID;
39 fFormat = format;
40 }
41
42 // ========================================================================
43 // Accessors
44 // ========================================================================
45
46 /**
47 * @return
48 */
49 public String getTypeId() {
50 return fTypeId;
51 }
52
53 /**
54 * @return
55 */
56 public TmfEventFormat getFormat() {
57 return fFormat;
58 }
59
60 // ========================================================================
61 // Operators
62 // ========================================================================
63
64 @Override
65 public String toString() {
66 return fTypeId.toString();
67 }
68
69 }
This page took 0.03125 seconds and 5 git commands to generate.