56
|
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 |
* Implementation of ComplexHeaderRule
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
package com.nokia.tracecompiler.engine.rules;
|
|
20 |
|
|
21 |
import com.nokia.tracecompiler.engine.header.ComplexHeaderRule;
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Implementation of ComplexHeaderRule
|
|
25 |
*
|
|
26 |
*/
|
|
27 |
public final class ComplexHeaderRuleImpl extends RuleBase implements
|
|
28 |
ComplexHeaderRule {
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Trace ID define extension
|
|
32 |
*/
|
|
33 |
private String traceIDDefineExtension;
|
|
34 |
|
|
35 |
/*
|
|
36 |
* (non-Javadoc)
|
|
37 |
*
|
|
38 |
* @see com.nokia.tracecompiler.engine.header.ComplexHeaderRule#needsFunction()
|
|
39 |
*/
|
|
40 |
public boolean needsFunction() {
|
|
41 |
return true;
|
|
42 |
}
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Sets the data to be added to the trace ID define statement after the ID
|
|
46 |
*
|
|
47 |
* @param traceIDDefineExtension
|
|
48 |
* the extension
|
|
49 |
*/
|
|
50 |
void setTraceIDDefineExtension(String traceIDDefineExtension) {
|
|
51 |
this.traceIDDefineExtension = traceIDDefineExtension;
|
|
52 |
}
|
|
53 |
|
|
54 |
/*
|
|
55 |
* (non-Javadoc)
|
|
56 |
*
|
|
57 |
* @see com.nokia.tracecompiler.engine.header.ComplexHeaderRule#getTraceIDDefineExtension()
|
|
58 |
*/
|
|
59 |
public String getTraceIDDefineExtension() {
|
|
60 |
return traceIDDefineExtension;
|
|
61 |
}
|
|
62 |
} |