public interface OsidTemporalQuery extends OsidQuery
This is the query interface for searching temporal objects. Each method
specifies an AND term while multiple invocations of the
same method produce a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearDateTerms()
Clears the date query terms.
|
void |
clearEffectiveTerms()
Clears the effective query terms.
|
void |
clearEndDateTerms()
Clears the end date query terms.
|
void |
clearStartDateTerms()
Clears the start date query terms.
|
void |
matchAnyEndDate(boolean match)
Matches temporals with any end date set.
|
void |
matchAnyStartDate(boolean match)
Matches temporals with any start date set.
|
void |
matchDate(DateTime from,
DateTime to,
boolean match)
Matches temporals where the given date range falls entirely between
the start and end dates inclusive.
|
void |
matchEffective(boolean match)
Match effective objects where the current date falls within the start
and end dates inclusive.
|
void |
matchEndDate(DateTime start,
DateTime end,
boolean match)
Matches temporals whose effective end date falls in between the given
dates inclusive.
|
void |
matchStartDate(DateTime start,
DateTime end,
boolean match)
Matches temporals whose start date falls in between the given dates
inclusive.
|
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypevoid matchEffective(boolean match)
match - true to match any effective, false
to match ineffectivemandatory - This method must be implemented. void clearEffectiveTerms()
mandatory - This method must be implemented. void matchStartDate(DateTime start, DateTime end, boolean match)
start - start of date rangeend - end of date rangematch - true if a positive match, false
for a negative matchInvalidArgumentException - start is less
than end NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyStartDate(boolean match)
match - true to match any start date,
false to match no start datemandatory - This method must be implemented. void clearStartDateTerms()
mandatory - This method must be implemented. void matchEndDate(DateTime start, DateTime end, boolean match)
start - start of date rangeend - end of date rangematch - true if a positive match, false
for negative matchInvalidArgumentException - start is less
than end NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyEndDate(boolean match)
match - true to match any end date, false
to match no start datemandatory - This method must be implemented. void clearEndDateTerms()
mandatory - This method must be implemented. void matchDate(DateTime from, DateTime to, boolean match)
from - start dateto - end datematch - true if a positive match, false
for a negative matchInvalidArgumentException - from is less
than to NullArgumentException - from or
to is null mandatory - This method must be implemented. void clearDateTerms()
mandatory - This method must be implemented.