Class ConflictResolver.ConflictContext

    • Constructor Summary

      Constructors 
      Constructor Description
      ConflictContext()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.util.Collection<ConflictResolver.ConflictItem> getItems()
      Gets the collection of conflict items in this context.
      abstract java.lang.Boolean getOptional()
      Gets the effective optional flag of the winning dependency.
      abstract org.eclipse.aether.graph.DependencyNode getRoot()
      Gets the root node of the dependency graph being transformed.
      abstract java.lang.String getScope()
      Gets the effective scope of the winning dependency.
      abstract ConflictResolver.ConflictItem getWinner()
      Gets the conflict item which has been selected as the winner among the conflicting dependencies.
      abstract boolean isIncluded​(org.eclipse.aether.graph.DependencyNode node)
      Determines whether the specified dependency node belongs to this conflict context.
      abstract void setOptional​(java.lang.Boolean optional)
      Sets the effective optional flag of the winning dependency.
      abstract void setScope​(java.lang.String scope)
      Sets the effective scope of the winning dependency.
      abstract void setWinner​(ConflictResolver.ConflictItem winner)
      Sets the conflict item which has been selected as the winner among the conflicting dependencies.
      • Methods inherited from class java.lang.Object

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

      • getRoot

        public abstract org.eclipse.aether.graph.DependencyNode getRoot()
        Gets the root node of the dependency graph being transformed.
        Returns:
        the root node of the dependency graph, never null
      • isIncluded

        public abstract boolean isIncluded​(org.eclipse.aether.graph.DependencyNode node)
        Determines whether the specified dependency node belongs to this conflict context.
        Parameters:
        node - the dependency node to check, must not be null
        Returns:
        true if the given node belongs to this conflict context, false otherwise
      • getItems

        public abstract java.util.Collection<ConflictResolver.ConflictItemgetItems()
        Gets the collection of conflict items in this context.
        Returns:
        the (read-only) collection of conflict items in this context, never null
      • getWinner

        public abstract ConflictResolver.ConflictItem getWinner()
        Gets the conflict item which has been selected as the winner among the conflicting dependencies.
        Returns:
        the winning conflict item or null if not set yet
      • setWinner

        public abstract void setWinner​(ConflictResolver.ConflictItem winner)
        Sets the conflict item which has been selected as the winner among the conflicting dependencies.
        Parameters:
        winner - the winning conflict item, may be null
      • getScope

        public abstract java.lang.String getScope()
        Gets the effective scope of the winning dependency.
        Returns:
        the effective scope of the winning dependency or null if none
      • setScope

        public abstract void setScope​(java.lang.String scope)
        Sets the effective scope of the winning dependency.
        Parameters:
        scope - the effective scope, may be null
      • getOptional

        public abstract java.lang.Boolean getOptional()
        Gets the effective optional flag of the winning dependency.
        Returns:
        the effective optional flag or null if none
      • setOptional

        public abstract void setOptional​(java.lang.Boolean optional)
        Sets the effective optional flag of the winning dependency.
        Parameters:
        optional - the effective optional flag, may be null