|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DependencyNode
A node within a dependency graph. Note: When traversing a dirty graph, i.e. a graph which hasn't undergone conflict resolution, there can be multiple path leading to the same node instance.
Method Summary | |
---|---|
boolean |
accept(DependencyVisitor visitor)
Traverses this node and potentially its children using the specified visitor. |
java.util.Collection<Artifact> |
getAliases()
Gets the known aliases for this dependency's artifact. |
java.util.List<DependencyNode> |
getChildren()
Gets the child nodes of this node. |
java.util.Map<java.lang.Object,java.lang.Object> |
getData()
Gets the custom data associated with this dependency node. |
Dependency |
getDependency()
Gets the dependency associated with this node. |
java.lang.String |
getPremanagedScope()
Gets the scope for the dependency before dependency management was applied (if any). |
java.lang.String |
getPremanagedVersion()
Gets the version or version range for the dependency before dependency management was applied (if any). |
java.util.List<Artifact> |
getRelocations()
Gets the sequence of relocations that was followed to resolve the artifact referenced by the dependency. |
java.util.List<RemoteRepository> |
getRepositories()
Gets the remote repositories from which this node's artifact shall be resolved. |
java.lang.String |
getRequestContext()
Gets the request context in which this dependency node was created. |
Version |
getVersion()
Gets the version that was selected for the dependency's target artifact. |
VersionConstraint |
getVersionConstraint()
Gets the version constraint that was parsed from the dependency's version declaration. |
void |
setArtifact(Artifact artifact)
Sets the artifact of the dependency. |
void |
setData(java.lang.Object key,
java.lang.Object value)
Associates the specified dependency node data with the given key. |
void |
setRequestContext(java.lang.String context)
Sets the request context in which this dependency node was created. |
void |
setScope(java.lang.String scope)
Sets the scope of the dependency. |
Method Detail |
---|
java.util.List<DependencyNode> getChildren()
null
.Dependency getDependency()
null
if none.void setArtifact(Artifact artifact)
artifact
- The artifact satisfying the dependency, must not be null
.java.util.List<Artifact> getRelocations()
null
.java.util.Collection<Artifact> getAliases()
null
.VersionConstraint getVersionConstraint()
null
.Version getVersion()
null
.void setScope(java.lang.String scope)
scope
- The scope, may be null
.java.lang.String getPremanagedVersion()
null
if the version was not managed.java.lang.String getPremanagedScope()
null
if the scope was not managed.java.util.List<RemoteRepository> getRepositories()
null
.java.lang.String getRequestContext()
null
.void setRequestContext(java.lang.String context)
context
- The context, may be null
.java.util.Map<java.lang.Object,java.lang.Object> getData()
null
.void setData(java.lang.Object key, java.lang.Object value)
getData()
is being iterated.
key
- The key under which to store the data, must not be null
.value
- The data to associate with the key, may be null
to remove the mapping.boolean accept(DependencyVisitor visitor)
visitor
- The visitor to call back, must not be null
.
true
to visit siblings nodes of this node as well, false
to skip siblings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |