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 ArtifactDescriptorQueryA 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,versionRangeandformatArtifactDescriptorQuery(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 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 Details
-
ALL_DESCRIPTORS
A singleton query that will match all instances ofIArtifactDescriptor.
-
-
Constructor Details
-
ArtifactDescriptorQuery
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
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
-