1 13 package com.tonbeller.jpivot.mondrian; 14 15 import java.util.ArrayList ; 16 import java.util.Iterator ; 17 import java.util.List ; 18 import com.tonbeller.jpivot.olap.query.PositionBase; 19 20 23 public class MondrianPosition extends PositionBase { 24 25 mondrian.olap.Position monPosition; 26 MondrianModel model; 27 private int iAxis; 29 35 MondrianPosition(mondrian.olap.Position monPosition, int iAxis, MondrianModel model) { 36 super(); 37 this.monPosition = monPosition; 38 this.model = model; 39 this.iAxis = iAxis; 40 List l = new ArrayList (); 42 Iterator mit = monPosition.iterator(); 43 while (mit.hasNext()) { 44 mondrian.olap.Member monMember = (mondrian.olap.Member) mit.next(); 45 l.add(model.lookupMemberByUName(monMember.getUniqueName())); 46 } 47 members = (MondrianMember[]) l.toArray(new MondrianMember[l.size()]); 48 } 49 50 58 59 63 int getAxis() { 64 return iAxis; 65 } 66 67 } | Popular Tags |