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.Visitor; 18 19 24 public class DimensionImpl implements Dimension { 25 Hierarchy[] hierarchies; 26 boolean time; 27 boolean measure; 28 String label; 29 33 public Hierarchy[] getHierarchies() { 34 return hierarchies; 35 } 36 37 41 public boolean isMeasure() { 42 return measure; 43 } 44 45 49 public boolean isTime() { 50 return time; 51 } 52 53 57 public void setHierarchies(Hierarchy[] hierarchies) { 58 this.hierarchies = hierarchies; 59 } 60 61 65 public void setMeasure(boolean measure) { 66 this.measure = measure; 67 } 68 69 73 public void setTime(boolean time) { 74 this.time = time; 75 } 76 77 78 public void accept(Visitor visitor) { 79 visitor.visitDimension(this); 80 } 81 82 public Object getRootDecoree() { 83 return this; 84 } 85 86 90 public String getLabel() { 91 return label; 92 } 93 94 98 public void setLabel(String label) { 99 this.label = label; 100 } 101 102 } 103 | Popular Tags |