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(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(Collection<GenericEdge> edges)
-
addVertices
public GenericGraph.GenericGraphBuilder addVertices(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 String getNamespace()
- Overrides:
getNamespace
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
getVertex
public GenericVertex getVertex(String id)
-
resolveVertices
public List<GenericVertex> resolveVertices(NodeRef nodeRef)
-
namespace
public GenericGraph.GenericGraphBuilder namespace(String namespace)
- Overrides:
namespace
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
property
public GenericGraph.GenericGraphBuilder property(String name, Object value)
- Overrides:
property
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
properties
public GenericGraph.GenericGraphBuilder properties(Map<String,Object> properties)
- Overrides:
properties
in classGenericElement.GenericElementBuilder<GenericGraph.GenericGraphBuilder>
-
build
public GenericGraph build()
-
getVertices
public List<GenericVertex> getVertices()
-
-