1 13 package com.tonbeller.jpivot.olap.model.impl; 14 15 import java.util.List ; 16 17 import com.tonbeller.jpivot.olap.model.Level; 18 import com.tonbeller.jpivot.olap.model.Member; 19 import com.tonbeller.jpivot.olap.model.Property; 20 import com.tonbeller.jpivot.olap.model.Visitor; 21 22 27 public class MemberImpl extends PropertyHolderImpl implements Member { 28 29 Level level; 30 int rootDistance; 31 String label; 32 33 public MemberImpl() { 34 } 35 36 public MemberImpl(Property[] properties) { 37 super(properties); 38 } 39 40 public MemberImpl(List propertyList) { 41 super(propertyList); 42 } 43 44 48 public int getRootDistance() { 49 return rootDistance; 50 } 51 52 56 public void setRootDistance(int rootDistance) { 57 this.rootDistance = rootDistance; 58 } 59 60 64 public Level getLevel() { 65 return level; 66 } 67 68 72 public void setLevel(Level level) { 73 this.level = level; 74 } 75 76 public Object getRootDecoree() { 77 return this; 78 } 79 80 public void accept(Visitor visitor) { 81 visitor.visitMember(this); 82 } 83 84 88 public String getLabel() { 89 return label; 90 } 91 92 96 public void setLabel(String label) { 97 this.label = label; 98 } 99 100 public boolean isAll() { 101 return false; 102 } 103 104 public boolean isCalculated() { 105 return false; 106 } 107 108 } 109 | Popular Tags |