Skip to main content
summaryrefslogtreecommitdiffstats
blob: 84220b5172ebb66aecf9e10718625344a4dbcc3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%@ jet 
package="org.eclipse.jubula.toolkit.api.gen" 
imports="java.util.* 
         org.eclipse.jubula.tools.xml.businessmodell.*" 
class="ComponentGenerator"%>
<%
	Component component = (Component)argument;
	String name = component.getType();
	List<Action> actions = component.getActions(); 
	%>
/**
 * Copyright (c) 2014 BREDEX GmbH.
 * All rights reserved. 
 */
package <%="org.eclipse.jubula.toolkit.base"%>;

public class <%=name%> extends {
	Object m_component;

	public <%=name%>(Object component) {
		m_component = component;
	}
	<%
	Iterator<Action> actionsIterator = actions.iterator();
	while (actionsIterator.hasNext()) {	
		Action action = actionsIterator.next();
		String actionName = action.getName();
		List<Param> params = action.getParams();
	%>
	public void rc<%=actionName%>(
	<%	
	Iterator<Param> paramIterator = params.iterator();
	while (paramIterator.hasNext()) {
	Param param = paramIterator.next();
	String paramType = param.getType();
	String paramName = param.getName();
	%>
	<%=paramType%> <%=paramName%><%if(paramIterator.hasNext()){%>,<%}%>
	<%
	}
	%> 
	) {
		
	}
	<%
	}
	%> 
}

Back to the top