Class DefaultResolutionResult

    • Field Detail

      • artifactPath

        private final java.nio.file.Path artifactPath
      • provider

        private java.lang.String provider
      • compatVersion

        private java.lang.String compatVersion
      • namespace

        private java.lang.String namespace
    • Constructor Detail

      • DefaultResolutionResult

        public DefaultResolutionResult()
      • DefaultResolutionResult

        public DefaultResolutionResult​(java.nio.file.Path artifactPath)
      • DefaultResolutionResult

        public DefaultResolutionResult​(java.nio.file.Path artifactPath,
                                       java.lang.String namespace)
    • Method Detail

      • getArtifactPath

        public java.nio.file.Path getArtifactPath()
        Description copied from interface: ResolutionResult
        Get resolved artifact file.
        Specified by:
        getArtifactPath in interface ResolutionResult
        Returns:
        resolved artifact file or null if requested artifact could not be resolved
      • getProvider

        public java.lang.String getProvider()
        Description copied from interface: ResolutionResult
        Get name of system package providing requested artifact.
        Specified by:
        getProvider in interface ResolutionResult
        Returns:
        name of system package providing requested artifact or null if information about artifact provider is not available
      • setProvider

        public void setProvider​(java.lang.String provider)
      • getCompatVersion

        public java.lang.String getCompatVersion()
        Description copied from interface: ResolutionResult
        Get compatibility version of resolved artifact.

        Compatibility version is defined only when resolved artifact version is not default version of the artifact in the system.

        Specified by:
        getCompatVersion in interface ResolutionResult
        Returns:
        compatibility version of resolved artifact or null if default artifact version was resolved
      • setCompatVersion

        public void setCompatVersion​(java.lang.String compatVersion)
      • getNamespace

        public java.lang.String getNamespace()
        Description copied from interface: ResolutionResult
        Get namespace of resolved artifact, if any.
        Specified by:
        getNamespace in interface ResolutionResult
        Returns:
        namespace of repository from which the artifact was resolved or null if artifact was not resolved from any repository or the repository does not have associated namespace.
      • setNamespace

        public void setNamespace​(java.lang.String namespace)