de.spieleck.config
Class SimpleParamMap
java.lang.Object
de.spieleck.config.SimpleParamMap
- All Implemented Interfaces:
- ConfigParamMap, java.io.Serializable, SimpleParamGetter
- public class SimpleParamMap
- extends java.lang.Object
- implements ConfigParamMap, SimpleParamGetter
Easy implementation of ConfigParamMap
- Author:
- fsn
- See Also:
- Serialized Form
Field Summary |
protected java.util.Map |
data
|
Method Summary |
java.lang.String |
expand(java.lang.String input)
Expand a string (i.e. expand parameter references) |
static java.lang.String |
expand(java.lang.String input,
SimpleParamGetter pg)
static implementation of an expand method, that
resembles Ant ${param} behaviour. |
java.lang.String |
getParam(java.lang.String key)
|
void |
set(java.lang.String key,
java.lang.String value)
Add a parameter value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected java.util.Map data
SimpleParamMap
public SimpleParamMap()
expand
public java.lang.String expand(java.lang.String input)
- Description copied from interface:
ConfigParamMap
- Expand a string (i.e. expand parameter references)
- Specified by:
expand
in interface ConfigParamMap
set
public void set(java.lang.String key,
java.lang.String value)
- Description copied from interface:
ConfigParamMap
- Add a parameter value
- Specified by:
set
in interface ConfigParamMap
getParam
public java.lang.String getParam(java.lang.String key)
- Specified by:
getParam
in interface SimpleParamGetter
expand
public static java.lang.String expand(java.lang.String input,
SimpleParamGetter pg)
- static implementation of an expand method, that
resembles Ant ${param} behaviour. Actually code
is inspired but changed from code within Ant's
ProjectHelper. (For example this code allows
recursive evalutaion of expressions, whatever this
is good for.
Copyleft 2002 spieleck.de.