Class ArtifactTypeHelper


  • public class ArtifactTypeHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static org.eclipse.equinox.p2.metadata.IRequirement createBundleRequirement​(java.lang.String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange)  
      private static org.eclipse.equinox.p2.metadata.IRequirement createFeatureRequirement​(java.lang.String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange)  
      private static org.eclipse.equinox.p2.metadata.IRequirement createIURequirement​(java.lang.String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange)  
      private static org.eclipse.equinox.p2.metadata.IArtifactKey createP2ArtifactKey​(java.lang.String type, ArtifactKey artifact)  
      private static org.eclipse.equinox.p2.metadata.IRequirement createProductRequirement​(java.lang.String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange)  
      static org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> createQueryFor​(java.lang.String type, java.lang.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​(java.lang.String type, java.lang.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArtifactTypeHelper

        public ArtifactTypeHelper()
    • Method Detail

      • createQueryFor

        public static org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> createQueryFor​(java.lang.String type,
                                                                                                                           java.lang.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's ArtifactType
        Throws:
        IllegalArtifactReferenceException - if the given artifact type is unknown
      • createBundleRequirement

        private static org.eclipse.equinox.p2.metadata.IRequirement createBundleRequirement​(java.lang.String id,
                                                                                            org.eclipse.equinox.p2.metadata.VersionRange versionRange)
      • createFeatureRequirement

        private static org.eclipse.equinox.p2.metadata.IRequirement createFeatureRequirement​(java.lang.String id,
                                                                                             org.eclipse.equinox.p2.metadata.VersionRange versionRange)
      • createProductRequirement

        private static org.eclipse.equinox.p2.metadata.IRequirement createProductRequirement​(java.lang.String id,
                                                                                             org.eclipse.equinox.p2.metadata.VersionRange versionRange)
      • createIURequirement

        private static org.eclipse.equinox.p2.metadata.IRequirement createIURequirement​(java.lang.String id,
                                                                                        org.eclipse.equinox.p2.metadata.VersionRange versionRange)
      • toTychoArtifact

        public static ArtifactKey toTychoArtifact​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • toP2ArtifactKey

        public static org.eclipse.equinox.p2.metadata.IArtifactKey toP2ArtifactKey​(ArtifactKey artifact)
      • createP2ArtifactKey

        private static org.eclipse.equinox.p2.metadata.IArtifactKey createP2ArtifactKey​(java.lang.String type,
                                                                                        ArtifactKey artifact)