Commit | Line | Data |
---|---|---|
860b76d4 SD |
1 | /******************************************************************************* |
2 | * Copyright (c) 2013 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: | |
10 | * Simon Delisle - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.core.event; | |
14 | ||
15 | import java.util.Set; | |
16 | ||
17 | /** | |
18 | * Interface for events to implement to provide information about custom | |
19 | * attributes. | |
20 | * | |
21 | * @author Simon Delisle | |
22 | * @since 2.0 | |
23 | */ | |
24 | public interface ITmfCustomAttributes { | |
25 | ||
26 | /** | |
27 | * List the custom attributes of this event. | |
28 | * | |
29 | * @return The list of custom attribute names. Should not be null, but could | |
30 | * be empty. | |
31 | */ | |
32 | public Set<String> listCustomAttributes(); | |
33 | ||
34 | /** | |
35 | * Get the value of a custom attribute. | |
36 | * | |
37 | * @param name | |
38 | * Name of the the custom attribute | |
39 | * @return Value of this attribute, or null if there is no attribute with | |
40 | * that name | |
41 | */ | |
42 | public String getCustomAttribute(String name); | |
43 | } |