blob: 49e187b4c8115acaeec3b87755cd34abb66f3cac (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
package syntaxParser;
/**
* ScalarLitList class represents a CoverageList.
* Creation date: (3/3/2003 2:52:55 AM)
* @author: mattia parigiani
*/
import java.util.*;
public class ScalarLitList {
private Vector scalarLits;
/**
* CoverageList constructor comment.
*/
public ScalarLitList() {
super();
}
public ScalarLitList(ScalarLit sl) {
scalarLits = new Vector();
scalarLits.add(sl);
}
public ScalarLitList(ScalarLit sl, ScalarLitList l) {
scalarLits = l.getScalarLits();
scalarLits.add(sl);
}
public Vector getScalarLits(){
return scalarLits;
}
String toXML(){
String result="" ;
for (Enumeration e=scalarLits.elements(); e.hasMoreElements(); ){
/*String s= (String)e.nextElement();
result += "\n<coverageOrSetName>";
result += (s instanceof String)? s: " ";
result += "</coverageOrSetName>\n";
*/
}
result += "just parsing";
return result;
}
}
|