kieker.common.util
Class PropertyMap
java.lang.Object
kieker.common.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 |
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.
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 2010 the Kieker Project, http://kieker.sourceforge.net>