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
.tracecompass
.internal
.pcap
.core
.packet
.Packet
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventField
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEventField
;
20 * Class that represents a TMF Pcap Event Field. It is identical to a
21 * TmfEventField, except that it overrides the toString() method.
23 * @author Vincent Perot
25 public class PcapEventField
extends TmfEventField
{
27 private final String fSummaryString
;
35 * The event field value.
37 * The list of subfields.
39 * The packet from which to take the fields from.
40 * @throws IllegalArgumentException
41 * If 'name' is null, or if 'fields' has duplicate field names.
43 public PcapEventField(String name
, Object value
, ITmfEventField
[] fields
, Packet packet
) {
44 super(name
, value
, fields
);
45 fSummaryString
= packet
.getLocalSummaryString();
52 * the other event field
54 public PcapEventField(final PcapEventField field
) {
56 fSummaryString
= field
.fSummaryString
;
60 public String
toString() {
61 return fSummaryString
;
This page took 0.033852 seconds and 5 git commands to generate.