1 package com.calipso.reportgenerator.userinterface; 2 3 import com.calipso.reportgenerator.common.ReportSpec; 4 5 import java.util.Hashtable ; 6 import java.util.Vector ; 7 8 13 14 public class UserParameterElement { 15 16 private String dimension; 17 private String name; 18 private String filterDefinitionName; 19 private Hashtable values; 20 private Vector keysOrder; 21 private ReportSpec reportSpec; 22 23 30 public UserParameterElement(String name, Hashtable values, Vector keysOrder, String filterDefinitionName, String dimension, ReportSpec reportSpec){ 31 this.reportSpec = reportSpec; 32 this.dimension = dimension; 33 this.name = name; 34 this.values = values; 35 this.keysOrder = keysOrder; 36 this.filterDefinitionName = filterDefinitionName; 37 } 38 39 43 public String getName(){ 44 return name; 45 } 46 47 51 public Hashtable getValues(){ 52 return values; 53 } 54 55 59 public String getFilterDefinitionName(){ 60 return filterDefinitionName; 61 } 62 63 68 public String getKeyAt(int index){ 69 return (String ) keysOrder.elementAt(index); 70 } 71 72 public int getDimensionDataType() { 73 return reportSpec.getDimensionFromName(dimension).getDataType().getType(); 74 } 75 } 76 | Popular Tags |