net.mlw.vlh.adapter.util
Class TokenReplaceTextManipulator
java.lang.Object
net.mlw.vlh.adapter.util.TokenReplaceTextManipulator
- All Implemented Interfaces:
- TextManipulator
- public class TokenReplaceTextManipulator
- extends Object
- implements TextManipulator
Replaces "This is a [test]" with "This is a <%=map.get("test")%>"
- Author:
- mwilson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenReplaceTextManipulator
public TokenReplaceTextManipulator()
manipulate
public StringBuffer manipulate(StringBuffer text,
Map model)
- Description copied from interface:
TextManipulator
- Consumes a StringBuffer and a Map and
manipulates the StringBuffer.
- Specified by:
manipulate
in interface TextManipulator
- Parameters:
text
- The StringBuffer to manipulate.model
- The Map to reference.
- Returns:
- The manipulated StringBuffer.
- See Also:
net.mlw.vlh.adapter.util.TextManipulator#manipulate(java.lang.String, java.lang.Object)
setEndToken
public void setEndToken(String endToken)
- Parameters:
endToken
- The endToken to set.
setStartToken
public void setStartToken(String startToken)
- Parameters:
startToken
- The startToken to set.
setNullValue
public void setNullValue(String nullValue)
- Parameters:
nullValue
- The nullValue to set.
Copyright © 2003-2006 mlavilson. All Rights Reserved.