net.dpml.util
Interface Resolver


public interface Resolver

Interace implemented by a value (key, ref, and property) resolver.

Version:
2.0.3
Author:
Digital Product Management Laboratory

Method Summary
 java.lang.String getProperty(java.lang.String key)
          Return a property value.
 java.lang.String getProperty(java.lang.String key, java.lang.String value)
          Return a property value.
 java.lang.String resolve(java.lang.String value)
          Symbolic expansion of a supplied value.
 

Method Detail

getProperty

java.lang.String getProperty(java.lang.String key)
Return a property value.

Parameters:
key - the property key
Returns:
the property value

getProperty

java.lang.String getProperty(java.lang.String key,
                             java.lang.String value)
Return a property value.

Parameters:
key - the property key
value - the default value
Returns:
the property value

resolve

java.lang.String resolve(java.lang.String value)
Symbolic expansion of a supplied value. Replace any occurances of ${[key]} with the value of the property assigned to the [key] in system properties.

Parameters:
value - a string containing possibly multiple ${[value]} sequences
Returns:
the expanded string