
Public Member Functions | |
| SearchEngine (LogEntryTable let) | |
| int | find (String searchString, boolean caseSensitive, boolean wholeWord, boolean forwardSearch, boolean[] cols) |
| int | find (Pattern regExp, boolean forwardSearch, boolean[] cols) |
Private Member Functions | |
| int | find (Pattern regExp, String searchString, boolean caseSensitive, boolean wholeWord, boolean forwardSearch, boolean[] cols) |
| boolean | matches (Object obj, Pattern regExp, String searchString, boolean caseSensitive, boolean wholeWord) |
| int | getStartingRow (boolean forward) |
Private Attributes | |
| LogTableDataModel | logTableDataModel |
| LogEntryTable | logEntryTable |
Objects of this class search the logs for a string The method that activates the search is find (overloaded)
| com::cosylab::logging::search::SearchEngine::SearchEngine | ( | LogEntryTable | let | ) | [inline] |
The constructor
| ltdm | The LogTableDataModel of the main window |
References alma::acs::logging::table::LogEntryTable::getLCModel(), logEntryTable, and logTableDataModel.
| int com::cosylab::logging::search::SearchEngine::find | ( | Pattern | regExp, | |
| String | searchString, | |||
| boolean | caseSensitive, | |||
| boolean | wholeWord, | |||
| boolean | forwardSearch, | |||
| boolean[] | cols | |||
| ) | [inline, private] |
The method executes the search for both the public overloaded find methods.
| regExp | The regular expression to look for in the logs null if the method search for a string | |
| searchString | The string to look for in the logs null if the method search for a reg exp | |
| caseSensitive | If true performs a CaseSensitive search Ignored for reg exp searchs (it is coded in the Pattern) | |
| wholeWord | If true look for the whole word int the column Ignored for reg exp searchs | |
| forwardSearch | If true search forward otherwise backward | |
| cols | The columns of each log tool for the string |
References com::cosylab::logging::engine::log::ILogEntry::getAdditionalData(), com::cosylab::logging::engine::log::ILogEntry::getField(), getStartingRow(), alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), com::cosylab::logging::engine::log::ILogEntry::hasDatas(), logEntryTable, logTableDataModel, and matches().
| int com::cosylab::logging::search::SearchEngine::find | ( | Pattern | regExp, | |
| boolean | forwardSearch, | |||
| boolean[] | cols | |||
| ) | [inline] |
Search the log for a regular expression
| regExp | The regular expression to look for in the logs | |
| forwardSearch | If true search forward otherwise backward | |
| cols | The columns of each log tool for the string |
References find().
| int com::cosylab::logging::search::SearchEngine::find | ( | String | searchString, | |
| boolean | caseSensitive, | |||
| boolean | wholeWord, | |||
| boolean | forwardSearch, | |||
| boolean[] | cols | |||
| ) | [inline] |
Search the logs for a string
| searchString | The string to look for in the logs | |
| caseSensitive | If true performs a CaseSensitive search | |
| wholeWord | If true look for the whole word int the column | |
| forwardSearch | If true search forward otherwise backward | |
| cols | The columns of each log tool for the string |
Referenced by find(), and com::cosylab::logging::search::SearchDialog::search().
| int com::cosylab::logging::search::SearchEngine::getStartingRow | ( | boolean | forward | ) | [inline, private] |
Get the starting row number for a search.
References logEntryTable.
Referenced by find().
| boolean com::cosylab::logging::search::SearchEngine::matches | ( | Object | obj, | |
| Pattern | regExp, | |||
| String | searchString, | |||
| boolean | caseSensitive, | |||
| boolean | wholeWord | |||
| ) | [inline, private] |
Check if the given object matches the search criteria
| obj | The object to check (it should be a string or a way to convert the obj to a string must be known) | |
| regExp | The regular expression to look for in the logs null if the method search for a string | |
| searchString | The string to look for in the logs null if the method search for a reg exp | |
| caseSensitive | If true performs a CaseSensitive search Ignored for reg exp searchs (it is coded in the Pattern) | |
| wholeWord | If true look for the whole word int the column Ignored for reg exp searchs |
Referenced by find().
The JTable of the logs
Referenced by find(), getStartingRow(), and SearchEngine().
The reference to the table data model
Referenced by find(), and SearchEngine().
1.6.2