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 matchingIArtifactDescriptorinstances that satisfy various criteria.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static ArtifactDescriptorQueryALL_DESCRIPTORSA 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,versionRangeandformatArtifactDescriptorQuery(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 whoseidandversionRangematch 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,versionRangeandformat- Parameters:
id- the descriptor id to match. Can not benullversionRange- the descriptor version range to match ornullto match any version rangeformat- the descriptorIArtifactDescriptor.FORMATvalue to match, ornullto match any descriptor format
-
ArtifactDescriptorQuery
public ArtifactDescriptorQuery(IArtifactKey key)
The query will match descriptors whoseidandversionRangematch 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 benullversionRange- the descriptor version range to match ornullto match any version rangeformat- the descriptorIArtifactDescriptor.FORMATvalue to match, ornullto match any descriptor formatproperties- The properties to query for
-
-