|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sadun.util.LineSet.BaseFilter
org.sadun.util.LineSet.ContainsStringFilter
A Filter which matches lines containing one or more substring.
| Constructor Summary | |
LineSet.ContainsStringFilter(java.lang.String toCheck)
Create a filter checking for one given string being contained; when a matches occurs, the check continues. |
|
LineSet.ContainsStringFilter(java.lang.String[] toCheck)
Create a filter checking for one or more of the given strings being contained; when a matches occurs, the check continues. |
|
LineSet.ContainsStringFilter(java.lang.String[] toCheck,
boolean acceptIfYes,
boolean toCut)
Create a filter checking for one or more of the given strings being contained |
|
LineSet.ContainsStringFilter(java.lang.String toCheck,
boolean acceptIfYes,
boolean toCut)
Create a filter checking for one given string being contained. |
|
| Method Summary | |
int |
getLastMatchIndex()
Returns the last match index. |
boolean |
match(java.lang.String line,
int index,
java.util.Set info)
Must return true if the given line (at the given position) is to be accepted |
void |
onMatch(java.util.Set info)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineSet.ContainsStringFilter(java.lang.String[] toCheck,
boolean acceptIfYes,
boolean toCut)
toCut - indicates whether further lines should be checkedpublic LineSet.ContainsStringFilter(java.lang.String[] toCheck)
toCheck - the strings to be used for matching
public LineSet.ContainsStringFilter(java.lang.String toCheck,
boolean acceptIfYes,
boolean toCut)
toCheck - the string to be used for matchingpublic LineSet.ContainsStringFilter(java.lang.String toCheck)
toCheck - the string to be used for matching| Method Detail |
public boolean match(java.lang.String line,
int index,
java.util.Set info)
LineSet.Filter
match in interface LineSet.FilterLineSet.Filter.match(java.lang.String, int, java.util.Set)public int getLastMatchIndex()
public void onMatch(java.util.Set info)
onMatch in interface LineSet.FilteronMatch in class LineSet.BaseFilterLineSet.Filter.onMatch(java.util.Set)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||