Class Util
java.lang.Object
org.ow2.proactive.process_tree_killer.Util
public class Util
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Util() -
Method Summary
Modifier and Type Method Description static java.lang.Stringjoin(java.util.Collection<?> strings, java.lang.String separator)Concatenate multiple strings by inserting a separator.static java.lang.StringreplaceMacro(java.lang.String s, java.util.Map<java.lang.String,java.lang.String> properties)Replaces the occurrence of '$key' by properties.get('key').static java.lang.StringreplaceMacro(java.lang.String s, VariableResolver<java.lang.String> resolver)Replaces the occurrence of '$key' by resolver.get('key').
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
join
public static java.lang.String join(java.util.Collection<?> strings, java.lang.String separator)Concatenate multiple strings by inserting a separator. -
replaceMacro
public static java.lang.String replaceMacro(java.lang.String s, java.util.Map<java.lang.String,java.lang.String> properties)Replaces the occurrence of '$key' by properties.get('key').Unlike shell, undefined variables are left as-is (this behavior is the same as Ant.)
-
replaceMacro
public static java.lang.String replaceMacro(java.lang.String s, VariableResolver<java.lang.String> resolver)Replaces the occurrence of '$key' by resolver.get('key').Unlike shell, undefined variables are left as-is (this behavior is the same as Ant.)
-