public class CommonsInterpolator extends Object implements Interpolator
ConfigurationInterpolator with the default
lookup: sys (system properties), env (environment variables>, and const (constants).
| lookup | example | value |
|---|---|---|
| sys | ${sys:os.name} | mac os x |
| env | ${env:EDITOR} | vi |
| const | ${const:java.awt.event.KeyEvent.VK_ENTER} | \n |
ConfigurationInterpolator| Constructor and Description |
|---|
CommonsInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.configuration2.interpol.ConfigurationInterpolator |
getConfigurationInterpolator() |
String |
interpolate(String value)
Interpolates
value and returns the result. |
public String interpolate(String value)
Interpolatorvalue and returns the result.interpolate in interface Interpolatorvalue - the source textvalue, if there was not change.public org.apache.commons.configuration2.interpol.ConfigurationInterpolator getConfigurationInterpolator()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.