1 28 package net.sf.jasperreports.olap.mapping; 29 30 import java.util.ArrayList ; 31 import java.util.List ; 32 33 34 38 public class TupleMember 39 { 40 private final List names; 41 private String uniqueName; 42 43 public TupleMember () 44 { 45 this.names = new ArrayList (); 46 } 47 48 public void addName (String name) 49 { 50 names.add(name); 51 52 StringBuffer sb = new StringBuffer (); 53 if (uniqueName != null) 54 { 55 sb.append(uniqueName); 56 sb.append('.'); 57 } 58 sb.append('['); 59 sb.append(name); 60 sb.append(']'); 61 62 uniqueName = sb.toString(); 63 } 64 65 public List getNames () 66 { 67 return names; 68 } 69 70 public String getUniqueName () 71 { 72 return uniqueName; 73 } 74 } 75 | Popular Tags |