Kieker 1.2

kieker.common.util
Class PropertyMap

java.lang.Object
  extended by 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.
 
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

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.2

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