View Javadoc

1   package com.wikihouse.wildcats0201.jdbcchart.dto;
2   
3   import java.util.LinkedList;
4   import java.util.List;
5   
6   /***
7    * <B>ChartXMLDTO </B>.
8    * 
9    * @author $Author: wildcats $
10   * @version $Revision: 5 $
11   */
12  public class ChartXMLDTO {
13  
14      private Label label;
15      private List seriesList = new LinkedList();
16      private ChartFile file;
17      private SQL sql;
18  
19      public void setLabel(Label label) {
20          this.label = label;
21      }
22  
23      public void addSeries(Item item) {
24          this.seriesList.add(item);
25      }
26  
27      public void setFile(ChartFile file) {
28          this.file = file;
29      }
30  
31      public void setSQL(SQL sql) {
32          this.sql = sql;
33      }
34  
35      public Label getLabel() {
36          return this.label;
37      }
38  
39      public Item[] getSeries() {
40          return (Item[]) this.seriesList.toArray(new Item[0]); // FingBugsでのバグパターンに引っかかるコード。
41      }
42  
43      public ChartFile getFile() {
44          return this.file;
45      }
46  
47      public SQL getSQL() {
48          return this.sql;
49      }
50  
51  }