net.sourceforge.mp3dings.filter
Class AbstractStringFilter
java.lang.Object
net.sourceforge.mp3dings.utils.Bean
net.sourceforge.mp3dings.filter.FilterBean
net.sourceforge.mp3dings.filter.AbstractStringFilter
- All Implemented Interfaces:
- Serializable, Filter
- Direct Known Subclasses:
- StringReplacer, StringSelector, SubstringFilter
public abstract class AbstractStringFilter
- extends FilterBean
A filter that affects only strings and returns other objects unchanged.
FullTextStrings are converted to strings and backwards
as needed.
- 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 |
AbstractStringFilter
public AbstractStringFilter()
filter
public Object filter(Object val)
- Handles non-String objects and calls filterString() for Strings.
- Specified by:
filter in interface Filter- Specified by:
filter in class FilterBean
- 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);
filterString
public abstract String filterString(String str)