public static final class ConflictResolver.ConflictContext extends Object
ConflictResolver.VersionSelector, 
ConflictResolver.ScopeSelector| Constructor and Description | 
|---|
| ConflictResolver.ConflictContext(org.eclipse.aether.graph.DependencyNode root,
                                                                Object conflictId,
                                                                Map<org.eclipse.aether.graph.DependencyNode,Object> conflictIds,
                                                                Collection<ConflictResolver.ConflictItem> items)Creates a new conflict context. | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<ConflictResolver.ConflictItem> | getItems()Gets the collection of conflict items in this context. | 
| Boolean | getOptional()Gets the effective optional flag of the winning dependency. | 
| org.eclipse.aether.graph.DependencyNode | getRoot()Gets the root node of the dependency graph being transformed. | 
| String | getScope()Gets the effective scope of the winning dependency. | 
| ConflictResolver.ConflictItem | getWinner()Gets the conflict item which has been selected as the winner among the conflicting dependencies. | 
| boolean | isIncluded(org.eclipse.aether.graph.DependencyNode node)Determines whether the specified dependency node belongs to this conflict context. | 
| void | setOptional(Boolean optional)Sets the effective optional flag of the winning dependency. | 
| void | setScope(String scope)Sets the effective scope of the winning dependency. | 
| void | setWinner(ConflictResolver.ConflictItem winner)Sets the conflict item which has been selected as the winner among the conflicting dependencies. | 
| String | toString() | 
public ConflictResolver.ConflictContext(org.eclipse.aether.graph.DependencyNode root, Object conflictId, Map<org.eclipse.aether.graph.DependencyNode,Object> conflictIds, Collection<ConflictResolver.ConflictItem> items)
root - The root node of the dependency graph, must not be null.conflictId - The conflict id for the set of conflicting dependencies in this context, must not be
            null.conflictIds - The mapping from dependency node to conflict id, must not be null.items - The conflict items in this context, must not be null.public org.eclipse.aether.graph.DependencyNode getRoot()
null.public boolean isIncluded(org.eclipse.aether.graph.DependencyNode node)
node - The dependency node to check, must not be null.true if the given node belongs to this conflict context, false otherwise.public Collection<ConflictResolver.ConflictItem> getItems()
null.public ConflictResolver.ConflictItem getWinner()
null if not set yet.public void setWinner(ConflictResolver.ConflictItem winner)
winner - The winning conflict item, may be null.public String getScope()
null if none.public void setScope(String scope)
scope - The effective scope, may be null.public Boolean getOptional()
null if none.public void setOptional(Boolean optional)
optional - The effective optional flag, may be null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.