|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface DependencyGraphWalker
Walk nodes of the DependencyGraph.
| Field Summary | |
|---|---|
static java.lang.Integer |
PROCESSING
A getNodeVisitState(ArtifactReference) for a node that is actively being processed,
but not yet finished processing. |
static java.lang.Integer |
SEEN
A getNodeVisitState(ArtifactReference) for a node that has been seen, and fully processed. |
static java.lang.Integer |
UNSEEN
A getNodeVisitState(ArtifactReference) for a node not yet seen in the walker. |
| Method Summary | |
|---|---|
org.apache.commons.collections.Predicate |
getEdgePredicate()
Get the predicate used to determine if the walker should traverse an edge (or not). |
java.lang.Integer |
getNodeVisitState(org.apache.maven.archiva.model.ArtifactReference artifact)
For a provided node, get the current node visit state. |
void |
setEdgePredicate(org.apache.commons.collections.Predicate edgePredicate)
Set the predicate used for edge traversal |
void |
visit(DependencyGraph graph,
DependencyGraphNode startNode,
DependencyGraphVisitor visitor)
Visit every node and edge in the graph from the startNode. |
void |
visit(DependencyGraph graph,
DependencyGraphVisitor visitor)
Visit every node and edge in the entire graph. |
| Field Detail |
|---|
static final java.lang.Integer UNSEEN
getNodeVisitState(ArtifactReference) for a node not yet seen in the walker.
static final java.lang.Integer PROCESSING
getNodeVisitState(ArtifactReference) for a node that is actively being processed,
but not yet finished processing.
static final java.lang.Integer SEEN
getNodeVisitState(ArtifactReference) for a node that has been seen, and fully processed.
| Method Detail |
|---|
java.lang.Integer getNodeVisitState(org.apache.maven.archiva.model.ArtifactReference artifact)
node - the node that you are interested in.
UNSEEN, PROCESSING, or SEEN )org.apache.commons.collections.Predicate getEdgePredicate()
void setEdgePredicate(org.apache.commons.collections.Predicate edgePredicate)
edgePredicate - the Predicate that returns true for edges that should be traversed.
void visit(DependencyGraph graph,
DependencyGraphNode startNode,
DependencyGraphVisitor visitor)
graph - the graph to visit.startNode - the node to start the visit on.visitor - the visitor object to use during this visit.
void visit(DependencyGraph graph,
DependencyGraphVisitor visitor)
graph - the graph to visit.visitor - the visitor object to use during this visit.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||