org.opennms.core.utils
Class PropertiesUtils
java.lang.Object
org.opennms.core.utils.PropertiesUtils
public class PropertiesUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesUtils
public PropertiesUtils()
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 inproperties - 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.