1 28 package net.sf.jasperreports.olap.xmla; 29 30 import mondrian.olap.Member; 31 import net.sf.jasperreports.olap.result.JROlapMember; 32 33 34 38 public class JRXmlaMember implements JROlapMember 39 { 40 41 private final String name; 42 private final String uniqueName; 43 private final String dimensionName; 44 private final String levelName; 45 private final int depth; 46 47 public JRXmlaMember(String name, String uniqueName, String dimensionName, String levelName, int depth) 48 { 49 this.name = name; 50 this.uniqueName = uniqueName; 51 this.dimensionName = dimensionName; 52 this.levelName = levelName; 53 this.depth = depth; 54 } 55 56 public int getDepth() 57 { 58 return depth; 59 } 60 61 public String getName() 62 { 63 return name; 64 } 65 66 public JROlapMember getParentMember() 67 { 68 return null; 70 } 71 72 public Object getPropertyValue(String propertyName) 73 { 74 throw new UnsupportedOperationException ("Member properties are not supported by the XML/A query executer"); 75 } 76 77 public String getUniqueName() 78 { 79 return uniqueName; 80 } 81 82 public String getLevelName() 83 { 84 return levelName; 85 } 86 87 88 public String getDimensionName() 89 { 90 return dimensionName; 91 } 92 93 public Member getMondrianMember() 94 { 95 throw new UnsupportedOperationException ("XML/A member cannot be converted to a mondrian.olap.Member"); 96 } 97 98 } 99 | Popular Tags |