tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core / src / org / eclipse / linuxtools / internal / lttng / core / event / LttngEventField.java
CommitLineData
5d10d135
ASL
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 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12
5945cec9 13package org.eclipse.linuxtools.internal.lttng.core.event;
5d10d135 14
6c13869b 15import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
5d10d135
ASL
16
17/**
07d9e2ee
FC
18 * <b><u>LttngEventField</u></b><p>
19 *
20 * Lttng specific implementation of the TmfEventField.<p>
21 *
22 * LttngEventField add a "name" attribute to the Tmf implementation This
3fbd810a 23 * mean the fields will have a name and a value.
5d10d135 24 */
3fbd810a 25public class LttngEventField extends TmfEventField {
4c564a2d
FC
26
27 public LttngEventField(String name, Object value, LttngEventField[] subfields) {
28 super(name, value, subfields);
29 }
30
31 public LttngEventField(String name, Object value) {
32 this(name, value, null);
28b94d61
FC
33 }
34
4c564a2d
FC
35 public LttngEventField(String name) {
36 this(name, null, null);
37 }
38
39 public LttngEventField(LttngEventField field) {
40 super(field);
41 }
42
43 @Override
44 public LttngEventField clone() {
45 LttngEventField clone = null;
46 clone = (LttngEventField) super.clone();
47 return clone;
48 }
49
50 @Override
51 public String toString() {
52 return getName() + ":" + getValue(); //$NON-NLS-1$
53 }
3fbd810a 54}
This page took 0.037759 seconds and 5 git commands to generate.