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>
public final class ArtifactDescriptorQuery extends ExpressionMatchQuery<IArtifactDescriptor>
A general purpose query for matchingIArtifactDescriptor
instances that satisfy various criteria.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static ArtifactDescriptorQuery
ALL_DESCRIPTORS
A singleton query that will match all instances ofIArtifactDescriptor
.
-
Constructor Summary
Constructors Constructor Description ArtifactDescriptorQuery(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
.ArtifactDescriptorQuery(IArtifactKey key)
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 Detail
-
ALL_DESCRIPTORS
public static final ArtifactDescriptorQuery ALL_DESCRIPTORS
A singleton query that will match all instances ofIArtifactDescriptor
.
-
-
Constructor Detail
-
ArtifactDescriptorQuery
public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format)
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
public ArtifactDescriptorQuery(IArtifactKey key)
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
-
-