Package org.mule.maven.client.internal
Class ApiDependencyGraphTransformer
java.lang.Object
org.mule.maven.client.internal.GraphCycleAvoidingTransformer
org.mule.maven.client.internal.ParentContextDependencyGraphTransformer
org.mule.maven.client.internal.ApiDependencyGraphTransformer
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencyGraphTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringKey to store ancestors of this node that define it's contextstatic booleanisApi(org.eclipse.aether.graph.DependencyNode node) protected booleanisChildNode(org.eclipse.aether.graph.DependencyNode childNode) Returns if the node should be marked as a child node.protected booleanisSelectableParent(org.eclipse.aether.graph.DependencyNode dependencyNode) Returntrueif the node should be selected as parent and all children should be considered in it's context/Methods inherited from class org.mule.maven.client.internal.ParentContextDependencyGraphTransformer
equals, hashCode, markChildNode, transformNodeMethods inherited from class org.mule.maven.client.internal.GraphCycleAvoidingTransformer
transformGraph
-
Constructor Details
-
ApiDependencyGraphTransformer
public ApiDependencyGraphTransformer()
-
-
Method Details
-
isSelectableParent
protected boolean isSelectableParent(org.eclipse.aether.graph.DependencyNode dependencyNode) Description copied from class:ParentContextDependencyGraphTransformerReturntrueif the node should be selected as parent and all children should be considered in it's context/- Specified by:
isSelectableParentin classParentContextDependencyGraphTransformer- Parameters:
dependencyNode- the node to evaluate as parent.- Returns:
- true if the node should be considered as context parent
-
isChildNode
protected boolean isChildNode(org.eclipse.aether.graph.DependencyNode childNode) Description copied from class:ParentContextDependencyGraphTransformerReturns if the node should be marked as a child node. That means that it belongs to a parent's context- Specified by:
isChildNodein classParentContextDependencyGraphTransformer- Parameters:
childNode- the node to evaluate as child node- Returns:
- true if the node belongs to a parent context
-
getAncestorKey
Description copied from class:ParentContextDependencyGraphTransformerKey to store ancestors of this node that define it's context- Specified by:
getAncestorKeyin classParentContextDependencyGraphTransformer- Returns:
- the key used to store node ancestors
-
isApi
public static boolean isApi(org.eclipse.aether.graph.DependencyNode node)
-