Class ArtifactDescriptorQuery
java.lang.Object
org.eclipse.equinox.p2.query.ExpressionMatchQuery<IArtifactDescriptor>
org.eclipse.equinox.p2.repository.artifact.ArtifactDescriptorQuery
- All Implemented Interfaces:
IQueryWithIndex<IArtifactDescriptor>
,IMatchQuery<IArtifactDescriptor>
,IQuery<IArtifactDescriptor>
A general purpose query for matching
IArtifactDescriptor
instances
that satisfy various criteria.- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArtifactDescriptorQuery
A singleton query that will match all instances ofIArtifactDescriptor
. -
Constructor Summary
ConstructorsConstructorDescriptionArtifactDescriptorQuery
(String id, VersionRange versionRange, String format) The query will match descriptors with the givenid
,versionRange
andformat
ArtifactDescriptorQuery
(String id, VersionRange versionRange, String format, Map<String, String> properties) The query will match descriptors with the givenid
,versionRange
,format
, andproperties
.The query will match descriptors whoseid
andversionRange
match the supplied 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_DESCRIPTORS
A singleton query that will match all instances ofIArtifactDescriptor
.
-
-
Constructor Details
-
ArtifactDescriptorQuery
The query will match descriptors with the givenid
,versionRange
andformat
- Parameters:
id
- the descriptor id to match. Can not benull
versionRange
- the descriptor version range to match ornull
to match any version rangeformat
- the descriptorIArtifactDescriptor.FORMAT
value to match, ornull
to match any descriptor format
-
ArtifactDescriptorQuery
The query will match descriptors whoseid
andversionRange
match the supplied key- Parameters:
key
- the artifact key to match. Cannot benull
.
-
ArtifactDescriptorQuery
public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format, Map<String, String> properties) The query will match descriptors with the givenid
,versionRange
,format
, andproperties
.- Parameters:
id
- the descriptor id to match. Can not benull
versionRange
- the descriptor version range to match ornull
to match any version rangeformat
- the descriptorIArtifactDescriptor.FORMAT
value to match, ornull
to match any descriptor formatproperties
- The properties to query for
-