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 CommonsInterpolator()
public String interpolate(String value)
Interpolator
value
and returns the result.interpolate
in interface Interpolator
value
- 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.