1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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
10 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.event
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.*;
18 * <b><u>LttngEventField</u></b>
20 * Lttng specific implementation of the TmfEventField
22 * Lttng LttngEventField add a "Name" attribute to the Tmf implementation
23 * This mean the fields will have a name and a value.
25 public class LttngEventField
extends TmfEventField
27 private String fieldName
= "";
30 * Constructor with parameters<br>
32 * @param newContent The parsedContent we want to populate the field with.
34 * @see org.eclipse.linuxtools.lttng.jni.ParsedContent
36 public LttngEventField(String name
, Object newContent
) {
43 * getter for the name attribute.
45 public String
getName() {
50 * overrided toString() method.<br>
52 * Print both field name and value.
55 public String
toString() {
56 return fieldName
+ " : " + getValue().toString();
This page took 0.030706 seconds and 5 git commands to generate.