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

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

public class LookupFilter
extends Object
implements Filter


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
LookupFilter()
           
LookupFilter(Map lookupMap)
           
 
Method Summary
 Filter configure(Object obj)
          Configure the the Filter with the XML Chunk.
 Object filter(Object key, FilterContext context)
          Looks up the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

LookupFilter

public LookupFilter()

LookupFilter

public LookupFilter(Map lookupMap)
Method Detail

filter

public Object filter(Object key,
                     FilterContext context)
              throws FilterException
Looks up the given key. If the key doesn't exist, null returned. If the lookupMap is null, the key itself will be returned.

Specified by:
filter in interface Filter
Parameters:
key - The key to lookup.
Returns:
the mapped objet.
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.