1 28 package net.sf.jasperreports.olap.mondrian; 29 30 import mondrian.olap.Member; 31 import net.sf.jasperreports.olap.result.JROlapMember; 32 33 34 38 public class JRMondrianMember implements JROlapMember 39 { 40 41 private final Member member; 42 private final JRMondrianMember parent; 43 44 public JRMondrianMember(Member member, JRMondrianFactory factory) 45 { 46 this.member = member; 47 this.parent = factory.createMember(member.getParentMember()); 48 } 49 50 public int getDepth() 51 { 52 return member.getDepth(); 53 } 54 55 public String getName() 56 { 57 return member.getName(); 58 } 59 60 public JROlapMember getParentMember() 61 { 62 return parent; 63 } 64 65 public Object getPropertyValue(String propertyName) 66 { 67 return member.getPropertyValue(propertyName); 68 } 69 70 public String getUniqueName() 71 { 72 return member.getUniqueName(); 73 } 74 75 public Member getMondrianMember() 76 { 77 return member; 78 } 79 80 } 81 | Popular Tags |