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>TmfEventContentStub</u></b>
18 * TODO: Implement me. Please.
20 @SuppressWarnings("nls")
21 public class TmfEventContentStub
extends TmfEventContent
{
23 public TmfEventContentStub(TmfEvent parent
, Object content
) {
24 super(parent
, content
);
27 public TmfEventContentStub(TmfEventContentStub other
) {
32 protected void parseContent() {
33 Object field1
= new Integer(1);
34 Object field2
= new Integer(-10);
35 Object field3
= new Boolean(true);
36 Object field4
= new String("some string");
37 Object field5
= new TmfTimestamp(1, (byte) 2, 3);
38 fFields
= new Object
[] { field1
, field2
, field3
, field4
, field5
};
42 public TmfEventContent
clone() {
43 TmfEventContentStub content
= new TmfEventContentStub(this);
44 content
.fRawContent
= "Some content";
45 content
.fFields
= null;
50 // public String toString() {
51 // Object[] fields = getFields();
52 // StringBuilder result = new StringBuilder("[TmfEventContent(");
53 // for (int i = 0; i < fields.length; i++) {
54 // if (i > 0) result.append(",");
55 // result.append(fields[i]);
57 // result.append(")]");
58 // return result.toString();