1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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
10 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.event
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.*;
18 * <b><u>LttngEventSource</u></b><p>
20 * Lttng specific implementation of the TmfEventSource
22 public class LttngEventSource
extends TmfEventSource
{
25 * Default Constructor.<p>
28 public LttngEventSource() {
33 * Copy Constructor.<p>
35 * @param newSource Source of the event as string.
37 public LttngEventSource(String newSource
) {
43 * Copy Constructor.<p>
45 * @param oldSource LttngEventSource to copy from.
47 public LttngEventSource(LttngEventSource oldSource
) {
48 this( (String
)oldSource
.getSourceId() );
53 public String
getSourceId() {
54 return (String
)fSourceId
;
57 public void setSourceId(String newSource
) {
58 fSourceId
= newSource
;
62 public String
toString() {
63 return fSourceId
.toString();
67 public LttngEventSource
clone() {
68 LttngEventSource clone
= (LttngEventSource
) super.clone();
69 clone
.fSourceId
= new String((String
) fSourceId
);