public class DelegatingVertexEdgeProvider extends Object implements VertexProvider, EdgeProvider
Modifier and Type | Field and Description |
---|---|
protected SimpleEdgeProvider |
m_edgeProvider |
protected SimpleVertexProvider |
m_vertexProvider |
Constructor and Description |
---|
DelegatingVertexEdgeProvider(SimpleVertexProvider vertexProvider,
SimpleEdgeProvider edgeProvider) |
DelegatingVertexEdgeProvider(String namespace) |
DelegatingVertexEdgeProvider(String vertexNamespace,
String edgeNamespace) |
Modifier and Type | Method and Description |
---|---|
void |
addEdgeListener(EdgeListener listener) |
void |
addVertexListener(VertexListener vertexListener) |
void |
clearEdges() |
void |
clearVertices() |
boolean |
containsVertexId(String id) |
boolean |
containsVertexId(VertexRef id,
Criteria... criteria) |
boolean |
contributesTo(String namespace)
Defines if the current implementation contributes to the given namespace.
|
List<Vertex> |
getChildren(VertexRef group,
Criteria... criteria) |
Edge |
getEdge(EdgeRef reference) |
Edge |
getEdge(String namespace,
String id) |
List<Edge> |
getEdges(Collection<? extends EdgeRef> references)
Return an immutable list of all edges that match this set of references.
|
List<Edge> |
getEdges(Criteria... criteria)
Return an immutable list of edges that match the criteria.
|
int |
getEdgeTotalCount() |
String |
getNamespace()
A string used to identify references belonging to this provider
May only contain characters that make for a reasonable Java identifier
such as letters digits and underscore (no colons, periods, commas etc.)
|
Vertex |
getParent(VertexRef vertex) |
List<Vertex> |
getRootGroup() |
int |
getSemanticZoomLevel(VertexRef vertex) |
protected SimpleEdgeProvider |
getSimpleEdgeProvider() |
protected SimpleVertexProvider |
getSimpleVertexProvider() |
Vertex |
getVertex(String namespace,
String id) |
Vertex |
getVertex(VertexRef reference,
Criteria... criteria) |
int |
getVertexTotalCount() |
List<Vertex> |
getVertices(Collection<? extends VertexRef> references,
Criteria... criteria) |
List<Vertex> |
getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
|
boolean |
hasChildren(VertexRef group) |
void |
removeEdgeListener(EdgeListener listener) |
void |
removeVertexListener(VertexListener vertexListener) |
boolean |
setParent(VertexRef child,
VertexRef parent) |
protected SimpleVertexProvider m_vertexProvider
protected SimpleEdgeProvider m_edgeProvider
public DelegatingVertexEdgeProvider(String namespace)
public DelegatingVertexEdgeProvider(String vertexNamespace, String edgeNamespace)
public DelegatingVertexEdgeProvider(SimpleVertexProvider vertexProvider, SimpleEdgeProvider edgeProvider)
protected final SimpleVertexProvider getSimpleVertexProvider()
protected final SimpleEdgeProvider getSimpleEdgeProvider()
public final void addVertexListener(VertexListener vertexListener)
addVertexListener
in interface VertexProvider
public final void clearVertices()
clearVertices
in interface VertexProvider
public int getVertexTotalCount()
getVertexTotalCount
in interface VertexProvider
public int getEdgeTotalCount()
getEdgeTotalCount
in interface EdgeProvider
public final boolean contributesTo(String namespace)
NamespaceAware
NamespaceAware.getNamespace()
, but is not a requirement.contributesTo
in interface NamespaceAware
namespace
- the namespace to contribute totrue
, if the current implementation contributes to the given namespace, otherwise false
.public boolean containsVertexId(String id)
containsVertexId
in interface VertexProvider
public boolean containsVertexId(VertexRef id, Criteria... criteria)
containsVertexId
in interface VertexProvider
public final List<Vertex> getChildren(VertexRef group, Criteria... criteria)
getChildren
in interface VertexProvider
public final String getNamespace()
NamespaceAware
getNamespace
in interface NamespaceAware
public final Vertex getParent(VertexRef vertex)
getParent
in interface VertexProvider
public final List<Vertex> getRootGroup()
getRootGroup
in interface VertexProvider
public final int getSemanticZoomLevel(VertexRef vertex)
getSemanticZoomLevel
in interface VertexProvider
public final Vertex getVertex(String namespace, String id)
getVertex
in interface VertexProvider
public final Vertex getVertex(VertexRef reference, Criteria... criteria)
getVertex
in interface VertexProvider
public final List<Vertex> getVertices(Criteria... criteria)
VertexProvider
getVertices
in interface VertexProvider
public final List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
getVertices
in interface VertexProvider
public final boolean hasChildren(VertexRef group)
hasChildren
in interface VertexProvider
public final void removeVertexListener(VertexListener vertexListener)
removeVertexListener
in interface VertexProvider
public final boolean setParent(VertexRef child, VertexRef parent)
setParent
in interface VertexProvider
public final void addEdgeListener(EdgeListener listener)
addEdgeListener
in interface EdgeProvider
public final void clearEdges()
clearEdges
in interface EdgeProvider
public final Edge getEdge(String namespace, String id)
getEdge
in interface EdgeProvider
public final Edge getEdge(EdgeRef reference)
getEdge
in interface EdgeProvider
public final List<Edge> getEdges(Criteria... criteria)
EdgeProvider
getEdges
in interface EdgeProvider
public final List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvider
getEdges
in interface EdgeProvider
public final void removeEdgeListener(EdgeListener listener)
removeEdgeListener
in interface EdgeProvider
Copyright © 2021. All rights reserved.