1 | package de.uka.ipd.sdq.pcmbench.ui.provider; |
2 | |
3 | import de.uka.ipd.sdq.pcm.repository.Parameter; |
4 | import de.uka.ipd.sdq.pcm.repository.PrimitiveDataType; |
5 | import de.uka.ipd.sdq.pcm.repository.util.RepositorySwitch; |
6 | |
7 | public class RepositoryPrinter extends RepositorySwitch { |
8 | |
9 | public RepositoryPrinter() { |
10 | // TODO Auto-generated constructor stub |
11 | } |
12 | |
13 | /* (non-Javadoc) |
14 | * @see de.uka.ipd.sdq.pcm.repository.util.RepositorySwitch#caseParameter(de.uka.ipd.sdq.pcm.repository.Parameter) |
15 | */ |
16 | @Override |
17 | public Object caseParameter(Parameter object) { |
18 | String result = ""; |
19 | result += object.getParameterName(); |
20 | return result; |
21 | } |
22 | |
23 | /* (non-Javadoc) |
24 | * @see de.uka.ipd.sdq.pcm.repository.util.RepositorySwitch#casePrimitiveDataType(de.uka.ipd.sdq.pcm.repository.PrimitiveDataType) |
25 | */ |
26 | @Override |
27 | public Object casePrimitiveDataType(PrimitiveDataType object) { |
28 | String result = ""; |
29 | result += object.getType(); |
30 | return result; |
31 | } |
32 | |
33 | |
34 | |
35 | } |