1 /*******************************************************************************
2 * Copyright (c) 2014 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 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.tmf
.pcap
.core
.event
;
15 import org
.eclipse
.jdt
.annotation
.Nullable
;
16 import org
.eclipse
.tracecompass
.internal
.pcap
.core
.packet
.Packet
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventField
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEventField
;
21 * Class that represents a TMF Pcap Event Field. It is identical to a
22 * TmfEventField, except that it overrides the toString() method.
24 * @author Vincent Perot
26 public class PcapEventField
extends TmfEventField
{
28 private final String fSummaryString
;
36 * The event field value.
38 * The list of subfields.
40 * The packet from which to take the fields from.
41 * @throws IllegalArgumentException
42 * If 'name' is null, or if 'fields' has duplicate field names.
44 public PcapEventField(String name
, Object value
, @Nullable ITmfEventField
[] fields
, Packet packet
) {
45 super(name
, value
, fields
);
46 fSummaryString
= packet
.getLocalSummaryString();
53 * the other event field
55 public PcapEventField(final PcapEventField field
) {
57 fSummaryString
= field
.fSummaryString
;
61 public String
toString() {
62 return fSummaryString
;
This page took 0.059173 seconds and 5 git commands to generate.