ctf: Fix Javadoc for all public methods
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / CTFClock.java
1 /*******************************************************************************
2 * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others
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: Matthew Khouzam - Initial API and implementation
10 * Contributors: Simon Marchi - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.ctf.core.event;
14
15 import java.util.HashMap;
16
17 /**
18 * Clock description used in CTF traces
19 */
20 public class CTFClock {
21
22 /**
23 * Field properties.
24 */
25 final private HashMap<String, Object> properties = new HashMap<String, Object>();
26 /**
27 * Field name.
28 */
29 private String name;
30
31 /**
32 * Default constructor
33 */
34 public CTFClock() {}
35
36 /**
37 * Method addAttribute.
38 * @param key String
39 * @param value Object
40 */
41 public void addAttribute(String key, Object value) {
42 this.properties.put(key, value);
43 if (key.equals("name")) { //$NON-NLS-1$
44 this.name = (String) value;
45 }
46 }
47
48 /**
49 * Method getName.
50 * @return String
51 */
52 public String getName() {
53 return name;
54 }
55
56 /**
57 * Method getProperty.
58 * @param key String
59 * @return Object
60 */
61 public Object getProperty(String key) {
62 return properties.get(key);
63 }
64
65 }
This page took 0.035209 seconds and 6 git commands to generate.