tmf: Fix some javadoc warnings in tmf.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfTmfEventType.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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: Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
11
12 package org.eclipse.linuxtools.tmf.core.ctfadaptor;
13
14 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
15 import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
16 import org.eclipse.linuxtools.tmf.core.event.TmfEventTypeManager;
17
18 /**
19 * The CTF extension of the TMF event type
20 *
21 * @version 1.0
22 * @author Matthew khouzam
23 */
24 public class CtfTmfEventType extends TmfEventType {
25
26 private static final String CONTEXT_ID = "Ctf Event"; //$NON-NLS-1$
27
28 /**
29 * Constructor for CtfTmfEventType.
30 *
31 * @param eventName
32 * String
33 * @param content
34 * ITmfEventField
35 */
36 public CtfTmfEventType(String eventName, ITmfEventField content) {
37 super(CONTEXT_ID, eventName, content);
38 }
39
40 /**
41 * Method toString.
42 *
43 * @return String
44 */
45 @Override
46 public String toString() {
47 return this.getName();
48 }
49
50 /**
51 * gets the event type for an event name
52 *
53 * @param eventName
54 * the event name
55 * @return the event type
56 */
57 public static CtfTmfEventType get(String eventName){
58 return (CtfTmfEventType) TmfEventTypeManager.getInstance().getType(CONTEXT_ID, eventName);
59 }
60 }
This page took 0.037789 seconds and 6 git commands to generate.