Mp3dings 
20100427

net.sourceforge.mp3dings.filter
Class FilterBean

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.Bean
      extended by net.sourceforge.mp3dings.filter.FilterBean
All Implemented Interfaces:
Serializable, Filter
Direct Known Subclasses:
AbstractStringFilter, BeanShellFilter, NumericFilter

public abstract class FilterBean
extends Bean
implements Filter

A filter that adheres to the Java beans conventions. All instantiable filters in this package extend this class.

Version:
$Revision: 13 $ ($Date: 2007-07-27 11:52:39 +0200 (Fr, 27 Jul 2007) $)
Author:
Moritz Ringler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.mp3dings.utils.Bean
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME
 
Constructor Summary
FilterBean()
           
 
Method Summary
abstract  Object filter(Object val)
          Filters the Object val.
 
Methods inherited from class net.sourceforge.mp3dings.utils.Bean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getName, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterBean

public FilterBean()
Method Detail

filter

public abstract Object filter(Object val)
Description copied from interface: Filter
Filters the Object val.

Specified by:
filter in interface Filter
Parameters:
val - the object to filter
Returns:
the filtered object. It must be an instance of the class of val. Implementations should assure this with an assert statement such as

assert returnval == null || val == null || val.getClass().isInstance(returnval);


Mp3dings 
20100427