Class GenericGraph.GenericGraphBuilder
- java.lang.Object
-
- org.opennms.netmgt.graph.api.generic.GenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
- org.opennms.netmgt.graph.api.generic.GenericGraph.GenericGraphBuilder
-
- Enclosing class:
- GenericGraph
public static final class GenericGraph.GenericGraphBuilder extends GenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GenericGraph.GenericGraphBuilder.FocusBuilder
Helper to build a focus based on various strategies we support.
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.graph.api.generic.GenericElement.GenericElementBuilder
namespaceValidator, properties
-
-
Method Summary
-
Methods inherited from class org.opennms.netmgt.graph.api.generic.GenericElement.GenericElementBuilder
getId, id, label
-
-
-
-
Method Detail
-
graph
public GenericGraph.GenericGraphBuilder graph(GenericGraph graph)
-
description
public GenericGraph.GenericGraphBuilder description(java.lang.String description)
-
graphInfo
public GenericGraph.GenericGraphBuilder graphInfo(GraphInfo graphInfo)
-
focus
public GenericGraph.GenericGraphBuilder focus(Focus defaultFocus)
-
focus
public GenericGraph.GenericGraphBuilder.FocusBuilder focus()
-
addEdges
public GenericGraph.GenericGraphBuilder addEdges(java.util.Collection<GenericEdge> edges)
-
addVertices
public GenericGraph.GenericGraphBuilder addVertices(java.util.Collection<GenericVertex> vertices)
-
addVertex
public GenericGraph.GenericGraphBuilder addVertex(GenericVertex vertex)
-
addEdge
public GenericGraph.GenericGraphBuilder addEdge(GenericEdge edge)
-
removeEdge
public void removeEdge(GenericEdge edge)
-
removeVertex
public void removeVertex(GenericVertex vertex)
-
getNamespace
public java.lang.String getNamespace()
- Overrides:
getNamespace
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
getVertex
public GenericVertex getVertex(java.lang.String id)
-
resolveVertices
public java.util.List<GenericVertex> resolveVertices(NodeRef nodeRef)
-
namespace
public GenericGraph.GenericGraphBuilder namespace(java.lang.String namespace)
- Overrides:
namespace
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
property
public GenericGraph.GenericGraphBuilder property(java.lang.String name, java.lang.Object value)
- Overrides:
property
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
properties
public GenericGraph.GenericGraphBuilder properties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Overrides:
properties
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
build
public GenericGraph build()
-
getVertices
public java.util.List<GenericVertex> getVertices()
-
-