net.mlw.vlh.adapter.util
Class FilterTextManipulator

java.lang.Object
  extended bynet.mlw.vlh.adapter.util.FilterTextManipulator
All Implemented Interfaces:
TextManipulator

public class FilterTextManipulator
extends Object
implements TextManipulator

Includes "filters" if the key is present in the filter tag. For example:

"I am a /~size:FAT~/ man."

Author:
mwilson

Constructor Summary
FilterTextManipulator()
           
 
Method Summary
 StringBuffer manipulate(StringBuffer text, Map model)
          Consumes a StringBuffer and a Map and manipulates the StringBuffer.
 void setEndToken(String endToken)
           
 void setStartToken(String startToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterTextManipulator

public FilterTextManipulator()
Method Detail

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.


Copyright © 2003-2006 mlavilson. All Rights Reserved.