4be73b00f557bb8fba9473a72ac92c6c573707d2
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / ITmfCustomAttributes.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 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.tracecompass.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 */
23 public interface ITmfCustomAttributes {
24
25 /**
26 * List the custom attributes of this event.
27 *
28 * @return The list of custom attribute names. Should not be null, but could
29 * be empty.
30 */
31 Set<String> listCustomAttributes();
32
33 /**
34 * Get the value of a custom attribute.
35 *
36 * @param name
37 * Name of the the custom attribute
38 * @return Value of this attribute, or null if there is no attribute with
39 * that name
40 */
41 String getCustomAttribute(String name);
42 }
This page took 0.031092 seconds and 5 git commands to generate.