Class DefaultP2ResolutionResultEntry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String classifier  
      private java.lang.String id  
      private java.util.Set<java.lang.Object> installableUnits  
      private java.util.function.Supplier<java.io.File> location  
      private java.io.File resolvedFile  
      private java.lang.String type  
      private java.lang.String version  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultP2ResolutionResultEntry​(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.io.File resolvedLocation)  
      DefaultP2ResolutionResultEntry​(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.util.function.Supplier<java.io.File> delayedLocation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addInstallableUnit​(java.lang.Object installableUnit)  
      java.lang.String getClassifier()  
      java.lang.String getId()
      Eclipse/OSGi artifact id (bundle symbolic name, feature id, etc).
      java.util.Set<java.lang.Object> getInstallableUnits()  
      java.io.File getLocation​(boolean fetch)  
      java.lang.String getType()
      Artifact type.
      java.lang.String getVersion()
      Eclipse/OSGi artifact version.
      void setId​(java.lang.String id)  
      void setType​(java.lang.String type)  
      void setVersion​(java.lang.String version)  
      • Methods inherited from class java.lang.Object

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

      • type

        private java.lang.String type
      • id

        private java.lang.String id
      • version

        private java.lang.String version
      • installableUnits

        private java.util.Set<java.lang.Object> installableUnits
      • classifier

        private java.lang.String classifier
      • location

        private final java.util.function.Supplier<java.io.File> location
      • resolvedFile

        private java.io.File resolvedFile
    • Constructor Detail

      • DefaultP2ResolutionResultEntry

        public DefaultP2ResolutionResultEntry​(java.lang.String type,
                                              java.lang.String id,
                                              java.lang.String version,
                                              java.lang.String classifier,
                                              java.util.function.Supplier<java.io.File> delayedLocation)
      • DefaultP2ResolutionResultEntry

        public DefaultP2ResolutionResultEntry​(java.lang.String type,
                                              java.lang.String id,
                                              java.lang.String version,
                                              java.lang.String classifier,
                                              java.io.File resolvedLocation)
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: ArtifactKey
        Eclipse/OSGi artifact id (bundle symbolic name, feature id, etc). Can differ from Maven artifactId.
        Specified by:
        getId in interface ArtifactKey
      • getVersion

        public java.lang.String getVersion()
        Description copied from interface: ArtifactKey
        Eclipse/OSGi artifact version. Can differ from Maven version. For maven projects, this version corresponds to version specified in the project sources and does not reflect qualifier expansion.
        Specified by:
        getVersion in interface ArtifactKey
      • getLocation

        public java.io.File getLocation​(boolean fetch)
        Specified by:
        getLocation in interface P2ResolutionResult.Entry
        Parameters:
        fetch - whether to force fetching the artifact from the repository if file isn't already available locally.
        Returns:
        the artifact file location on local filesystem. If file is not already available locally and fetch=false, this returns null.
      • addInstallableUnit

        void addInstallableUnit​(java.lang.Object installableUnit)
      • setType

        public void setType​(java.lang.String type)
      • setId

        public void setId​(java.lang.String id)
      • setVersion

        public void setVersion​(java.lang.String version)