Kieker 1.3

kieker.analysis.util
Class PropertyMap

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.


Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net