Package org.cyclos.utils
Class MapParameterStorage
- java.lang.Object
-
- org.cyclos.utils.AbstractParameterStorage
-
- org.cyclos.utils.MapParameterStorage
-
- All Implemented Interfaces:
Serializable,ParameterStorage
public class MapParameterStorage extends AbstractParameterStorage implements Serializable
AParameterStorageimplementation backed by a Map<String, List<String>>.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapParameterStorage()MapParameterStorage(boolean caseInsensitive)MapParameterStorage(Map<String,? extends Serializable> map)MapParameterStorage(Map<String,? extends Serializable> map, boolean caseInsensitive)MapParameterStorage(ParameterStorage params)MapParameterStorage(ParameterStorage params, boolean caseInsensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoSet(String name, List<String> values)Must be implemented to actually set the underlying value as a list of stringsIterator<String>getNames()Returns the names of all parameters with valuesStringgetString(String name)Returns the parameter as a string, or null if the parameter is not setList<String>getStringList(String name)Returns the parameter as a list of strings, or null if the parameter is not setObjectpropertyMissing(String name)Support method for Groovy scripts to handle propertiesvoidpropertyMissing(String name, Object value)Support method for Groovy scripts to handle propertiesvoidremove(String name)Removes the parameter with the given name-
Methods inherited from class org.cyclos.utils.AbstractParameterStorage
getBoolean, getDate, getDecimal, getDecimalList, getEnum, getEnumList, getInteger, getIntegerList, getLong, getLongList, isSet, setBoolean, setDate, setDecimal, setEnum, setInteger, setLong, setString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.utils.ParameterStorage
addBoolean, addDate, addDecimal, addEnum, addInteger, addLong, addString
-
-
-
-
Constructor Detail
-
MapParameterStorage
public MapParameterStorage()
-
MapParameterStorage
public MapParameterStorage(boolean caseInsensitive)
-
MapParameterStorage
public MapParameterStorage(Map<String,? extends Serializable> map)
-
MapParameterStorage
public MapParameterStorage(Map<String,? extends Serializable> map, boolean caseInsensitive)
-
MapParameterStorage
public MapParameterStorage(ParameterStorage params)
-
MapParameterStorage
public MapParameterStorage(ParameterStorage params, boolean caseInsensitive)
-
-
Method Detail
-
getNames
public Iterator<String> getNames()
Description copied from interface:ParameterStorageReturns the names of all parameters with values- Specified by:
getNamesin interfaceParameterStorage
-
getString
public String getString(String name)
Description copied from interface:ParameterStorageReturns the parameter as a string, or null if the parameter is not set- Specified by:
getStringin interfaceParameterStorage
-
getStringList
public List<String> getStringList(String name)
Description copied from interface:ParameterStorageReturns the parameter as a list of strings, or null if the parameter is not set- Specified by:
getStringListin interfaceParameterStorage
-
propertyMissing
public Object propertyMissing(String name)
Support method for Groovy scripts to handle properties
-
propertyMissing
public void propertyMissing(String name, Object value)
Support method for Groovy scripts to handle properties
-
remove
public void remove(String name)
Description copied from interface:ParameterStorageRemoves the parameter with the given name- Specified by:
removein interfaceParameterStorage
-
doSet
protected void doSet(String name, List<String> values)
Description copied from class:AbstractParameterStorageMust be implemented to actually set the underlying value as a list of strings- Specified by:
doSetin classAbstractParameterStorage
-
-