org.opennms.core.utils
Class PropertiesUtils

java.lang.Object
  extended by org.opennms.core.utils.PropertiesUtils

public class PropertiesUtils
extends Object


Nested Class Summary
static interface PropertiesUtils.SymbolTable
           
 
Constructor Summary
PropertiesUtils()
           
 
Method Summary
static String substitute(String initialString, Properties properties)
          This recursively substitutes occurrences ${property.name} in initialString with the value of the property property.name taken from the supplied properties object.
static String substitute(String initialString, PropertiesUtils.SymbolTable symbols)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtils

public PropertiesUtils()
Method Detail

substitute

public static String substitute(String initialString,
                                Properties properties)
This recursively substitutes occurrences ${property.name} in initialString with the value of the property property.name taken from the supplied properties object. If property.name is not defined in properties that the substitution is not done.

Parameters:
initialString - the string to preform the substitions in
properties - the properties to take the values from
Returns:
The string with appropriate substitutions made.

substitute

public static String substitute(String initialString,
                                PropertiesUtils.SymbolTable symbols)


Copyright ? 2007. All Rights Reserved.