1 /*******************************************************************************
2 * Copyright (c) 2012 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
.core
.event
;
17 * The TMF event payload structure. Each field can be either a terminal or
18 * further decomposed into subfields.
22 * @author Francois Chouinard
27 public interface ITmfEventField
extends Cloneable
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
34 * The root field id (the main container)
36 public static final String ROOT_FIELD_ID
= ":root:"; //$NON-NLS-1$
38 // ------------------------------------------------------------------------
40 // ------------------------------------------------------------------------
43 * @return the field name
45 public String
getName();
48 * @return the field value
50 public Object
getValue();
53 * @return the list of subfield names (empty if none)
55 public String
[] getFieldNames();
58 * @return the nth field name (null if absent or inexistent)
60 public String
getFieldName(int index
);
63 * @return the list of subfields (null if none)
65 public ITmfEventField
[] getFields();
68 * @return a specific subfield by name (null if absent or inexistent)
70 public ITmfEventField
getField(String name
);
73 * @return a specific subfield by index (null if absent or inexistent)
75 public ITmfEventField
getField(int index
);
77 // ------------------------------------------------------------------------
79 // ------------------------------------------------------------------------
82 * @return a clone of the event type
84 public ITmfEventField
clone();
This page took 0.031483 seconds and 5 git commands to generate.