| java.lang.Object org.springframework.webflow.core.collection.LocalParameterMap org.springframework.webflow.test.MockParameterMap
MockParameterMap | public class MockParameterMap extends LocalParameterMap (Code) | | A extension of parameter map that allows for mutation of parameters. Useful
as a stub for testing.
See Also: ParameterMap author: Keith Donald |
Constructor Summary | |
public | MockParameterMap() Creates a new parameter map, initially empty. |
MockParameterMap | public MockParameterMap()(Code) | | Creates a new parameter map, initially empty.
|
put | public MockParameterMap put(String parameterName, String parameterValue)(Code) | | Add a new parameter to this map.
Parameters: parameterName - the parameter name Parameters: parameterValue - the parameter value this, to support call chaining |
put | public MockParameterMap put(String parameterName, String[] parameterValues)(Code) | | Add a new multi-valued parameter to this map.
Parameters: parameterName - the parameter name Parameters: parameterValues - the parameter values this, to support call chaining |
Methods inherited from org.springframework.webflow.core.collection.LocalParameterMap | public AttributeMap asAttributeMap()(Code)(Java Doc) public Map asMap()(Code)(Java Doc) public boolean contains(String parameterName)(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) public String get(String parameterName)(Code)(Java Doc) public String get(String parameterName, String defaultValue)(Code)(Java Doc) public Object get(String parameterName, Class targetType) throws ConversionException(Code)(Java Doc) public Object get(String parameterName, Class targetType, Object defaultValue) throws ConversionException(Code)(Java Doc) public String[] getArray(String parameterName)(Code)(Java Doc) public Object[] getArray(String parameterName, Class targetElementType) throws ConversionException(Code)(Java Doc) public Boolean getBoolean(String parameterName) throws ConversionException(Code)(Java Doc) public Boolean getBoolean(String parameterName, Boolean defaultValue) throws ConversionException(Code)(Java Doc) public Integer getInteger(String parameterName) throws ConversionException(Code)(Java Doc) public Integer getInteger(String parameterName, Integer defaultValue) throws ConversionException(Code)(Java Doc) public Long getLong(String parameterName) throws ConversionException(Code)(Java Doc) public Long getLong(String parameterName, Long defaultValue) throws ConversionException(Code)(Java Doc) protected Map getMapInternal()(Code)(Java Doc) public MultipartFile getMultipartFile(String parameterName)(Code)(Java Doc) public Number getNumber(String parameterName, Class targetType) throws ConversionException(Code)(Java Doc) public Number getNumber(String parameterName, Class targetType, Number defaultValue) throws ConversionException(Code)(Java Doc) public String getRequired(String parameterName) throws IllegalArgumentException(Code)(Java Doc) public Object getRequired(String parameterName, Class targetType) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public String[] getRequiredArray(String parameterName) throws IllegalArgumentException(Code)(Java Doc) public Object[] getRequiredArray(String parameterName, Class targetElementType) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public Boolean getRequiredBoolean(String parameterName) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public Integer getRequiredInteger(String parameterName) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public Long getRequiredLong(String parameterName) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public MultipartFile getRequiredMultipartFile(String parameterName) throws IllegalArgumentException(Code)(Java Doc) public Number getRequiredNumber(String parameterName, Class targetType) throws IllegalArgumentException, ConversionException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) protected void initParameters(Map parameters)(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public int size()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|