blob: 9ee476dcb19b22af884a1dcbad2db000b1360748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package syntaxParser;
/**
* CoverageList class represents a CoverageList.
* Creation date: (3/3/2003 2:52:55 AM)
* @author: mattia parigiani, Sorin Stancu-Mara
*/
import java.util.*;
public class CoverageList implements IParseTreeNode {
private String coverageName;
private CoverageList next;
public CoverageList(String c) {
coverageName = c;
next = null;
}
public CoverageList(String c, CoverageList l) {
coverageName = c;
next = l;
}
public String toXML(){
String result = "<coverageName>" + coverageName + "</coverageName>";
if (next != null) {
result += next.toXML();
}
return result;
}
}
|