public class ArtifactTypeHelper extends Object
Constructor and Description |
---|
ArtifactTypeHelper() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
createQueryFor(String type,
String id,
org.eclipse.equinox.p2.metadata.VersionRange versionRange)
Returns a query matching the installable units representing the specified Eclipse
artifact(s).
|
static org.eclipse.equinox.p2.metadata.IRequirement |
createRequirementFor(String type,
String id,
org.eclipse.equinox.p2.metadata.VersionRange versionRange) |
static org.eclipse.equinox.p2.metadata.IArtifactKey |
toP2ArtifactKey(ArtifactKey artifact) |
static ArtifactKey |
toTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) |
public static org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> createQueryFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException
type
- Eclipse artifact type as defined in Tycho's ArtifactType
IllegalArtifactReferenceException
- if the given artifact type is unknownpublic static org.eclipse.equinox.p2.metadata.IRequirement createRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException
public static ArtifactKey toTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
public static org.eclipse.equinox.p2.metadata.IArtifactKey toP2ArtifactKey(ArtifactKey artifact)
Copyright © 2008–2016 Eclipse Foundation. All rights reserved.