Package org.cyclos.utils
Class MapParameterStorage
- java.lang.Object
-
- org.cyclos.utils.AbstractParameterStorage
-
- org.cyclos.utils.MapParameterStorage
-
- All Implemented Interfaces:
ParameterStorage
public class MapParameterStorage extends AbstractParameterStorage
AParameterStorageimplementation backed by a Map<String, List<String>>.
-
-
Constructor Summary
Constructors Constructor Description MapParameterStorage()MapParameterStorage(boolean caseInsensitive)MapParameterStorage(Map<String,List<String>> map)MapParameterStorage(Map<String,List<String>> map, 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
-
-
-
-
Method Detail
-
getNames
public Iterator<String> getNames()
Description copied from interface:ParameterStorageReturns the names of all parameters with values
-
getString
public String getString(String name)
Description copied from interface:ParameterStorageReturns the parameter as a string, or null if the parameter is not set
-
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
-
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
-
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
-
-