kieker.analysis.util
Class PropertyMap
java.lang.Object
kieker.analysis.util.PropertyMap
public class PropertyMap
- extends Object
- Author:
- Andre van Hoorn
Constructor Summary |
PropertyMap(String initString,
String pairDelimiter,
String keyValueDelimiter)
Constructs an object from the given initString using the given delimiters. |
Method Summary |
HashMap<String,String> |
getMap()
|
String |
getProperty(String propName)
Returns the value for the initialization property @a propName or null
if no value for this property exists. |
String |
getProperty(String propName,
String defaultVal)
Returns the value for the initialization property @a propName or the
the passed default value @a default if no value for this property
exists. |
PropertyMap
public PropertyMap(String initString,
String pairDelimiter,
String keyValueDelimiter)
- Constructs an object from the given initString using the given delimiters.
- Parameters:
initString
-
- Throws:
IllegalArgumentException
- if the initString couldn't be parsed.
getMap
public final HashMap<String,String> getMap()
- Returns:
- the map
getProperty
public final String getProperty(String propName,
String defaultVal)
- Returns the value for the initialization property @a propName or the
the passed default value @a default if no value for this property
exists.
getProperty
public final String getProperty(String propName)
- Returns the value for the initialization property @a propName or null
if no value for this property exists.
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>