public class SearchEngine
extends java.lang.Object
| Constructor and Description |
|---|
SearchEngine(LogEntryTable let)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
find(java.util.regex.Pattern regExp,
boolean forwardSearch,
boolean[] cols)
Search the log for a regular expression
|
int |
find(java.lang.String searchString,
boolean caseSensitive,
boolean wholeWord,
boolean forwardSearch,
boolean[] cols)
Search the logs for a string
|
public SearchEngine(LogEntryTable let)
ltdm - The LogTableDataModel of the main windowpublic int find(java.lang.String searchString,
boolean caseSensitive,
boolean wholeWord,
boolean forwardSearch,
boolean[] cols)
searchString - The string to look for in the logscaseSensitive - If true performs a CaseSensitive searchwholeWord - If true look for the whole word int the columnforwardSearch - If true search forward otherwise backwardcols - The columns of each log tool for the stringpublic int find(java.util.regex.Pattern regExp,
boolean forwardSearch,
boolean[] cols)
regExp - The regular expression to look for in the logsforwardSearch - If true search forward otherwise backwardcols - The columns of each log tool for the string