Last change
on this file since 74 was
58,
checked in by sherbold, 13 years ago
|
- modified de.ugoe.cs.eventbench.ReplayGenerator? to use de.ugoe.cs.eventbench.IReplayDecorator interface to write headers and footers
- added decorator MFCReplayDecorator for writing MFC replay header and footer
|
-
Property svn:mime-type set to
text/plain
|
File size:
912 bytes
|
Line | |
---|
1 | package de.ugoe.cs.eventbench.windows;
|
---|
2 |
|
---|
3 | import de.ugoe.cs.eventbench.IReplayDecorator;
|
---|
4 | import de.ugoe.cs.util.StringTools;
|
---|
5 |
|
---|
6 | public class MFCReplayDecorator implements IReplayDecorator {
|
---|
7 |
|
---|
8 | private static MFCReplayDecorator theInstance;
|
---|
9 |
|
---|
10 | private MFCReplayDecorator() {};
|
---|
11 |
|
---|
12 | public static MFCReplayDecorator getInstance() {
|
---|
13 | if( theInstance==null ) {
|
---|
14 | theInstance = new MFCReplayDecorator();
|
---|
15 | }
|
---|
16 | return theInstance;
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | public String getHeader() {
|
---|
21 | return "<?xml version=\"1.0\" encoding=\"UTF-16\"?>" + StringTools.ENDLINE +
|
---|
22 | "<log>" + StringTools.ENDLINE;
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public String getFooter() {
|
---|
28 | return "</log>" + StringTools.ENDLINE;
|
---|
29 | }
|
---|
30 |
|
---|
31 | @Override
|
---|
32 | public String getSessionHeader() {
|
---|
33 | return " <session>" + StringTools.ENDLINE;
|
---|
34 | }
|
---|
35 |
|
---|
36 | @Override
|
---|
37 | public String getSessionFooter() {
|
---|
38 | return " </session>" + StringTools.ENDLINE;
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.