|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.utils.Bean
net.sourceforge.mp3dings.filter.FilterBean
net.sourceforge.mp3dings.filter.AbstractStringFilter
net.sourceforge.mp3dings.filter.SubstringFilter
public class SubstringFilter
A filter that extracts a substring from a string.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.mp3dings.utils.Bean |
|---|
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME |
| Constructor Summary | |
|---|---|
SubstringFilter()
Constructs a filter with its indices initialized so that it returns all objects unchanged. |
|
SubstringFilter(int loi,
int upi)
Constructs a new filter with the given indices. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
filterString(String s)
|
int |
getLowerIndex()
Gets the lower index of this filter. |
int |
getUpperIndex()
Gets the upper index of this filter. |
int |
hashCode()
|
static Bean |
load(Preferences pref,
String key)
returns a SubstringFilter or null |
void |
setIndices(int loi,
int upi)
Sets both lower and upper indices of this filter. |
void |
setLowerIndex(int loi)
Sets the lower index used for substring filtering. |
void |
setUpperIndex(int upi)
Sets the upper index used for substring filtering. |
| Methods inherited from class net.sourceforge.mp3dings.filter.AbstractStringFilter |
|---|
filter |
| Methods inherited from class net.sourceforge.mp3dings.utils.Bean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getName, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubstringFilter()
public SubstringFilter(int loi,
int upi)
loi - the lower indexupi - the upper indexsetUpperIndex(int),
setLowerIndex(int)| Method Detail |
|---|
public static Bean load(Preferences pref,
String key)
public void setLowerIndex(int loi)
public int getLowerIndex()
setLowerIndex(int)public void setUpperIndex(int upi)
public int getUpperIndex()
setUpperIndex(int)
public void setIndices(int loi,
int upi)
loi - the lower indexupi - the upper indexsetUpperIndex(int),
setLowerIndex(int)public String filterString(String s)
filterString in class AbstractStringFilterpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||