Package org.bgerp.util.text
Class PatternFormatter
java.lang.Object
org.bgerp.util.text.PatternFormatter
Processor for substitution patterns like
${key} text (text1 ${key1})}.
Braces bound not mandatory area, being added only when for the key inside has defined a value.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PatternFormatter
public PatternFormatter()
-
-
Method Details
-
processPattern
Executes substitutions in a pattern- Parameters:
pattern- the patternprocessor- values provider for found variables, providednullvalues treated as empty strings- Returns:
- the pattern with applied substitutions
-
processPattern
Executes substitutions in a pattern- Parameters:
pattern- the patternvalues- variable values map, providednullvalues treated as empty strings- Returns:
- the pattern with applied substitutions
-