foundry-0.9.1

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


Field Summary
protected  String endDelimiter
           
protected  String startDelimiter
           
protected  boolean strict
           
 
Constructor Summary
private SimpleInterpolator()
           
  SimpleInterpolator(String startDelimiter, String endDelimiter, boolean strict)
           
 
Method Summary
 String getTokenEndDelimiter()
           
 String getTokenStartDelimiter()
           
abstract  String getValueForToken(String token)
           
 String interpolate(String source)
           
 boolean isStrict()
           
 void setStrict(boolean strict)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

startDelimiter

protected final String startDelimiter

endDelimiter

protected final String endDelimiter

strict

protected boolean strict
Constructor Detail

SimpleInterpolator

private SimpleInterpolator()

SimpleInterpolator

public SimpleInterpolator(String startDelimiter,
                          String endDelimiter,
                          boolean strict)
                   throws IllegalArgumentException
Method Detail

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

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson