Interface TextQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching texts. Each method match specifies an
AND term while multiple invocations of the same method produce a
nested OR.
Like all OsidQueries, TextQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the pressIdquery terms.voidClears the press query terms.voidClears the text return query terms.Gets the query for an press.getTextQueryRecord(Type textRecordType) Gets the text query record corresponding to the givenTextrecordType.Multiple record retrievals produce a nestedORterm.voidmatchPressId(Id pressId, boolean match) Sets the pressIdfor this query to match texts assigned to presses.booleanTests if aPressQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
Method Details
-
clearTextReturnTerms
void clearTextReturnTerms()Clears the text return query terms.- Compliance:
mandatory- This method must be implemented.
-
matchPressId
Sets the pressIdfor this query to match texts assigned to presses.- Parameters:
pressId- the pressIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-pressIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPressIdTerms
void clearPressIdTerms()Clears the pressIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsPressQuery
boolean supportsPressQuery()Tests if aPressQueryis available.- Returns:
trueif an press query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPressQuery
PressQuery getPressQuery()Gets the query for an press. Multiple retrievals produce a nestedORterm.- Returns:
- the press query
- Throws:
UnimplementedException-supportsPressQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPressQuery()} is {@code true}.
-
clearPressTerms
void clearPressTerms()Clears the press query terms.- Compliance:
mandatory- This method must be implemented.
-
getTextQueryRecord
Gets the text query record corresponding to the givenTextrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
textRecordType- a text record type- Returns:
- the text query record
- Throws:
NullArgumentException-textRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(textRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-