Interface ParameterQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, Suppliable
The ParameterQuery is used to assemble search queries. A
Parameter is available from a ParameterSearchSession and defines
methods to query for a Parameter that includes setting a display
name and a description. Once the desired parameters are set, the
ParameterQuery is given to the designated search method. The same
ParameterQuery returned from the session must be used in the search as
the provider may utilize implementation-specific data wiithin the object.
If multiple data elements are set, the results matching all the given
data (eg: AND ) are returned. Search methods throughout the OSIDs
accept multiple OsidQuery interfaces. Each ParameterQuery
in the array behaves like an OR such that results are returned
that match any of the given ParameterQuery objects.
Any match method inside a ParameterQuery may be invoked
multiple times. In the case of a match method, each invocation adds an
element to an OR expression. Any of these terms may also be
negated through the match flag.
Parameter { ParameterQuery.matchDisplayName AND (ParameterQuery.matchDescription OR Parameter.matchDescription)} OR ParameterQuery
String searches are described using a string search Type that indicates the type of regular expression or wildcarding encoding. Compatibility with a strings search Type can be tested within this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the configurationIdterms.voidClears the configuration terms.voidClears the coordinate type terms.voidClears the coorheadingdinate record type terms.voidClears the object value type terms.voidClears the spatial unit record type terms.voidClears the shuffle terms.voidClears the value syntax terms.voidClears the value terms.voidClears the value type terms.Gets the query for a configuration.getParameterQueryRecord(Type parameterRecordType) Gets the parameter query record corresponding to the givenParameterrecordType.Gets the query for a value.voidmatchAnyValue(boolean match) Matches parameters that have any value.voidmatchAnyValuesShuffled(boolean match) Matches parameters that have any shuffle value.voidmatchConfigurationId(Id configurationId, boolean match) Sets the configurationIdfor this query.voidmatchValueCoordinateType(Type coordinateType, boolean match) Adds a match for parameters with a given coordinate type for a coordinate value.voidmatchValueHeadingType(Type headingType, boolean match) Adds a match for parameters with a given heading type for a coordinate value.voidmatchValueObjectType(Type objectType, boolean match) Adds a match for parameters with a given object type for an object value.voidmatchValueSpatialUnitRecordType(Type spatialUnitRecordType, boolean match) Adds a match for parameters with a given spatial unit record type for a coordinate value.voidmatchValuesShuffled(boolean shuffle) Matches shuffle order.voidmatchValueSyntax(Syntax syntax, boolean match) Adds a match for parameters of a given value syntax.voidmatchValueVersionScheme(Type versionType, boolean match) Adds a match for parameters with a given version type for a version value.booleanTests if aConfigurationQueryis available.booleanTests if aValueQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods 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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalModifier and TypeMethodDescriptionvoidClears the active query terms.voidClears the administratively disabled query terms.voidClears the administratively enabled query terms.voidClears the operational query terms.voidmatchActive(boolean match) Matches active.voidmatchDisabled(boolean match) Matches administratively disabled.voidmatchEnabled(boolean match) Matches administratively enabled.voidmatchOperational(boolean match) Matches operational operables.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidRuleQuery
clearConditionRecordTypeTerms, clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyConditionRecordType, matchAnyRule, matchConditionRecordType, matchRuleId, supportsRuleQueryModifier and TypeMethodDescriptionvoidClears the condition recordTypequery terms.voidClears all ruleIdterms.voidClears all rule terms.getRuleQuery(boolean match) Gets the query for the rule.voidmatchAnyConditionRecordType(boolean match) Matches rules with any condition record type.voidmatchAnyRule(boolean match) Match any associated rule.voidmatchConditionRecordType(Type conditionRecordType, boolean match) Matches a condition record type.voidmatchRuleId(Id ruleId, boolean match) Match theIdof the rule.booleanTests if aRuleQueryfor the rule is available.
-
Method Details
-
matchValueSyntax
Adds a match for parameters of a given value syntax. Multiple matches can be added to perform a booleanORamong them.- Parameters:
syntax- the parameter value syntaxmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-syntaxisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueSyntaxTerms
void clearValueSyntaxTerms()Clears the value syntax terms.- Compliance:
mandatory- This method must be implemented.
-
matchValueCoordinateType
Adds a match for parameters with a given coordinate type for a coordinate value. Multiple matches can be added to perform a booleanORamong them.- Parameters:
coordinateType- the coordinate typematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-coordinateTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueCoordinateTypeTerms
void clearValueCoordinateTypeTerms()Clears the coordinate type terms.- Compliance:
mandatory- This method must be implemented.
-
matchValueHeadingType
Adds a match for parameters with a given heading type for a coordinate value. Multiple matches can be added to perform a booleanORamong them.- Parameters:
headingType- the heading typematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-headingTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueHeadingTypeTerms
void clearValueHeadingTypeTerms()Clears the coorheadingdinate record type terms.- Compliance:
mandatory- This method must be implemented.
-
matchValueObjectType
Adds a match for parameters with a given object type for an object value. Multiple matches can be added to perform a booleanORamong them.- Parameters:
objectType- the object typematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueObjectTypeTerms
void clearValueObjectTypeTerms()Clears the object value type terms.- Compliance:
mandatory- This method must be implemented.
-
matchValueSpatialUnitRecordType
Adds a match for parameters with a given spatial unit record type for a coordinate value. Multiple matches can be added to perform a booleanORamong them.- Parameters:
spatialUnitRecordType- the spatial unit record typematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-spatialUnitRecordTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueSpatialUnitRecordTypeTerms
void clearValueSpatialUnitRecordTypeTerms()Clears the spatial unit record type terms.- Compliance:
mandatory- This method must be implemented.
-
matchValueVersionScheme
Adds a match for parameters with a given version type for a version value. Multiple matches can be added to perform a booleanORamong them.- Parameters:
versionType- the version typematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-versionTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueVersionSchemeTerms
void clearValueVersionSchemeTerms()Clears the value type terms.- Compliance:
mandatory- This method must be implemented.
-
supportsValueQuery
boolean supportsValueQuery()Tests if aValueQueryis available.- Returns:
trueif a value query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getValueQuery
ValueQuery getValueQuery()Gets the query for a value.- Returns:
- the value query
- Throws:
UnimplementedException-supportsValueQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsValueQuery()} is {@code true} .
-
matchAnyValue
void matchAnyValue(boolean match) Matches parameters that have any value.- Parameters:
match-trueto match parameters with any value,falseto match parameters with no value- Compliance:
mandatory- This method must be implemented.
-
clearValueTerms
void clearValueTerms()Clears the value terms.- Compliance:
mandatory- This method must be implemented.
-
matchValuesShuffled
void matchValuesShuffled(boolean shuffle) Matches shuffle order.- Parameters:
shuffle-trueto match shuffle by weight, false to match order by index- Compliance:
mandatory- This method must be implemented.
-
matchAnyValuesShuffled
void matchAnyValuesShuffled(boolean match) Matches parameters that have any shuffle value.- Parameters:
match-trueto match parameters with any shuffle value,falseto match parameters with no shuffle value- Compliance:
mandatory- This method must be implemented.
-
clearValuesShuffledTerms
void clearValuesShuffledTerms()Clears the shuffle terms.- Compliance:
mandatory- This method must be implemented.
-
matchConfigurationId
Sets the configurationIdfor this query.- Parameters:
configurationId- a configurationIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-configurationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearConfigurationIdTerms
void clearConfigurationIdTerms()Clears the configurationIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsConfigurationQuery
boolean supportsConfigurationQuery()Tests if aConfigurationQueryis available.- Returns:
trueif a configuration query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getConfigurationQuery
ConfigurationQuery getConfigurationQuery()Gets the query for a configuration.- Returns:
- the configuration query
- Throws:
UnimplementedException-supportsConfigurationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsConfigurationQuery()} is {@code true} .
-
clearConfigurationTerms
void clearConfigurationTerms()Clears the configuration terms.- Compliance:
mandatory- This method must be implemented.
-
getParameterQueryRecord
ParameterQueryRecord getParameterQueryRecord(Type parameterRecordType) throws OperationFailedException Gets the parameter query record corresponding to the givenParameterrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
parameterRecordType- a parameter record type- Returns:
- the parameter query record
- Throws:
NullArgumentException-parameterRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(parameterRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-