tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/rules/ExtensionBase.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * Base class for model extensions |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.engine.rules; |
|
20 |
|
21 import com.nokia.tracecompiler.model.TraceModelExtension; |
|
22 import com.nokia.tracecompiler.model.TraceObject; |
|
23 |
|
24 /** |
|
25 * Base class for model extensions |
|
26 * |
|
27 */ |
|
28 public class ExtensionBase implements TraceModelExtension { |
|
29 |
|
30 /** |
|
31 * The owning trace object |
|
32 */ |
|
33 private TraceObject owner; |
|
34 |
|
35 /* |
|
36 * (non-Javadoc) |
|
37 * |
|
38 * @see com.nokia.tracecompiler.model.TraceModelExtension# |
|
39 * setOwner(com.nokia.tracecompiler.model.TraceObject) |
|
40 */ |
|
41 public void setOwner(TraceObject owner) { |
|
42 this.owner = owner; |
|
43 } |
|
44 |
|
45 /* |
|
46 * (non-Javadoc) |
|
47 * |
|
48 * @see com.nokia.tracecompiler.model.TraceModelExtension#getOwner() |
|
49 */ |
|
50 public TraceObject getOwner() { |
|
51 return owner; |
|
52 } |
|
53 |
|
54 } |