org.ops4j.util.collections
Class PropertyResolver

java.lang.Object
  extended by org.ops4j.util.collections.PropertyResolver

public final class PropertyResolver
extends Object

Utility class that handles substitution of property names in the string for ${value} relative to a supplied set of properties.

Version:
$Id$
Author:
Open Participation Software for Java

Method Summary
static String resolve(Properties props, String value)
          Symbol substitution from properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolve

public static String resolve(Properties props,
                             String value)
Symbol substitution from properties. Replace any occurances of ${[key]} with the value of the property assigned to the [key] in the supplied properties argument.

Parameters:
props - the source properties from which substitution is resolved
value - a string containing possibly multiple ${[value]} sequences
Returns:
the expanded string


Copyright © 2006-2013 OPS4J - Open Participation Software for Java. All Rights Reserved.