foundry.stringutils
Class SimpleInterpolator
java.lang.Object
|
+--foundry.stringutils.SimpleInterpolator
- All Implemented Interfaces:
- Interpolator
- Direct Known Subclasses:
- SystemPropertiesInterpolator
- public abstract class SimpleInterpolator
- extends Object
- implements Interpolator
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
startDelimiter
protected final String startDelimiter
endDelimiter
protected final String endDelimiter
strict
protected boolean strict
SimpleInterpolator
private SimpleInterpolator()
SimpleInterpolator
public SimpleInterpolator(String startDelimiter,
String endDelimiter,
boolean strict)
throws IllegalArgumentException
isStrict
public boolean isStrict()
setStrict
public void setStrict(boolean strict)
getTokenStartDelimiter
public String getTokenStartDelimiter()
throws StringUtilsException
- Specified by:
getTokenStartDelimiter
in interface Interpolator
getTokenEndDelimiter
public String getTokenEndDelimiter()
throws StringUtilsException
- Specified by:
getTokenEndDelimiter
in interface Interpolator
interpolate
public String interpolate(String source)
throws StringUtilsException
- Specified by:
interpolate
in interface Interpolator
getValueForToken
public abstract String getValueForToken(String token)
throws StringUtilsException
- Specified by:
getValueForToken
in interface Interpolator
Copyright © 2000 - Laird Jarrett Nelson