|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.core.search.AbstractSearcher
public abstract class AbstractSearcher
An abstract searcher implementation that reduces the checks on String checks.
Field Summary | |
---|---|
protected boolean |
mReplaceSpCh
Indicates if the special characters should be replaced. |
Constructor Summary | |
---|---|
AbstractSearcher()
|
Method Summary | |
---|---|
boolean |
matches(Program prog,
ProgramFieldType[] fieldArr)
Checks whether a field of a program matches to the criteria of this searcher. |
protected abstract boolean |
matches(java.lang.String value)
Checks whether a value matches to the criteria of this searcher. |
Program[] |
search(ProgramFieldType[] fieldArr,
Date startDate,
int nrDays,
Channel[] channels,
boolean sortByStartTime)
Searches the TV data base for programs that match the criteria of this searcher. |
Program[] |
search(ProgramFieldType[] fieldArr,
Date startDate,
int nrDays,
Channel[] channels,
boolean sortByStartTime,
ProgressMonitor progress)
Searches the TV data base for programs that match the criteria of this searcher. |
Program[] |
search(ProgramFieldType[] fieldArr,
Date startDate,
int nrDays,
Channel[] channels,
boolean sortByStartTime,
ProgressMonitor progress,
javax.swing.DefaultListModel listModel)
Searches the TV data base for programs that match the criteria of this searcher. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean mReplaceSpCh
Constructor Detail |
---|
public AbstractSearcher()
Method Detail |
---|
public boolean matches(Program prog, ProgramFieldType[] fieldArr)
matches
in interface ProgramSearcher
prog
- The program to check.fieldArr
- The fields to search in.
public Program[] search(ProgramFieldType[] fieldArr, Date startDate, int nrDays, Channel[] channels, boolean sortByStartTime, ProgressMonitor progress)
ProgramSearcher
search
in interface ProgramSearcher
fieldArr
- The fields to search instartDate
- The date to start the search.nrDays
- The number of days to include after the start date. If this value
is negative, then all days are searched (beginning with yesterday)
and the startDate parameter is ignored.channels
- The channels to search in. If this is null
, then all
subscribed channels are searched.sortByStartTime
- Should the results be sorted by the start time? If not, the
results will be grouped by date and channel and the search will be
faster.progress
- progressMonitor for showing the search progress
public Program[] search(ProgramFieldType[] fieldArr, Date startDate, int nrDays, Channel[] channels, boolean sortByStartTime, ProgressMonitor progress, javax.swing.DefaultListModel listModel)
ProgramSearcher
search
in interface ProgramSearcher
fieldArr
- The fields to search instartDate
- The date to start the search.nrDays
- The number of days to include after the start date. If this value
is negative, then all days are searched (beginning with yesterday)
and the startDate parameter is ignored.channels
- The channels to search in. If this is null
, then all
subscribed channels are searched.sortByStartTime
- Should the results be sorted by the start time? If not, the
results will be grouped by date and channel and the search will be
faster.progress
- progressMonitor for showing the search progresslistModel
- The list model the found programs should be stored in.
public Program[] search(ProgramFieldType[] fieldArr, Date startDate, int nrDays, Channel[] channels, boolean sortByStartTime)
ProgramSearcher
search
in interface ProgramSearcher
fieldArr
- The fields to search instartDate
- The date to start the search.nrDays
- The number of days to include after the start date. If this value
is negative, then all days are searched (beginning with yesterday)
and the startDate parameter is ignored.channels
- The channels to search in. If this is null
, then all
subscribed channels are searched.sortByStartTime
- Should the results be sorted by the start time? If not, the
results will be grouped by date and channel and the search will be
faster.
protected abstract boolean matches(java.lang.String value)
value
- The value to check
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |