ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / ITmfEventType.java
index 8005c346a42aa1183e60660722371e2ac29efd8c..07dd4b3e5e9903e1538c57d4649b22620b43c06b 100644 (file)
@@ -1,66 +1,69 @@
 /*******************************************************************************
- * Copyright (c) 2012 Ericsson
- * 
+ * Copyright (c) 2012, 2013 Ericsson
+ *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *   Francois Chouinard - Initial API and implementation
  *******************************************************************************/
 
 package org.eclipse.linuxtools.tmf.core.event;
 
+import java.util.Collection;
+
 /**
- * <b><u>ITmfEventType</u></b>
- * <p>
- * The TMF event event type. It contains a reference to the full field structure
+ * The generic event type in TMF. It contains a reference to the full field structure
  * for that event type.
  * <p>
  * Types are unique within their context space.
+ *
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfEvent
+ * @see ITmfEventField
  */
-public interface ITmfEventType extends Cloneable {
+public interface ITmfEventType {
+
+    // ------------------------------------------------------------------------
+    // Constants
+    // ------------------------------------------------------------------------
 
     /**
-     * The default event type content 
+     * The default event type content
      */
     public static final String DEFAULT_CONTEXT_ID = "TmfContext"; //$NON-NLS-1$
 
     /**
-     * The default event type name 
+     * The default event type name
      */
     public static final String DEFAULT_TYPE_ID = "TmfType"; //$NON-NLS-1$
-    
+
+    // ------------------------------------------------------------------------
+    // Getters
+    // ------------------------------------------------------------------------
+
     /**
      * @return the event type context
      */
-    public String getContext();
+    String getContext();
 
     /**
      * @return the event type ID
      */
-    public String getName();
+    String getName();
 
     /**
      * @return the event type root field
      */
-    public ITmfEventField getRootField();
+    ITmfEventField getRootField();
 
     /**
      * @return the event field names (labels)
+     * @since 3.0
      */
-    public String[] getFieldNames();
-
-    /**
-     * @param index the event field index
-     * @return the corresponding event field label
-     */
-    public String getFieldName(int index);
-
-    /**
-     * @return a clone of the event content
-     */
-    public ITmfEventType clone();
-
+    Collection<String> getFieldNames();
 }
This page took 0.027981 seconds and 5 git commands to generate.