Interface ValueQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidSubjugateableQuery, Suppliable
The interface to query a value.
Like all OsidQueries, ValueQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the boolean value terms.voidClears the bytes value terms.voidClears the calendar type terms.voidClears the cardinal value terms.voidClears the configurationIdterms.voidClears the configurationIdterms.voidClears the coordinate type terms.voidClears the coordinate value terms.voidClears the currency type terms.voidClears the currency value terms.voidClears the date time value terms.voidClears the decimal value terms.voidClears the distance value terms.voidClears the duration value terms.voidClears the format type terms.voidClears the heading type terms.voidClears the heading value terms.voidClears the Id value terms.voidClears the integer value terms.voidClears the language type terms.voidClears the object type value terms.voidClears the object value terms.voidClears the object value type value terms.voidClears the parameterIdterms.voidClears the parameter terms.voidClears the priority terms.voidClears the script type terms.voidClears the spatial unit value terms.voidClears the speed value terms.voidClears the string value terms.voidClears the time type terms.voidClears the time value terms.voidClears the type value terms.voidClears the version scheme terms.voidClears the version value terms.Gets the query for a configuration.Gets the query for a parameter.getValueQueryRecord(Type valueRecordType) Gets the value query record corresponding to the givenValuerecordType.Multiple record retrievals produce a nestedORterm.voidmatchAnyPriority(boolean match) Matches values with any priority.voidmatchBooleanValue(boolean value, boolean match) Adds a boolean match.voidmatchBytesValue(byte[] value, boolean match, boolean partial) Adds a byte string match.voidmatchCalendarType(Type calendarType, boolean match) Matches values for a calendar type.voidmatchCardinalValue(long low, long high, boolean match) Adds a cardinal match within the given range inclusive.voidmatchConfigurationId(Id configurationId, boolean match) Sets the configurationIdfor this query.voidmatchCoordinateType(Type coordinateType, boolean match) Matches values for a coordinate type.voidmatchCoordinateValue(Coordinate coordinate, boolean match) Adds a coordinate match for coordinates inside the specified coordinate.voidmatchCurrencyType(Type currencyType, boolean match) Matches values for a currency type.voidmatchCurrencyValue(Currency low, Currency high, boolean match) Adds a currency match within the given range inclusive.voidmatchDateTimeValue(DateTime low, DateTime high, boolean match) Adds aDateTimerange match within the given range inclusive.voidmatchDecimalValue(BigDecimal low, BigDecimal high, boolean match) Adds a decimal match within the given range inclusive.voidmatchDistanceValue(Distance low, Distance high, boolean match) Adds aDistancerange match within the given range inclusive.voidmatchDurationValue(Duration low, Duration high, boolean match) Adds aDurationrange match within the given range inclusive.voidmatchFormatType(Type formatType, boolean match) Matches values for a format type.voidmatchHeadingType(Type headingType, boolean match) Matches values for a heading type.voidmatchHeadingValue(Heading low, Heading high, boolean match) Adds aHeadingrange match within the given range inclusive.voidmatchIdValue(Id value, boolean match) Adds anIdto match.voidmatchIntegerValue(long low, long high, boolean match) Adds an integer match within the given range inclusive.voidmatchLanguageType(Type languageType, boolean match) Matches values for a language type.voidmatchObjectType(Type objectType, boolean match) Adds aTypeto match on the type of object.voidmatchObjectValue(Object object, Type objectType, boolean match) Adds an object match.voidmatchObjectValueType(Type objectType, boolean match) Adds aTypeto match on the type of object.voidmatchParameterId(Id parameterId, boolean match) Adds a parameterIdfor this query.voidmatchPriority(long low, long high, boolean match) Adds a priority match.voidmatchScriptType(Type scriptType, boolean match) Matches values for a script type.voidmatchSpatialUnitValue(SpatialUnit value, boolean match) Adds a spatial unit match within the given spatial unit inclusive.voidmatchSpeedValue(Speed low, Speed high, boolean match) Adds a speed match within the given range inclusive.voidmatchStringValue(String value, Type stringMatchType, boolean match) Adds a string match.voidmatchTimeType(Type timeType, boolean match) Matches values for a time type.voidmatchTimeValue(Time low, Time high, boolean match) Adds a time match within the given range inclusive.voidmatchTypeValue(Type value, boolean match) Adds aTypematch.voidmatchVersionScheme(Type scheme, boolean match) Metahces values of a version scheme type.voidmatchVersionValue(Version low, Version high, boolean match) Adds aVersionmatch within the given range inclusive.booleanTests if aConfigurationQueryis available.booleanTests if aParameterQueryis 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 OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
Method Details
-
matchPriority
void matchPriority(long low, long high, boolean match) Adds a priority match. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start priority valuehigh- end priority valuematch-trueif a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
matchAnyPriority
void matchAnyPriority(boolean match) Matches values with any priority.- Parameters:
match-trueif to match values with any priority,falseto match values with no priority- Compliance:
mandatory- This method must be implemented.
-
clearPriorityTerms
void clearPriorityTerms()Clears the priority terms.- Compliance:
mandatory- This method must be implemented.
-
matchBooleanValue
void matchBooleanValue(boolean value, boolean match) Adds a boolean match.- Parameters:
value- a boolean valuematch-trueif a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearBooleanValueTerms
void clearBooleanValueTerms()Clears the boolean value terms.- Compliance:
mandatory- This method must be implemented.
-
matchBytesValue
void matchBytesValue(byte[] value, boolean match, boolean partial) Adds a byte string match. Multiple byte arrays can be added to perform a booleanORamong them.- Parameters:
value- a byte valuematch-trueif a positive match,falsefor a negative matchpartial-trueif for a partial match,falsefor complete match- Compliance:
mandatory- This method must be implemented.
-
clearBytesValueTerms
void clearBytesValueTerms()Clears the bytes value terms.- Compliance:
mandatory- This method must be implemented.
-
matchCardinalValue
void matchCardinalValue(long low, long high, boolean match) Adds a cardinal match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start cardinal valuehigh- end cardinal valuematch-trueif a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearCardinalValueTerms
void clearCardinalValueTerms()Clears the cardinal value terms.- Compliance:
mandatory- This method must be implemented.
-
matchCoordinateType
Matches values for a coordinate type.- Parameters:
coordinateType- a coordinate typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-coordinateTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearCoordinateTypeTerms
void clearCoordinateTypeTerms()Clears the coordinate type terms.- Compliance:
mandatory- This method must be implemented.
-
matchCoordinateValue
Adds a coordinate match for coordinates inside the specified coordinate. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
coordinate- a coordinate valuematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-coordinateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCoordinateValueTerms
void clearCoordinateValueTerms()Clears the coordinate value terms.- Compliance:
mandatory- This method must be implemented.
-
matchCurrencyType
Matches values for a currency type.- Parameters:
currencyType- a currency typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-currencyTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearCurrencyTypeTerms
void clearCurrencyTypeTerms()Clears the currency type terms.- Compliance:
mandatory- This method must be implemented.
-
matchCurrencyValue
Adds a currency match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start currency valuehigh- a currency valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearCurrencyValueTerms
void clearCurrencyValueTerms()Clears the currency value terms.- Compliance:
mandatory- This method must be implemented.
-
matchCalendarType
Matches values for a calendar type.- Parameters:
calendarType- a calendar typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-calendarTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearCalendarTypeTerms
void clearCalendarTypeTerms()Clears the calendar type terms.- Compliance:
mandatory- This method must be implemented.
-
matchTimeType
Matches values for a time type.- Parameters:
timeType- a time typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-timeTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeTypeTerms
void clearTimeTypeTerms()Clears the time type terms.- Compliance:
mandatory- This method must be implemented.
-
matchDateTimeValue
Adds aDateTimerange match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start datetime valuehigh- end datetime valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearDateTimeValueTerms
void clearDateTimeValueTerms()Clears the date time value terms.- Compliance:
mandatory- This method must be implemented.
-
matchDecimalValue
Adds a decimal match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start decimal valuehigh- end decimal valuematch-trueif a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearDecimalValueTerms
void clearDecimalValueTerms()Clears the decimal value terms.- Compliance:
mandatory- This method must be implemented.
-
matchLanguageType
Matches values for a language type.- Parameters:
languageType- a language typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-languageTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearLanguageTypeTerms
void clearLanguageTypeTerms()Clears the language type terms.- Compliance:
mandatory- This method must be implemented.
-
matchScriptType
Matches values for a script type.- Parameters:
scriptType- a script typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-scriptTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearScriptTypeTerms
void clearScriptTypeTerms()Clears the script type terms.- Compliance:
mandatory- This method must be implemented.
-
matchFormatType
Matches values for a format type.- Parameters:
formatType- a format typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-formatTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearFormatTypeTerms
void clearFormatTypeTerms()Clears the format type terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistanceValue
Adds aDistancerange match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start distance valuehigh- end distance valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearDistanceValueTerms
void clearDistanceValueTerms()Clears the distance value terms.- Compliance:
mandatory- This method must be implemented.
-
matchDurationValue
Adds aDurationrange match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start duration valuehigh- end duration valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearDurationValueTerms
void clearDurationValueTerms()Clears the duration value terms.- Compliance:
mandatory- This method must be implemented.
-
matchHeadingType
Matches values for a heading type.- Parameters:
headingType- a heading typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-headingTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearHeadingTypeTerms
void clearHeadingTypeTerms()Clears the heading type terms.- Compliance:
mandatory- This method must be implemented.
-
matchHeadingValue
Adds aHeadingrange match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start heading valuehigh- end heading valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearHeadingValueTerms
void clearHeadingValueTerms()Clears the heading value terms.- Compliance:
mandatory- This method must be implemented.
-
matchIdValue
Adds anIdto match. MultipleIdscan be added to perform a booleanORamong them.- Parameters:
value- anIdvaluematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-valueisnull- Compliance:
mandatory- This method must be implemented.
-
clearIdValueTerms
void clearIdValueTerms()Clears the Id value terms.- Compliance:
mandatory- This method must be implemented.
-
matchIntegerValue
void matchIntegerValue(long low, long high, boolean match) Adds an integer match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start integer valuehigh- end integer valuematch-trueif a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearIntegerValueTerms
void clearIntegerValueTerms()Clears the integer value terms.- Compliance:
mandatory- This method must be implemented.
-
matchSpatialUnitValue
Adds a spatial unit match within the given spatial unit inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
value- a spatial unitmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-valueisnull- Compliance:
mandatory- This method must be implemented.
-
clearSpatialUnitValueTerms
void clearSpatialUnitValueTerms()Clears the spatial unit value terms.- Compliance:
mandatory- This method must be implemented.
-
matchSpeedValue
Adds a speed match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start speed valuehigh- end speed valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearSpeedValueTerms
void clearSpeedValueTerms()Clears the speed value terms.- Compliance:
mandatory- This method must be implemented.
-
matchStringValue
Adds a string match. Multiple strings can be added to perform a booleanORamong them.- Parameters:
value- string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-value isnot ofstringMatchTypeNullArgumentException-valueorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
clearStringValueTerms
void clearStringValueTerms()Clears the string value terms.- Compliance:
mandatory- This method must be implemented.
-
matchTimeValue
Adds a time match within the given range inclusive. Multiple ranges can be added to perform a booleanORamong them.- Parameters:
low- start time valuehigh- end time valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeValueTerms
void clearTimeValueTerms()Clears the time value terms.- Compliance:
mandatory- This method must be implemented.
-
matchTypeValue
Adds aTypematch. Multiple types can be added to perform a booleanORamong them.- Parameters:
value- type to matchmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-valueisnull- Compliance:
mandatory- This method must be implemented.
-
clearTypeValueTerms
void clearTypeValueTerms()Clears the type value terms.- Compliance:
mandatory- This method must be implemented.
-
matchVersionScheme
Metahces values of a version scheme type.- Parameters:
scheme- scheme to matchmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-schemeisnull- Compliance:
mandatory- This method must be implemented.
-
clearVersionSchemeTerms
void clearVersionSchemeTerms()Clears the version scheme terms.- Compliance:
mandatory- This method must be implemented.
-
matchVersionValue
Adds aVersionmatch within the given range inclusive. Multiple queries can be added to perform a booleanORamong them.- Parameters:
low- start version valuehigh- end version valuematch-trueif a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearVersionValueTerms
void clearVersionValueTerms()Clears the version value terms.- Compliance:
mandatory- This method must be implemented.
-
matchObjectType
Adds aTypeto match on the type of object. Multiple types can be added to perform a booleanORamong them.- Parameters:
objectType- type to matchmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearObjectTypeTerms
void clearObjectTypeTerms()Clears the object type value terms.- Compliance:
mandatory- This method must be implemented.
-
matchObjectValue
Adds an object match. Multiple objects can be added to perform a booleanORamong them.- Parameters:
object- object to matchobjectType- type of objectmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectorobjectTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearObjectValueTerms
void clearObjectValueTerms()Clears the object value terms.- Compliance:
mandatory- This method must be implemented.
-
matchObjectValueType
Adds aTypeto match on the type of object. Multiple types can be added to perform a booleanORamong them.- Parameters:
objectType- type to matchmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearObjectValueTypeTerms
void clearObjectValueTypeTerms()Clears the object value type value terms.- Compliance:
mandatory- This method must be implemented.
-
matchParameterId
Adds a parameterIdfor this query.- Parameters:
parameterId- a parameterIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-parameterIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearParameterIdTerms
void clearParameterIdTerms()Clears the parameterIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsParameterQuery
boolean supportsParameterQuery()Tests if aParameterQueryis available.- Returns:
trueif a parameter query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getParameterQuery
ParameterQuery getParameterQuery()Gets the query for a parameter.- Returns:
- the parameter query
- Throws:
UnimplementedException-supportsParameterQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsParameterQuery()} is {@code true}.
-
clearParameterTerms
void clearParameterTerms()Clears the parameter 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 configurationIdterms.- Compliance:
mandatory- This method must be implemented.
-
getValueQueryRecord
Gets the value query record corresponding to the givenValuerecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
valueRecordType- a value record type- Returns:
- the value query record
- Throws:
NullArgumentException-valueRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(valueRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-