net.sourceforge.mp3dings.filter
Class FilterBean
java.lang.Object
net.sourceforge.mp3dings.utils.Bean
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
| 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 |
FilterBean
public FilterBean()
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);