Public Member Functions

com.cosylab.logging.search.SearchEngine Class Reference

List of all members.

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)

Detailed Description

Author:
acaproni

Objects of this class search the logs for a string The method that activates the search is find (overloaded)


Constructor & Destructor Documentation

com.cosylab.logging.search.SearchEngine.SearchEngine ( LogEntryTable  let  ) 

The constructor

Parameters:
ltdm The LogTableDataModel of the main window

References alma.acs.logging.table.LogEntryTable.getLCModel().


Member Function Documentation

int com.cosylab.logging.search.SearchEngine.find ( String  searchString,
boolean  caseSensitive,
boolean  wholeWord,
boolean  forwardSearch,
boolean[]  cols 
)

Search the logs for a string

Parameters:
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
Returns:
-1 if no log is found otherwise the row containing the log

Referenced by com.cosylab.logging.search.SearchEngine.find(), and com.cosylab.logging.search.SearchDialog.search().

int com.cosylab.logging.search.SearchEngine.find ( Pattern  regExp,
boolean  forwardSearch,
boolean[]  cols 
)

Search the log for a regular expression

Parameters:
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
Returns:
-1 if no log is found otherwise the row containing the log

References com.cosylab.logging.search.SearchEngine.find().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties