Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 35b1d73a7fe408334fa4d4c967aac31fd7371fce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*******************************************************************************
 * Copyright (c) 2013 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Simon Delisle - Initial API and implementation
 *******************************************************************************/

package org.eclipse.linuxtools.tmf.core.event;

import java.util.Set;

/**
 * Interface for events to implement to provide information about custom
 * attributes.
 *
 * @author Simon Delisle
 * @since 2.0
 */
public interface ITmfCustomAttributes {

    /**
     * List the custom attributes of this event.
     *
     * @return The list of custom attribute names. Should not be null, but could
     *         be empty.
     */
    public Set<String> listCustomAttributes();

    /**
     * Get the value of a custom attribute.
     *
     * @param name
     *            Name of the the custom attribute
     * @return Value of this attribute, or null if there is no attribute with
     *         that name
     */
    public String getCustomAttribute(String name);
}

Back to the top