1 13 package com.tonbeller.jpivot.test.olap; 14 15 import java.util.HashMap ; 16 import java.util.Map ; 17 import java.util.Set ; 18 19 import com.tonbeller.jpivot.olap.model.Displayable; 20 import com.tonbeller.jpivot.olap.model.Expression; 21 import com.tonbeller.jpivot.olap.navi.SetParameter; 22 23 26 public class TestSetParameter extends TestExtensionSupport implements SetParameter { 27 Map params = new HashMap (); 28 29 public void setParameter(String paramName, Expression paramValue) { 30 String label = ((Displayable)paramValue).getLabel(); 31 System.out.println("setting Parameter " + paramName + " to " + label); 32 params.put(paramName, label); 33 } 34 35 36 public Map getDisplayValues() { 37 return params; 38 } 39 40 public String [] getParameterNames() { 41 Set keys = params.keySet(); 42 return (String []) keys.toArray(new String [keys.size()]); 43 } 44 45 } 46 | Popular Tags |