public final class ArtifactDescriptorQuery extends ExpressionMatchQuery<IArtifactDescriptor>
IArtifactDescriptor
instances
that satisfy various criteria.Modifier and Type | Field and Description |
---|---|
static ArtifactDescriptorQuery |
ALL_DESCRIPTORS
A singleton query that will match all instances of
IArtifactDescriptor . |
Constructor and Description |
---|
ArtifactDescriptorQuery(IArtifactKey key)
The query will match descriptors whose
id and versionRange
match the supplied key |
ArtifactDescriptorQuery(String id,
VersionRange versionRange,
String format)
The query will match descriptors with the given
id , versionRange
and format |
ArtifactDescriptorQuery(String id,
VersionRange versionRange,
String format,
Map<String,String> properties)
The query will match descriptors with the given
id , versionRange ,
format , and properties . |
getContext, getExpression, getMatchingClass, isMatch, perform, perform, postPerform, prePerform, setIndexProvider
public static final ArtifactDescriptorQuery ALL_DESCRIPTORS
IArtifactDescriptor
.public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format)
id
, versionRange
and format
id
- the descriptor id to match. Can not be null
versionRange
- the descriptor version range to match or null
to match
any version rangeformat
- the descriptor IArtifactDescriptor.FORMAT
value to match, or null
to
match any descriptor formatpublic ArtifactDescriptorQuery(IArtifactKey key)
id
and versionRange
match the supplied keykey
- the artifact key to match. Cannot be null
.public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format, Map<String,String> properties)
id
, versionRange
,
format
, and properties
.id
- the descriptor id to match. Can not be null
versionRange
- the descriptor version range to match or null
to match
any version rangeformat
- the descriptor IArtifactDescriptor.FORMAT
value to match, or null
to
match any descriptor formatproperties
- The properties to query for
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.