Class ArtifactKeyQuery
java.lang.Object
org.eclipse.equinox.p2.query.ExpressionMatchQuery<IArtifactKey>
org.eclipse.equinox.p2.repository.artifact.ArtifactKeyQuery
- All Implemented Interfaces:
IQueryWithIndex<IArtifactKey>
,IMatchQuery<IArtifactKey>
,IQuery<IArtifactKey>
A general purpose query for matching
IArtifactKey
instances
that satisfy various criteria.- Since:
- 2.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ArtifactKeyQuery
A singleton artifact key query that will always match every artifact key in the givenIQueryable
. -
Constructor Summary
ConstructorDescriptionArtifactKeyQuery
(String classifier, String id, VersionRange range) Pass the id and/or version range to match IArtifactKeys against.Creates an artifact key query that will match any key equal to the provided key -
Method Summary
Methods inherited from class org.eclipse.equinox.p2.query.ExpressionMatchQuery
getContext, getExpression, getMatchingClass, isMatch, perform, perform, postPerform, prePerform, setIndexProvider
-
Field Details
-
ALL_KEYS
A singleton artifact key query that will always match every artifact key in the givenIQueryable
.
-
-
Constructor Details
-
ArtifactKeyQuery
Pass the id and/or version range to match IArtifactKeys against. Passing null results in matching any id/version- Parameters:
classifier
- The artifact key classifier, ornull
id
- The artifact key id, ornull
range
- A version range, ornull
-
ArtifactKeyQuery
Creates an artifact key query that will match any key equal to the provided key- Parameters:
key
- the input key to test for equality in the query
-