Class GAVArtifactDescriptorBase

  • All Implemented Interfaces:
    org.eclipse.equinox.p2.metadata.expression.IMemberProvider, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor
    Direct Known Subclasses:
    GAVArtifactDescriptor, ModuleArtifactRepository.ModuleArtifactDescriptor

    public class GAVArtifactDescriptorBase
    extends org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected MavenRepositoryCoordinates coordinates  
      • Fields inherited from class org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor

        key, MEMBER_ARTIFACT_KEY, MEMBER_PROCESSING_STEPS, MEMBER_PROPERTIES, MEMBER_REPOSITORY, processingSteps, properties
      • Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor

        ARTIFACT_CHECKSUM, ARTIFACT_MD5, ARTIFACT_SIZE, DOWNLOAD_CHECKSUM, DOWNLOAD_CONTENTTYPE, DOWNLOAD_MD5, DOWNLOAD_SIZE, FORMAT, FORMAT_PACKED, TYPE_ZIP
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MavenRepositoryCoordinates getMavenCoordinates()
      Returns the Maven coordinates of the artifact this descriptor points to.
      private static void putOrRemoveOnNull​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String key, java.lang.String value)  
      static MavenRepositoryCoordinates readMavenCoordinateProperties​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)  
      protected void setMavenCoordinateProperties()  
      • Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor

        addProperties, equals, getArtifactKey, getMember, getProcessingSteps, getProperties, getProperty, getRepository, hashCode, setProcessingSteps, setProperty, setRepository, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GAVArtifactDescriptorBase

        protected GAVArtifactDescriptorBase​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor base,
                                            MavenRepositoryCoordinates mavenCoordinates,
                                            boolean storeMavenCoordinates)
      • GAVArtifactDescriptorBase

        protected GAVArtifactDescriptorBase​(org.eclipse.equinox.p2.metadata.IArtifactKey p2Key,
                                            MavenRepositoryCoordinates mavenCoordinates,
                                            boolean storeMavenCoordinates)
    • Method Detail

      • setMavenCoordinateProperties

        protected final void setMavenCoordinateProperties()
      • putOrRemoveOnNull

        private static void putOrRemoveOnNull​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                              java.lang.String key,
                                              java.lang.String value)
      • readMavenCoordinateProperties

        public static MavenRepositoryCoordinates readMavenCoordinateProperties​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
        Returns:
        the Maven coordinates stored in the properties of the given descriptor, or null
      • getMavenCoordinates

        public final MavenRepositoryCoordinates getMavenCoordinates()
        Returns the Maven coordinates of the artifact this descriptor points to.
        Returns:
        The Maven coordinates; never null