org.pentaho.reporting.engine.classic.core.parameters
Class StaticListParameter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.parameters.AbstractParameter
      extended by org.pentaho.reporting.engine.classic.core.parameters.StaticListParameter
All Implemented Interfaces:
Serializable, Cloneable, ListParameter, ParameterDefinitionEntry

public class StaticListParameter
extends AbstractParameter
implements ListParameter

Todo: Document me!

Author:
: Thomas Morgner
See Also:
Serialized Form

Constructor Summary
StaticListParameter(String name, boolean allowMultiSelection, boolean strictValueCheck, Class valueType)
           
 
Method Summary
 void addValues(Object key, Object value)
           
 Object getDefaultValue(ParameterContext context)
           
 ParameterValues getValues(ParameterContext context)
           
 boolean isAllowMultiSelection()
           
 boolean isStrictValueCheck()
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.parameters.AbstractParameter
clone, getDefaultValue, getName, getParameterAttribute, getParameterAttribute, getParameterAttributeNames, getParameterAttributeNamespaces, getRole, getValueType, isDeprecated, isHidden, isMandatory, setDefaultValue, setDeprecated, setHidden, setMandatory, setParameterAttribute, setRole, setValueType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.parameters.ParameterDefinitionEntry
clone, getName, getParameterAttribute, getParameterAttributeNames, getParameterAttributeNamespaces, getValueType, isMandatory
 

Constructor Detail

StaticListParameter

public StaticListParameter(String name,
                           boolean allowMultiSelection,
                           boolean strictValueCheck,
                           Class valueType)
Method Detail

addValues

public void addValues(Object key,
                      Object value)

isAllowMultiSelection

public boolean isAllowMultiSelection()
Specified by:
isAllowMultiSelection in interface ListParameter

isStrictValueCheck

public boolean isStrictValueCheck()
Specified by:
isStrictValueCheck in interface ListParameter

getValues

public ParameterValues getValues(ParameterContext context)
                          throws ReportDataFactoryException
Specified by:
getValues in interface ListParameter
Throws:
ReportDataFactoryException

getDefaultValue

public Object getDefaultValue(ParameterContext context)
                       throws ReportDataFactoryException
Specified by:
getDefaultValue in interface ParameterDefinitionEntry
Overrides:
getDefaultValue in class AbstractParameter
Throws:
ReportDataFactoryException