git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2004-09-30 16:57:18 +00:00
parent 74dbcc9b90
commit 440ac74e04
1 changed files with 7 additions and 5 deletions

View File

@ -19,24 +19,26 @@ import java.util.Map;
import java.util.ArrayList;
/**
* Provides the ability to substitute values from one or more maps into
* designated places within a string.
* Substitutes values from one or more maps into designated places within a string.
* <p>
* For example:
* </p>
* <pre>
* "User ${id} has uid ${uid} and path of env{path}"
* </pre>
* can be expanded using values from a map associated with "$" and a different
* map associated with "env".
* <p>
* This class is similar to the java.text.MessageFormat class, but allows
* This class is similar to the {@link java.text.MessageFormat} class, but allows
* data to be retrieved from one or maps instead of from a single list.
* Unlike the MessageFormat class, however, it simply uses the result of
* applying toString() to the referenced values in the map(s) and does not
* support any "format" operations applied to the objects before substitution
* into the target string.
*
* Originally org.apache.commons.digester.substitution.MultiVariableExpander
* </p>
* <p>
* Originally org.apache.commons.digester.substitution.MultiVariableExpander.
* </p>
*
* @since 2.1
*/