9d9bbb910a560d6e261d9694a7ba209c00e35012
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / stubs / org / eclipse / linuxtools / tmf / event / TmfEventFormatStub.java
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>TmfEventFormatStub</u></b>
17 * <p>
18 * TODO: Implement me. Please.
19 */
20 public class TmfEventFormatStub extends TmfEventFormat {
21
22 // ========================================================================
23 // Attributes
24 // ========================================================================
25
26 // ========================================================================
27 // Constructors
28 // ========================================================================
29
30 public TmfEventFormatStub() {
31 super(new String[] { "Field1", "Field2", "Field3", "Field4", "Field5" });
32 }
33
34 // ========================================================================
35 // Accessors
36 // ========================================================================
37
38 // ========================================================================
39 // Operators
40 // ========================================================================
41
42 /* (non-Javadoc)
43 * @see org.eclipse.linuxtools.tmf.event.TmfEventFormat#parse(java.lang.Object)
44 */
45 @Override
46 public TmfEventField[] parse(Object content) {
47 TmfEventField field1 = new TmfEventField(1);
48 TmfEventField field2 = new TmfEventField(-10);
49 TmfEventField field3 = new TmfEventField(true);
50 TmfEventField field4 = new TmfEventField("some string");
51 TmfEventField field5 = new TmfEventField(new TmfTimestamp(1, (byte) 2, 3));
52 return new TmfEventField[] { field1, field2, field3, field4, field5 };
53 }
54
55 // ========================================================================
56 // Helper functions
57 // ========================================================================
58
59 }
This page took 0.032011 seconds and 4 git commands to generate.