7f28dc8be5a0a66246054456061429c3aef46620
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
.TmfEventField
;
18 * <b><u>LttngEventField</u></b><p>
20 * Lttng specific implementation of the TmfEventField.<p>
22 * LttngEventField add a "name" attribute to the Tmf implementation This
23 * mean the fields will have a name and a value.
25 public class LttngEventField
extends TmfEventField
{
26 private String fieldName
= "";
29 * Constructor with parameters.<p>
31 * @param name Name of the field
32 * @param newContent ParsedContent we want to populate the field with.
34 * @see org.eclipse.linuxtools.lttng.jni.JniParser
36 public LttngEventField(String name
, Object newContent
) {
43 * Copy constructor.<p>
45 * @param oldField the field to copy from
47 public LttngEventField(LttngEventField oldField
) {
48 this(oldField
.fieldName
, oldField
.getValue());
52 public String
getName() {
57 * toString() method.<p>
59 * Print both field name and value (i.e. NAME:VALUE ).
62 public String
toString() {
63 return fieldName
+ ":" + getValue().toString();
This page took 0.037106 seconds and 4 git commands to generate.