Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.repository.artifact
Class ArtifactKeyQuery

java.lang.Object
  extended by org.eclipse.equinox.p2.metadata.query.ExpressionQuery<IArtifactKey>
      extended by org.eclipse.equinox.p2.repository.artifact.ArtifactKeyQuery
All Implemented Interfaces:
org.eclipse.equinox.p2.metadata.index.IQueryWithIndex<IArtifactKey>, IMatchQuery<IArtifactKey>, IQuery<IArtifactKey>

public class ArtifactKeyQuery
extends ExpressionQuery<IArtifactKey>

A general purpose query for matching IArtifactKey instances that satisfy various criteria.

Since:
2.0

Field Summary
static ArtifactKeyQuery ALL_KEYS
           
 
Constructor Summary
ArtifactKeyQuery(IArtifactKey key)
           
ArtifactKeyQuery(String classifier, String id, VersionRange range)
          Pass the id and/or version range to match IArtifactKeys against.
 
Method Summary
 
Methods inherited from class org.eclipse.equinox.p2.metadata.query.ExpressionQuery
getContext, getExpression, getMatchingClass, isMatch, matchAll, matchNothing, perform, perform, postPerform, prePerform, setIndexProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_KEYS

public static final ArtifactKeyQuery ALL_KEYS
Constructor Detail

ArtifactKeyQuery

public ArtifactKeyQuery(String classifier,
                        String id,
                        VersionRange range)
Pass the id and/or version range to match IArtifactKeys against. Passing null results in matching any id/version

Parameters:
classifier - The artifact key classifier, or null
id - The artifact key id, or null
range - A version range, or null

ArtifactKeyQuery

public ArtifactKeyQuery(IArtifactKey key)

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.