|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.repository.metadata.MetadataGraph
public class MetadataGraph
maven dependency metadata graph
Field Summary | |
---|---|
static int |
DEFAULT_EDGES
|
static int |
DEFAULT_VERTICES
|
Constructor Summary | |
---|---|
MetadataGraph(int nVertices)
init graph |
|
MetadataGraph(int nVertices,
int nEdges)
|
|
MetadataGraph(MetadataGraphVertex entry)
construct a single vertex |
|
MetadataGraph(MetadataTreeNode tree)
construct graph from a "dirty" tree |
|
MetadataGraph(MetadataTreeNode tree,
boolean versionedVertices,
boolean scopedVertices)
construct graph from a "dirty" tree |
Method Summary | |
---|---|
MetadataGraph |
addEdge(MetadataGraphVertex vFrom,
MetadataGraphVertex vTo,
MetadataGraphEdge e)
|
MetadataGraphVertex |
addVertex(ArtifactMetadata md)
|
MetadataGraphVertex |
findVertex(ArtifactMetadata md)
|
List<MetadataGraphEdge> |
getEdgesBetween(MetadataGraphVertex vFrom,
MetadataGraphVertex vTo)
|
MetadataGraphVertex |
getEntry()
|
List<MetadataGraphEdge> |
getExcidentEdges(MetadataGraphVertex vertex)
|
List<MetadataGraphEdge> |
getIncidentEdges(MetadataGraphVertex vertex)
|
ArtifactScopeEnum |
getScope()
|
TreeSet<MetadataGraphVertex> |
getVertices()
|
boolean |
isEmpty()
|
boolean |
isEmptyEdges()
|
boolean |
isScopedVertices()
|
boolean |
isVersionedVertices()
|
MetadataGraph |
removeVertex(MetadataGraphVertex v)
|
void |
setEntry(MetadataGraphVertex entry)
|
void |
setScope(ArtifactScopeEnum scope)
|
void |
setScopedVertices(boolean scopedVertices)
|
void |
setVersionedVertices(boolean versionedVertices)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_VERTICES
public static final int DEFAULT_EDGES
Constructor Detail |
---|
public MetadataGraph(int nVertices)
public MetadataGraph(int nVertices, int nEdges)
public MetadataGraph(MetadataGraphVertex entry) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph(MetadataTreeNode tree) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph(MetadataTreeNode tree, boolean versionedVertices, boolean scopedVertices) throws MetadataResolutionException
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)
MetadataResolutionException
Method Detail |
---|
public MetadataGraphVertex findVertex(ArtifactMetadata md)
public MetadataGraphVertex addVertex(ArtifactMetadata md)
public List<MetadataGraphEdge> getEdgesBetween(MetadataGraphVertex vFrom, MetadataGraphVertex vTo)
public MetadataGraph addEdge(MetadataGraphVertex vFrom, MetadataGraphVertex vTo, MetadataGraphEdge e) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph removeVertex(MetadataGraphVertex v)
public MetadataGraphVertex getEntry()
public void setEntry(MetadataGraphVertex entry)
public TreeSet<MetadataGraphVertex> getVertices()
public List<MetadataGraphEdge> getIncidentEdges(MetadataGraphVertex vertex)
public List<MetadataGraphEdge> getExcidentEdges(MetadataGraphVertex vertex)
public boolean isVersionedVertices()
public void setVersionedVertices(boolean versionedVertices)
public boolean isScopedVertices()
public void setScopedVertices(boolean scopedVertices)
public ArtifactScopeEnum getScope()
public void setScope(ArtifactScopeEnum scope)
public boolean isEmpty()
public boolean isEmptyEdges()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |