Class ImmutableGraph.Builder
- java.lang.Object
-
- org.opennms.integration.api.v1.graph.immutables.ImmutableElement.AbstractBuilder<ImmutableGraph.Builder>
-
- org.opennms.integration.api.v1.graph.immutables.ImmutableGraph.Builder
-
- Enclosing class:
- ImmutableGraph
public static final class ImmutableGraph.Builder extends ImmutableElement.AbstractBuilder<ImmutableGraph.Builder>
-
-
Field Summary
-
Fields inherited from class org.opennms.integration.api.v1.graph.immutables.ImmutableElement.AbstractBuilder
properties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableGraph.BuilderaddEdge(org.opennms.integration.api.v1.graph.Edge edge)ImmutableGraph.BuilderaddEdges(java.util.Collection<org.opennms.integration.api.v1.graph.Edge> edges)ImmutableGraph.BuilderaddVertex(org.opennms.integration.api.v1.graph.Vertex vertex)ImmutableGraph.BuilderaddVertices(java.util.Collection<org.opennms.integration.api.v1.graph.Vertex> vertices)ImmutableGraphbuild()ImmutableGraph.BuilderdefaultFocus(java.util.List<org.opennms.integration.api.v1.graph.VertexRef> vertexRefList)ImmutableGraph.BuilderdefaultFocus(org.opennms.integration.api.v1.graph.VertexRef vertexRef)ImmutableGraph.BuilderdefaultFocus(org.opennms.integration.api.v1.graph.VertexRef... vertexRefs)ImmutableGraph.Builderdescription(java.lang.String description)ImmutableEdge.Builderedge(java.lang.String id, org.opennms.integration.api.v1.graph.VertexRef source, org.opennms.integration.api.v1.graph.VertexRef target)java.lang.StringgetNamespace()org.opennms.integration.api.v1.graph.VertexgetVertex(java.lang.String id)java.util.List<org.opennms.integration.api.v1.graph.Vertex>getVertices()ImmutableGraph.Buildergraph(org.opennms.integration.api.v1.graph.Graph graph)ImmutableGraph.BuildergraphInfo(org.opennms.integration.api.v1.graph.GraphInfo graphInfo)ImmutableGraph.Builderlabel(java.lang.String label)ImmutableGraph.Buildernamespace(java.lang.String namespace)ImmutableGraph.Builderproperties(java.util.Map<java.lang.String,java.lang.Object> properties)ImmutableGraph.Builderproperty(java.lang.String name, java.lang.Object value)voidremoveEdge(org.opennms.integration.api.v1.graph.Edge edge)voidremoveVertex(org.opennms.integration.api.v1.graph.Vertex vertex)ImmutableVertex.Buildervertex(java.lang.String id)
-
-
-
Method Detail
-
graph
public ImmutableGraph.Builder graph(org.opennms.integration.api.v1.graph.Graph graph)
-
label
public ImmutableGraph.Builder label(java.lang.String label)
-
description
public ImmutableGraph.Builder description(java.lang.String description)
-
graphInfo
public ImmutableGraph.Builder graphInfo(org.opennms.integration.api.v1.graph.GraphInfo graphInfo)
-
defaultFocus
public ImmutableGraph.Builder defaultFocus(org.opennms.integration.api.v1.graph.VertexRef... vertexRefs)
-
defaultFocus
public ImmutableGraph.Builder defaultFocus(org.opennms.integration.api.v1.graph.VertexRef vertexRef)
-
defaultFocus
public ImmutableGraph.Builder defaultFocus(java.util.List<org.opennms.integration.api.v1.graph.VertexRef> vertexRefList)
-
addEdges
public ImmutableGraph.Builder addEdges(java.util.Collection<org.opennms.integration.api.v1.graph.Edge> edges)
-
addVertices
public ImmutableGraph.Builder addVertices(java.util.Collection<org.opennms.integration.api.v1.graph.Vertex> vertices)
-
addVertex
public ImmutableGraph.Builder addVertex(org.opennms.integration.api.v1.graph.Vertex vertex)
-
addEdge
public ImmutableGraph.Builder addEdge(org.opennms.integration.api.v1.graph.Edge edge)
-
vertex
public ImmutableVertex.Builder vertex(java.lang.String id)
-
edge
public ImmutableEdge.Builder edge(java.lang.String id, org.opennms.integration.api.v1.graph.VertexRef source, org.opennms.integration.api.v1.graph.VertexRef target)
-
removeEdge
public void removeEdge(org.opennms.integration.api.v1.graph.Edge edge)
-
removeVertex
public void removeVertex(org.opennms.integration.api.v1.graph.Vertex vertex)
-
getNamespace
public java.lang.String getNamespace()
-
getVertex
public org.opennms.integration.api.v1.graph.Vertex getVertex(java.lang.String id)
-
namespace
public ImmutableGraph.Builder namespace(java.lang.String namespace)
-
property
public ImmutableGraph.Builder property(java.lang.String name, java.lang.Object value)
- Overrides:
propertyin classImmutableElement.AbstractBuilder<ImmutableGraph.Builder>
-
properties
public ImmutableGraph.Builder properties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Overrides:
propertiesin classImmutableElement.AbstractBuilder<ImmutableGraph.Builder>
-
getVertices
public java.util.List<org.opennms.integration.api.v1.graph.Vertex> getVertices()
-
build
public ImmutableGraph build()
-
-