1 |
|
package com.wikihouse.wildcats0201.jdbcchart.dto; |
2 |
|
|
3 |
|
import java.util.LinkedList; |
4 |
|
import java.util.List; |
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
3 |
|
12 |
1 |
public class ChartXMLDTO { |
13 |
|
|
14 |
2 |
private Label label; |
15 |
1 |
private List seriesList = new LinkedList(); |
16 |
|
private ChartFile file; |
17 |
|
private SQL sql; |
18 |
|
|
19 |
2 |
public void setLabel(Label label) { |
20 |
3 |
this.label = label; |
21 |
1 |
} |
22 |
|
|
23 |
6 |
public void addSeries(Item item) { |
24 |
9 |
this.seriesList.add(item); |
25 |
3 |
} |
26 |
|
|
27 |
2 |
public void setFile(ChartFile file) { |
28 |
3 |
this.file = file; |
29 |
1 |
} |
30 |
|
|
31 |
2 |
public void setSQL(SQL sql) { |
32 |
3 |
this.sql = sql; |
33 |
1 |
} |
34 |
|
|
35 |
2 |
public Label getLabel() { |
36 |
1 |
return this.label; |
37 |
|
} |
38 |
|
|
39 |
2 |
public Item[] getSeries() { |
40 |
1 |
return (Item[]) this.seriesList.toArray(new Item[0]); |
41 |
|
} |
42 |
|
|
43 |
2 |
public ChartFile getFile() { |
44 |
1 |
return this.file; |
45 |
|
} |
46 |
|
|
47 |
2 |
public SQL getSQL() { |
48 |
1 |
return this.sql; |
49 |
|
} |
50 |
|
|
51 |
|
} |