|
||||||||||
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. |
Collection<Artifact> |
getAliases()
Gets the known aliases for this dependency's artifact. |
List<DependencyNode> |
getChildren()
Gets the child nodes of this node. |
Map<Object,Object> |
getData()
Gets the custom data associated with this dependency node. |
Dependency |
getDependency()
Gets the dependency associated with this node. |
String |
getPremanagedScope()
Gets the scope for the dependency before dependency management was applied (if any). |
String |
getPremanagedVersion()
Gets the version or version range for the dependency before dependency management was applied (if any). |
List<Artifact> |
getRelocations()
Gets the sequence of relocations that was followed to resolve the artifact referenced by the dependency. |
List<RemoteRepository> |
getRepositories()
Gets the remote repositories from which this node's artifact shall be resolved. |
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(Object key,
Object value)
Associates the specified dependency node data with the given key. |
void |
setRequestContext(String context)
Sets the request context in which this dependency node was created. |
void |
setScope(String scope)
Sets the scope of the dependency. |
Method Detail |
---|
List<DependencyNode> getChildren()
null
.Dependency getDependency()
null
if none.void setArtifact(Artifact artifact)
artifact
- The artifact satisfying the dependency, must not be null
.List<Artifact> getRelocations()
null
.Collection<Artifact> getAliases()
null
.VersionConstraint getVersionConstraint()
null
.Version getVersion()
null
.void setScope(String scope)
scope
- The scope, may be null
.String getPremanagedVersion()
null
if the version was not managed.String getPremanagedScope()
null
if the scope was not managed.List<RemoteRepository> getRepositories()
null
.String getRequestContext()
null
.void setRequestContext(String context)
context
- The context, may be null
.Map<Object,Object> getData()
null
.void setData(Object key, 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 |