1 13 14 package com.tonbeller.jpivot.xmla; 15 16 import java.util.HashMap ; 17 import java.util.Map ; 18 19 import com.tonbeller.jpivot.olap.model.OlapItem; 20 21 24 public class XMLA_OlapItem implements OlapItem { 25 26 private int type; 27 private Map propMap = new HashMap (); 28 private String caption = null; 29 private String name; 30 private String uniqueName; 31 32 36 public XMLA_OlapItem(int type) { 37 this.type = type; 38 } 39 40 43 public int getType() { 44 return type; 45 } 46 47 51 public String getLabel() { 52 if (caption != null) 53 return caption; 54 else 55 return name; 56 } 57 58 61 public String getUniqueName() { 62 return uniqueName; 63 } 64 65 68 public String getCaption() { 69 return caption; 70 } 71 72 75 public String getName() { 76 return name; 77 } 78 79 83 public String getProperty(String propName) { 84 return (String ) propMap.get(propName); 85 } 86 87 88 93 public Map getProperties() { 94 return propMap; 95 } 96 97 100 public void setName(String name) { 101 this.name = name; 102 } 103 104 107 public void setCaption(String caption) { 108 this.caption = caption; 109 } 110 111 112 116 public void setProperty(String propName, String value) { 117 propMap.put(propName, value); 118 } 119 120 123 public void setUniqueName(String string) { 124 uniqueName = string; 125 if (name == null) 126 name = string; 127 } 128 129 } | Popular Tags |