org.webmacro.engine
Class SilenceFilter

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

public class SilenceFilter
extends java.lang.Object
implements Filter


Constructor Summary
SilenceFilter()
           
 
Method Summary
 Filter getFilter(java.lang.String name)
          Return the Filter which should be used to handle a sub-property.
 Macro getMacro(Macro source)
          Instantiate a new filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilenceFilter

public SilenceFilter()
Method Detail

getFilter

public Filter getFilter(java.lang.String name)
Description copied from interface: Filter
Return the Filter which should be used to handle a sub-property. Three options are available here: return a null to indicate no filtering, return self to indicate the same filtering, or return a different Filter to indicate different handling for the sub-property.
Specified by:
getFilter in interface Filter
Following copied from interface: org.webmacro.Filter
Parameters:
name - the name of the sub-property to be filtered
Returns:
the Filter to be used for the sub-property, or null

getMacro

public Macro getMacro(Macro source)
Description copied from interface: Filter
Instantiate a new filter. There are several options for the return value of this method: return null to drop the Macro from the input stream entirely; return the Macro itself to avoid filtering this particular case, or return some new Macro to replace the supplied Macro. The expectation is that the returned Macro will execute the original and apply some post-processing to it.
Specified by:
getMacro in interface Filter
Following copied from interface: org.webmacro.Filter
Parameters:
source - the Macro which this filter will post-process
Returns:
the Macro wrapper to be executed in place of source