Rename xxx.lttng to xxx.lttng.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / stubs / org / eclipse / linuxtools / tmf / event / TmfEventContentStub.java
CommitLineData
d18dd09b
ASL
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 - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.event;
14
15/**
16 * <b><u>TmfEventContentStub</u></b>
17 * <p>
18 * TODO: Implement me. Please.
19 */
3b38ea61 20@SuppressWarnings("nls")
d18dd09b
ASL
21public class TmfEventContentStub extends TmfEventContent {
22
23 public TmfEventContentStub(TmfEvent parent, Object content) {
24 super(parent, content);
25 }
26
27 public TmfEventContentStub(TmfEventContentStub other) {
28 super(other);
29 }
30
31 @Override
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 };
39 }
40
41 @Override
42 public TmfEventContent clone() {
43 TmfEventContentStub content = new TmfEventContentStub(this);
44 content.fRawContent = "Some content";
45 content.fFields = null;
46 return content;
47 }
48
cbd4ad82
FC
49// @Override
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]);
56// }
57// result.append(")]");
58// return result.toString();
59// }
d18dd09b 60}
This page took 0.029851 seconds and 5 git commands to generate.