| 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 | * Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.event; |
| 14 | |
| 15 | /** |
| 16 | * <b><u>TmfEventField</u></b> |
| 17 | * <p> |
| 18 | * A basic event field. |
| 19 | */ |
| 20 | public class TmfEventField { |
| 21 | |
| 22 | // ======================================================================== |
| 23 | // Attributes |
| 24 | // ======================================================================== |
| 25 | |
| 26 | private final Object fValue; |
| 27 | |
| 28 | // ======================================================================== |
| 29 | // Constructors |
| 30 | // ======================================================================== |
| 31 | |
| 32 | /** |
| 33 | * @param value |
| 34 | */ |
| 35 | public TmfEventField(Object value) { |
| 36 | fValue = value; |
| 37 | } |
| 38 | |
| 39 | // ======================================================================== |
| 40 | // Accessors |
| 41 | // ======================================================================== |
| 42 | |
| 43 | /** |
| 44 | * @return |
| 45 | */ |
| 46 | public Object getValue() { |
| 47 | return fValue; |
| 48 | } |
| 49 | |
| 50 | // ======================================================================== |
| 51 | // Operators |
| 52 | // ======================================================================== |
| 53 | |
| 54 | /* (non-Javadoc) |
| 55 | * @see java.lang.Object#toString() |
| 56 | */ |
| 57 | public String toString() { |
| 58 | return fValue.toString(); |
| 59 | } |
| 60 | } |