Skip to content

Package: TempTypeExtensionWithCondition

TempTypeExtensionWithCondition

nameinstructionbranchcomplexitylinemethod
TempTypeExtensionWithCondition()
M: 23 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
getValue()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getVariable()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasCondition()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setValue(RegEx)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setVariable(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: *
3: */
4: package parser.tempparserobjects;
5:
6: import java.util.ArrayList;
7:
8: import model.type.RegEx;
9: import model.type.RegExPart;
10: import model.type.RegExStringPart;
11:
12: /**
13: * @author Hendrik
14: *
15: */
16: public class TempTypeExtensionWithCondition extends TempTypeExtension {
17:         /**
18:          * the variable.
19:          */
20:         private String variable;
21:         /**
22:          * the value.
23:          */
24:         private RegEx value;
25:
26:         /**
27:          *
28:          */
29:         public TempTypeExtensionWithCondition() {
30:                 super();
31:                 this.variable = "";
32:                 final ArrayList<RegExPart> defaultValue = new ArrayList<RegExPart>();
33:                 defaultValue.add(new RegExStringPart("yes"));
34:                 this.value = new RegEx(defaultValue);
35:         }
36:
37:         /**
38:          * @return the variable
39:          */
40:         public String getVariable() {
41:                 return this.variable;
42:         }
43:
44:         /**
45:          * @param variable
46:          * the variable to set
47:          */
48:         public void setVariable(final String variable) {
49:                 this.variable = variable;
50:         }
51:
52:         /**
53:          * @return the value
54:          */
55:         public RegEx getValue() {
56:                 return this.value;
57:         }
58:
59:         /**
60:          * @param regEx
61:          * the value to set
62:          */
63:         public void setValue(final RegEx regEx) {
64:                 this.value = regEx;
65:         }
66:
67:         @Override
68:         public boolean hasCondition() {
69:                 return true;
70:         }
71:
72: }