Mp3dings 
20100427

net.sourceforge.mp3dings.filter
Class AbstractStringFilter

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.Bean
      extended by net.sourceforge.mp3dings.filter.FilterBean
          extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.mp3dings.utils.Bean
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME
 
Constructor Summary
AbstractStringFilter()
           
 
Method Summary
 Object filter(Object val)
          Handles non-String objects and calls filterString() for Strings.
abstract  String filterString(String str)
           
 
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

AbstractStringFilter

public AbstractStringFilter()
Method Detail

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)

Mp3dings 
20100427