Class ConflictResolver.ConflictItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int OPTIONAL_FALSE
      Bit flag indicating whether one or more paths consider the dependency non-optional.
      static int OPTIONAL_TRUE
      Bit flag indicating whether one or more paths consider the dependency optional.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConflictItem()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract org.eclipse.aether.graph.Dependency getDependency()
      Gets the dependency involved in the conflict, short for getNode.getDependency().
      abstract int getDepth()
      Gets the zero-based depth at which the conflicting node occurs in the graph.
      abstract org.eclipse.aether.graph.DependencyNode getNode()
      Gets the dependency node involved in the conflict.
      abstract int getOptionalities()
      Gets the derived optionalities of the dependency.
      abstract java.util.Collection<java.lang.String> getScopes()
      Gets the derived scopes of the dependency.
      abstract boolean isSibling​(ConflictResolver.ConflictItem item)
      Determines whether the specified conflict item is a sibling of this item.
      • Methods inherited from class java.lang.Object

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

      • isSibling

        public abstract boolean isSibling​(ConflictResolver.ConflictItem item)
        Determines whether the specified conflict item is a sibling of this item.
        Parameters:
        item - the other conflict item, must not be null
        Returns:
        true if the given item has the same parent as this item, false otherwise
      • getNode

        public abstract org.eclipse.aether.graph.DependencyNode getNode()
        Gets the dependency node involved in the conflict.
        Returns:
        the involved dependency node, never null
      • getDependency

        public abstract org.eclipse.aether.graph.Dependency getDependency()
        Gets the dependency involved in the conflict, short for getNode.getDependency().
        Returns:
        the involved dependency, never null
      • getDepth

        public abstract int getDepth()
        Gets the zero-based depth at which the conflicting node occurs in the graph. As such, the depth denotes the number of parent nodes. If actually multiple paths lead to the node, the return value denotes the smallest possible depth.
        Returns:
        the zero-based depth of the node in the graph
      • getScopes

        public abstract java.util.Collection<java.lang.String> getScopes()
        Gets the derived scopes of the dependency. In general, the same dependency node could be reached via different paths and each path might result in a different derived scope.
        Returns:
        the (read-only) set of derived scopes of the dependency, never null
        See Also:
        ConflictResolver.ScopeDeriver
      • getOptionalities

        public abstract int getOptionalities()
        Gets the derived optionalities of the dependency. In general, the same dependency node could be reached via different paths and each path might result in a different derived optionality.
        Returns:
        a bit field consisting of OPTIONAL_FALSE and/or OPTIONAL_TRUE indicating the derived optionalities the dependency was encountered with