1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.tap4j.parser;
25
26 import org.tap4j.model.TapElement;
27 import org.tap4j.model.TestSet;
28
29
30
31
32
33
34
35 public class Memento {
36
37 private boolean firstLine;
38
39 private boolean planBeforeTestResult;
40
41 private String lastLine;
42
43 private TapElement lastParsedElement;
44
45
46
47
48
49 private int baseIndentationLevel;
50
51
52
53
54
55
56 private int currentIndentationLevel;
57
58 private boolean currentlyInYaml;
59
60 private boolean currentlyInSubtest;
61
62 private StringBuilder diagnosticBuffer = new StringBuilder();
63
64 private TestSet testSet;
65
66 public Memento() {
67 super();
68 }
69
70
71
72
73 public boolean isFirstLine() {
74 return firstLine;
75 }
76
77
78
79
80 public void setFirstLine(boolean firstLine) {
81 this.firstLine = firstLine;
82 }
83
84
85
86
87 public boolean isPlanBeforeTestResult() {
88 return planBeforeTestResult;
89 }
90
91
92
93
94 public void setPlanBeforeTestResult(boolean planBeforeTestResult) {
95 this.planBeforeTestResult = planBeforeTestResult;
96 }
97
98
99
100
101 public String getLastLine() {
102 return lastLine;
103 }
104
105
106
107
108 public void setLastLine(String lastLine) {
109 this.lastLine = lastLine;
110 }
111
112
113
114
115 public TapElement getLastParsedElement() {
116 return lastParsedElement;
117 }
118
119
120
121
122 public void setLastParsedElement(TapElement lastParsedElement) {
123 this.lastParsedElement = lastParsedElement;
124 }
125
126
127
128
129 public int getBaseIndentationLevel() {
130 return baseIndentationLevel;
131 }
132
133
134
135
136 public void setBaseIndentationLevel(int baseIndentationLevel) {
137 this.baseIndentationLevel = baseIndentationLevel;
138 }
139
140
141
142
143 public int getCurrentIndentationLevel() {
144 return currentIndentationLevel;
145 }
146
147
148
149
150 public void setCurrentIndentationLevel(int currentIndentationLevel) {
151 this.currentIndentationLevel = currentIndentationLevel;
152 }
153
154
155
156
157 public boolean isCurrentlyInYaml() {
158 return currentlyInYaml;
159 }
160
161
162
163
164 public void setCurrentlyInYaml(boolean currentlyInYaml) {
165 this.currentlyInYaml = currentlyInYaml;
166 }
167
168
169
170
171 public boolean isCurrentlyInSubtest() {
172 return currentlyInSubtest;
173 }
174
175
176
177
178 public void setCurrentlyInSubtest(boolean currentlyInSubtest) {
179 this.currentlyInSubtest = currentlyInSubtest;
180 }
181
182
183
184
185 public StringBuilder getDiagnosticBuffer() {
186 return diagnosticBuffer;
187 }
188
189
190
191
192 public void setDiagnosticBuffer(StringBuilder diagnosticBuffer) {
193 this.diagnosticBuffer = diagnosticBuffer;
194 }
195
196
197
198
199 public TestSet getTestSet() {
200 return testSet;
201 }
202
203
204
205
206 public void setTestSet(TestSet testSet) {
207 this.testSet = testSet;
208 }
209
210 }