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
.stubs
.event
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEventContent
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimestamp
;
20 * <b><u>TmfEventContentStub</u></b>
22 * TODO: Implement me. Please.
24 @SuppressWarnings("nls")
25 public class TmfEventContentStub
extends TmfEventContent
{
27 public TmfEventContentStub(TmfEvent parent
, Object content
) {
28 super(parent
, content
);
31 public TmfEventContentStub(TmfEventContentStub other
) {
36 protected void parseContent() {
37 Object field1
= new Integer(1);
38 Object field2
= new Integer(-10);
39 Object field3
= new Boolean(true);
40 Object field4
= new String("some string");
41 Object field5
= new TmfTimestamp(1, (byte) 2, 3);
42 fFields
= new Object
[] { field1
, field2
, field3
, field4
, field5
};
46 public TmfEventContent
clone() {
47 TmfEventContentStub content
= new TmfEventContentStub(this);
48 content
.fRawContent
= "Some content";
49 content
.fFields
= null;
54 // public String toString() {
55 // Object[] fields = getFields();
56 // StringBuilder result = new StringBuilder("[TmfEventContent(");
57 // for (int i = 0; i < fields.length; i++) {
58 // if (i > 0) result.append(",");
59 // result.append(fields[i]);
61 // result.append(")]");
62 // return result.toString();