org.barracudamvc.contrib.dbroggisch.display.filters
Class SwitchFilter

java.lang.Object
  extended byorg.barracudamvc.contrib.dbroggisch.display.filters.SwitchFilter
All Implemented Interfaces:
Filter

public class SwitchFilter
extends Object
implements Filter

This class executes the filter-method subsequently for all ist child-filters. The first one not to return null or throwing a FilterException wins.

Version:
1.0
Author:
Diez Roggisch

Constructor Summary
SwitchFilter()
           
SwitchFilter(Filter[] fs)
           
SwitchFilter(List fs)
           
 
Method Summary
 Filter configure(Object obj)
          Configure the the Filter with the XML Chunk.
 Object filter(Object value, FilterContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchFilter

public SwitchFilter()

SwitchFilter

public SwitchFilter(Filter[] fs)

SwitchFilter

public SwitchFilter(List fs)
Method Detail

filter

public Object filter(Object value,
                     FilterContext context)
              throws FilterException
Specified by:
filter in interface Filter
Parameters:
value - The object to be filtered.
Returns:
the filtered object.
Throws:
FilterException

configure

public Filter configure(Object obj)
                 throws FilterException
Description copied from interface: Filter
Configure the the Filter with the XML Chunk.

Specified by:
configure in interface Filter
Parameters:
obj - The XML object created by ZEUS
Returns:
The configured Filter - that can be different!
Throws:
FilterException


Copyright © 2004 BarracudaMVC.org All Rights Reserved.