1 28 package net.sf.jasperreports.olap.mondrian; 29 30 import mondrian.olap.Member; 31 import mondrian.olap.Position; 32 import net.sf.jasperreports.olap.result.JROlapMember; 33 import net.sf.jasperreports.olap.result.JROlapMemberTuple; 34 35 36 40 public class JRMondrianTuple implements JROlapMemberTuple 41 { 42 43 private final JRMondrianMember[] members; 44 45 public JRMondrianTuple(Position position, JRMondrianFactory factory) 46 { 47 Member[] positionMembers = position.getMembers(); 48 members = new JRMondrianMember[positionMembers.length]; 49 for (int i = 0; i < positionMembers.length; i++) 50 { 51 members[i] = factory.createMember(positionMembers[i]); 52 } 53 } 54 55 public JROlapMember[] getMembers() 56 { 57 return members; 58 } 59 60 } 61 | Popular Tags |