Package org.eclipse.tycho.p2.target
Class ArtifactTypeHelper
- java.lang.Object
-
- org.eclipse.tycho.p2.target.ArtifactTypeHelper
-
public class ArtifactTypeHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ArtifactTypeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.IRequirementcreateRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange)static org.eclipse.equinox.p2.metadata.IArtifactKeytoP2ArtifactKey(ArtifactKey artifact)static ArtifactKeytoTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
-
-
-
Method Detail
-
createQueryFor
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
Returns a query matching the installable units representing the specified Eclipse artifact(s).- Parameters:
type- Eclipse artifact type as defined in Tycho'sArtifactType- Throws:
IllegalArtifactReferenceException- if the given artifact type is unknown
-
createRequirementFor
public static org.eclipse.equinox.p2.metadata.IRequirement createRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException
-
toTychoArtifact
public static ArtifactKey toTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
-
toP2ArtifactKey
public static org.eclipse.equinox.p2.metadata.IArtifactKey toP2ArtifactKey(ArtifactKey artifact)
-
-