tmf: bug 494698 Add per-event fields to custom parsers
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / tmf / core / parsers / custom / CustomExtraField.java
1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
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
10 package org.eclipse.tracecompass.internal.tmf.core.parsers.custom;
11
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.eclipse.jdt.annotation.Nullable;
14 import org.eclipse.tracecompass.tmf.core.event.ITmfEventField;
15 import org.eclipse.tracecompass.tmf.core.event.TmfEventField;
16
17 /**
18 * A type of field for the custom parser's extra field.
19 *
20 * @author Geneviève Bastien
21 */
22 public class CustomExtraField extends TmfEventField {
23
24 /**
25 * Full constructor
26 *
27 * @param name
28 * the event field id
29 * @param value
30 * the event field value
31 * @param fields
32 * the list of subfields
33 * @throws IllegalArgumentException
34 * If 'name' is null, or if 'fields' has duplicate field names.
35 */
36 public CustomExtraField(@NonNull String name, @Nullable Object value, ITmfEventField @Nullable [] fields) {
37 super(name, value, fields);
38 }
39
40 /**
41 * Copy constructor
42 *
43 * @param field
44 * the other event field
45 */
46 public CustomExtraField(final TmfEventField field) {
47 super(field);
48 }
49
50 }
This page took 0.031956 seconds and 5 git commands to generate.