1 13 package com.tonbeller.jpivot.olap.model.impl; 14 15 import com.tonbeller.jpivot.olap.model.Dimension; 16 import com.tonbeller.jpivot.olap.model.Hierarchy; 17 import com.tonbeller.jpivot.olap.model.Level; 18 import com.tonbeller.jpivot.olap.model.Visitor; 19 20 25 public class HierarchyImpl implements Hierarchy { 26 Dimension dimension; 27 Level[] levels; 28 String label; 29 boolean hasAll; 30 31 35 public Dimension getDimension() { 36 return dimension; 37 } 38 39 43 public Level[] getLevels() { 44 return levels; 45 } 46 47 51 public void setDimension(Dimension dimension) { 52 this.dimension = dimension; 53 } 54 55 59 public void setLevels(Level[] levels) { 60 this.levels = levels; 61 } 62 63 64 public void accept(Visitor visitor) { 65 visitor.visitHierarchy(this); 66 } 67 68 public Object getRootDecoree() { 69 return this; 70 } 71 72 76 public String getLabel() { 77 return label; 78 } 79 80 84 public void setLabel(String label) { 85 this.label = label; 86 } 87 88 public boolean hasAll() { 89 return hasAll; 90 } 91 92 public void setHasAll(boolean hasAll) { 93 this.hasAll = hasAll; 94 } 95 } 96 | Popular Tags |