Fix some core.event API stuff
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / ITmfEvent.java
index 1cba08aef56fb216e5dbfa34d2082fe3c01999c4..1a9b9e49108619df58ed37d76b6dc560ca94b091 100644 (file)
@@ -32,14 +32,22 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
  */
 public interface ITmfEvent extends Cloneable {
 
+    // ------------------------------------------------------------------------
+    // Constants
+    // ------------------------------------------------------------------------
+
     /**
      * Pre-defined event attributes 
      */
-    public String EVENT_FIELD_TIMESTAMP = ":timestamp:"; //$NON-NLS-1$
-    public String EVENT_FIELD_SOURCE    = ":source:";    //$NON-NLS-1$
-    public String EVENT_FIELD_TYPE      = ":type:";      //$NON-NLS-1$
-    public String EVENT_FIELD_CONTENT   = ":content:";   //$NON-NLS-1$
-    public String EVENT_FIELD_REFERENCE = ":reference:"; //$NON-NLS-1$
+    public static final String EVENT_FIELD_TIMESTAMP = ":timestamp:"; //$NON-NLS-1$
+    public static final String EVENT_FIELD_SOURCE    = ":source:";    //$NON-NLS-1$
+    public static final String EVENT_FIELD_TYPE      = ":type:";      //$NON-NLS-1$
+    public static final String EVENT_FIELD_CONTENT   = ":content:";   //$NON-NLS-1$
+    public static final String EVENT_FIELD_REFERENCE = ":reference:"; //$NON-NLS-1$
+
+    // ------------------------------------------------------------------------
+    // Getters
+    // ------------------------------------------------------------------------
 
     /**
      * @return the trace that 'owns' the event
@@ -76,6 +84,10 @@ public interface ITmfEvent extends Cloneable {
      */
     public String getReference();
 
+    // ------------------------------------------------------------------------
+    // Cloneable
+    // ------------------------------------------------------------------------
+
     /**
      * @return a clone of the data item
      */
This page took 0.027679 seconds and 5 git commands to generate.