Kieker 1.4

kieker.analysis.util
Class PropertyMap

java.lang.Object
  extended by kieker.analysis.util.PropertyMap

public class PropertyMap
extends Object

TODO: replace with Configuration, similar to Monitoring Component See ticket http://samoa.informatik.uni-kiel.de:8000/kieker/ticket/163

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
 Map<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 Map<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.4

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