public class ExtendedPropertiesReplacer extends Object implements StringReplacer.ReplaceSource
<name>[<operator>[<argument>]].
All examples assume that the default pattern (${var}) is being used.
The following operators are possible: | Example | Result |
|---|---|
| Hello ${var:default}! | If "var" is set to "test": "Hello test!" If "var" is unset: "Hello default!" |
| Constructor and Description |
|---|
ExtendedPropertiesReplacer(Map<?,?> properties) |
ExtendedPropertiesReplacer(Map<?,?> properties,
boolean failOnMissingKey) |
public ExtendedPropertiesReplacer(Map<?,?> properties, boolean failOnMissingKey)
public ExtendedPropertiesReplacer(Map<?,?> properties)
public String replace(String context, String key)
replace in interface StringReplacer.ReplaceSourceCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.