tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/header/IteratorParameters.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 * Parameter iterator |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.engine.header; |
|
20 |
|
21 import java.io.IOException; |
|
22 import java.util.Iterator; |
|
23 |
|
24 import com.nokia.tracecompiler.model.TraceParameter; |
|
25 |
|
26 /** |
|
27 * Parameter iterator |
|
28 * |
|
29 */ |
|
30 public final class IteratorParameters extends TemplateIteratorEntry { |
|
31 |
|
32 /* |
|
33 * (non-Javadoc) |
|
34 * |
|
35 * @see com.nokia.tracecompiler.engine.header.TemplateIteratorEntry#iterate() |
|
36 */ |
|
37 @Override |
|
38 public void iterate(Object[] template) throws IOException { |
|
39 Iterator<TraceParameter> itr = writer.getCurrentTrace().getParameters(); |
|
40 while (itr.hasNext()) { |
|
41 writer.startParameter(itr.next()); |
|
42 writer.writeTemplate(template); |
|
43 } |
|
44 } |
|
45 |
|
46 } |