public class ModifiableParametricBase extends ParametricBase implements ModifiableParametric
ModifiableParametric
interface on encapsulated Map
.
Note that this class can be used as wrapper for Map
.Constructor and Description |
---|
ModifiableParametricBase(java.util.Map<java.lang.String,? extends java.lang.Object> map)
Creates a new instance of ModifiableParametricBase backed-up by the given map with parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
removeParameter(java.lang.String name)
Removes an additional parameter with the given
name . |
java.lang.Object |
setParameter(java.lang.String name,
java.lang.Object value)
Set an additional parameter with the given
name to the given value . |
append, appendParameter, clearSurplusData, clearSurplusData, containsParameter, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, toString, toStringWithCast
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsParameter, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter
public ModifiableParametricBase(java.util.Map<java.lang.String,? extends java.lang.Object> map)
map
- the map that provides the parameter valuespublic java.lang.Object setParameter(java.lang.String name, java.lang.Object value)
ModifiableParametric
name
to the given value
.
Note that the previous value is replaced with the new one.setParameter
in interface ModifiableParametric
name
- the name of the additional parameter to setvalue
- the new value for the parametername
or null if it was not setpublic java.lang.Object removeParameter(java.lang.String name)
ModifiableParametric
name
.removeParameter
in interface ModifiableParametric
name
- the name of the additional parameter to removename
that was removed or null if it was not set