Improve javadoc for ctfAdapter in Tmf.Core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfTmfContent.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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: Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.linuxtools.tmf.core.ctfadaptor;
12
13 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
14 import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
15
16 /**
17 * CtfTmfcontent is a wrapper to allow pretty printing of the fields in a CtfTmfEvent
18 */
19 public class CtfTmfContent extends TmfEventField {
20
21 /**
22 * Constructor for CtfTmfContent.
23 * @param name String
24 * @param fields ITmfEventField[]
25 */
26 public CtfTmfContent(String name, ITmfEventField[] fields) {
27 super(name, fields);
28 }
29
30 /*
31 * (non-Javadoc)
32 *
33 * @see java.lang.Object#toString()
34 */
35 @Override
36 public String toString() {
37 StringBuilder retVal = new StringBuilder();
38 for( int i=0; i < getFields().length;i++){
39 ITmfEventField field = getFields()[i];
40 if(i != 0) {
41 retVal.append(", ");//$NON-NLS-1$
42 }
43 retVal.append(field.toString());
44 }
45 return retVal.toString();
46 }
47 }
This page took 0.030223 seconds and 5 git commands to generate.