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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.event
;
16 * <b><u>TmfEventField</u></b>
18 * A basic event field.
20 * TODO: Add support for field hierarchy.
22 public class TmfEventField
implements Cloneable
{
24 // ========================================================================
26 // ========================================================================
28 private final TmfEventContent fParent
;
29 private final String fFieldId
;
30 private Object fValue
;
32 // ========================================================================
34 // ========================================================================
41 public TmfEventField(TmfEventContent parent
, String id
, Object value
) {
50 public TmfEventField(TmfEventField other
) {
51 assert(other
!= null);
52 fParent
= other
.fParent
;
53 fFieldId
= other
.fFieldId
;
54 fValue
= other
.fValue
;
57 @SuppressWarnings("unused")
58 private TmfEventField() {
64 // ========================================================================
66 // ========================================================================
71 public TmfEventContent
getParent() {
78 public String
getId() {
85 public Object
getValue() {
92 protected void setValue(Object value
) {
96 // ========================================================================
98 // ========================================================================
101 * Clone: shallow copy by default; override for deep copy.
104 public TmfEventField
clone() {
105 return new TmfEventField(this);
109 public String
toString() {
110 return "[TmfEventField(" + fFieldId
+ ":" + fValue
.toString() + ")]";
This page took 0.032673 seconds and 6 git commands to generate.