Class MetadataGraph
java.lang.Object
org.apache.maven.repository.metadata.MetadataGraph
maven dependency metadata graph
- Author:
- Oleg Gusakov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionMetadataGraph(int nVertices) init graphMetadataGraph(int nVertices, int nEdges) MetadataGraph(MetadataGraphVertex entry) construct a single vertexconstruct graph from a "dirty" treeMetadataGraph(MetadataTreeNode tree, boolean versionedVertices, boolean scopedVertices) construct graph from a "dirty" tree -
Method Summary
Modifier and TypeMethodDescriptionaddEdge(MetadataGraphVertex vFrom, MetadataGraphVertex vTo, MetadataGraphEdge e) getEdgesBetween(MetadataGraphVertex vFrom, MetadataGraphVertex vTo) getEntry()getExcidentEdges(MetadataGraphVertex vertex) getIncidentEdges(MetadataGraphVertex vertex) getScope()booleanisEmpty()booleanbooleanbooleanvoidsetEntry(MetadataGraphVertex entry) voidsetScope(ArtifactScopeEnum scope) voidsetScopedVertices(boolean scopedVertices) voidsetVersionedVertices(boolean versionedVertices) toString()
-
Field Details
-
DEFAULT_VERTICES
public static final int DEFAULT_VERTICES- See Also:
-
DEFAULT_EDGES
public static final int DEFAULT_EDGES- See Also:
-
-
Constructor Details
-
MetadataGraph
public MetadataGraph(int nVertices) init graph -
MetadataGraph
public MetadataGraph(int nVertices, int nEdges) -
MetadataGraph
construct a single vertex- Throws:
MetadataResolutionException
-
MetadataGraph
construct graph from a "dirty" tree- Throws:
MetadataResolutionException
-
MetadataGraph
public MetadataGraph(MetadataTreeNode tree, boolean versionedVertices, boolean scopedVertices) throws MetadataResolutionException construct graph from a "dirty" tree- Parameters:
tree- "dirty" tree rootversionedVertices- true if graph nodes should be versioned (different versions -> different nodes)scopedVertices- true if graph nodes should be versioned and scoped (different versions and/or scopes -> different nodes)- Throws:
MetadataResolutionException
-
-
Method Details
-
findVertex
-
addVertex
-
getEdgesBetween
-
addEdge
public MetadataGraph addEdge(MetadataGraphVertex vFrom, MetadataGraphVertex vTo, MetadataGraphEdge e) throws MetadataResolutionException - Throws:
MetadataResolutionException
-
removeVertex
-
getEntry
-
setEntry
-
getVertices
-
getIncidentEdges
-
getExcidentEdges
-
isVersionedVertices
public boolean isVersionedVertices() -
setVersionedVertices
public void setVersionedVertices(boolean versionedVertices) -
isScopedVertices
public boolean isScopedVertices() -
setScopedVertices
public void setScopedVertices(boolean scopedVertices) -
getScope
-
setScope
-
isEmpty
public boolean isEmpty() -
isEmptyEdges
public boolean isEmptyEdges() -
toString
-