Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model
Class ReplaceableParametersProcessor

java.lang.Object
  extended by org.eclipse.mtj.core.model.ReplaceableParametersProcessor

public class ReplaceableParametersProcessor
extends Object

This class provides processing for a string containing replaceable values. This class supports strings that are formatted as follows:

 [%heapsize%|-Xheapsize:%heapsize%] [%securityDomain%|-Xdomain:%securityDomain%] %userSpecifiedArguments%
 
Strings specified within '%' characters are replaceable. The string between the characters provides the name of a property to be found within the provided properties object. Expressions of the form [%value1%|optional expression] specify an optional expression. If the result of evaluating %value1% is non-null and has a length greater than zero, the entire optional expression with be replaced with the value of optional expression. If the result of evaluating %value1% is null or an empty string, the entire conditional expression will be removed.


Method Summary
static String processReplaceableValues(String replaceableString, Map<String,String> replacementValues)
          Process the replaceable values in the specified string with values from the replacement values provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processReplaceableValues

public static String processReplaceableValues(String replaceableString,
                                              Map<String,String> replacementValues)
Process the replaceable values in the specified string with values from the replacement values provided.

Parameters:
replaceableString -
replacementValues -
Returns:

Mobile Tools for Java
Release 1.0