Package org.apache.maven.repository
Class MetadataGraph
- java.lang.Object
-
- org.apache.maven.repository.MetadataGraph
-
public class MetadataGraph extends java.lang.ObjectThis is the main graph data structure used by the RepositorySystem to present tree and graph objects.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MetadataGraphNodeentryentry point for tree-like structures(package private) java.util.Collection<MetadataGraphNode>nodesall graph nodes
-
Constructor Summary
Constructors Constructor Description MetadataGraph()MetadataGraph(MetadataGraphNode entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(MetadataGraphNode node)MetadataGraphNodefindNode(MavenArtifactMetadata md)find a node by the GAV (metadata)MetadataGraphNodegetEntry()getterjava.util.Collection<MetadataGraphNode>getNodes()getter
-
-
-
Field Detail
-
nodes
java.util.Collection<MetadataGraphNode> nodes
all graph nodes
-
entry
MetadataGraphNode entry
entry point for tree-like structures
-
-
Constructor Detail
-
MetadataGraph
public MetadataGraph(MetadataGraphNode entry)
-
MetadataGraph
public MetadataGraph()
-
-
Method Detail
-
addNode
public void addNode(MetadataGraphNode node)
-
findNode
public MetadataGraphNode findNode(MavenArtifactMetadata md)
find a node by the GAV (metadata)- Parameters:
md-
-
getEntry
public MetadataGraphNode getEntry()
getter
-
getNodes
public java.util.Collection<MetadataGraphNode> getNodes()
getter
-
-