org.webmacro.engine
Class EscapeFilter

java.lang.Object
  |
  +--org.webmacro.engine.EscapeFilter
All Implemented Interfaces:
Filter

public class EscapeFilter
extends java.lang.Object
implements Filter

Filter factory, that defines recursive behaviour and provides filter macro.


Constructor Summary
EscapeFilter()
           
 
Method Summary
 Filter getFilter(java.lang.String name)
          Return this to indicate that we will recursively filter sub-properties.
 Macro getMacro(Macro source)
          Return a macro for filtering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeFilter

public EscapeFilter()
Method Detail

getFilter

public Filter getFilter(java.lang.String name)
Return this to indicate that we will recursively filter sub-properties.
Specified by:
getFilter in interface Filter
Parameters:
name - name of property to filter
Returns:
this

getMacro

public Macro getMacro(Macro source)
Return a macro for filtering. This will return a macro, that filters source through HTMLEscaper.escape() method.
Specified by:
getMacro in interface Filter
Parameters:
source - macro to html escape
Returns:
filter macro for source