EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.cip.configuration] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
TransformationType.java | 0% (0/1) | 0% (0/6) | 0% (0/128) | 0% (0/25) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class TransformationType | 0% (0/1) | 0% (0/6) | 0% (0/128) | 0% (0/25) |
<static initializer> | 0% (0/1) | 0% (0/54) | 0% (0/6) | |
TransformationType (String, int): void | 0% (0/1) | 0% (0/5) | 0% (0/1) | |
fromString (String): TransformationType | 0% (0/1) | 0% (0/26) | 0% (0/9) | |
toString (): String | 0% (0/1) | 0% (0/22) | 0% (0/9) | |
valueOf (String): TransformationType | 0% (0/1) | 0% (0/5) | 0% (0/1) | |
values (): TransformationType [] | 0% (0/1) | 0% (0/16) | 0% (0/1) |
1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.cip.configuration; |
5 | |
6 | public enum TransformationType { |
7 | NONE, |
8 | REGISTERED, |
9 | FEATURE, |
10 | ANNOTATED, |
11 | PLAIN; |
12 | |
13 | public String toString(){ |
14 | if(this == REGISTERED) |
15 | return "Registered"; |
16 | else if(this == FEATURE) |
17 | return "Feature"; |
18 | else if(this == ANNOTATED) |
19 | return "Annoteted"; |
20 | else if(this == PLAIN) |
21 | return "Plain"; |
22 | |
23 | return "None"; |
24 | } |
25 | |
26 | public static TransformationType fromString(String value){ |
27 | if(value.equalsIgnoreCase ("Registered")) |
28 | return REGISTERED; |
29 | else if(value.equalsIgnoreCase ("Feature")) |
30 | return FEATURE; |
31 | else if(value.equalsIgnoreCase ("Annoteted")) |
32 | return ANNOTATED; |
33 | else if(value.equalsIgnoreCase ("Plain")) |
34 | return PLAIN; |
35 | |
36 | return NONE; |
37 | } |
38 | } |
[all classes][de.uka.ipd.sdq.cip.configuration] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |