KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportcalculator > DataTreeIterator


1 package com.calipso.reportgenerator.reportcalculator;
2
3 import com.calipso.reportgenerator.reportcalculator.DataTree;
4 import java.util.Collection JavaDoc;
5
6 /**
7  * Itera una instancia de <code>DataTree</code>.
8  */

9
10 public class DataTreeIterator {
11   private DataTree dataTree;
12
13   /**
14    * Crea una instancia de <code>DataTreeIterator</code>
15    * a partir de una instancia de <code>DataTree</code>.
16    * @param dataTree
17    */

18   public DataTreeIterator(DataTree dataTree) {
19     this.dataTree = dataTree;
20     initialize();
21   }
22
23   private void initialize() {
24 /* metrics = cube.getQuery().getMetrics();
25     metricsSize = metrics.length;
26     dimensions = cube.getQuery().getDimensions();
27     dimensionsSize = dimensions.length;
28     entries = new Map.Entry[dimensionsSize + 1];
29     iterators = new Iterator[dimensionsSize];
30     // Carga el primer nodo
31     entryAtPut(-1, new Entry("root", cube.getRoot()));
32   */

33   }
34
35   public void advance() {
36
37   }
38
39   public boolean hasNext() {
40     return false;
41   }
42
43   public Object JavaDoc[] current() {
44     return new Object JavaDoc[0];
45   }
46
47   public Collection JavaDoc currentTotals() {
48     return null;
49   }
50
51   public static DataTreeIterator on(DataTree dataTree) {
52     return new DataTreeIterator(dataTree);
53   }
54 }
55
Popular Tags