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 VertexProviderpublic final void clearVertices()
clearVertices in interface VertexProviderpublic int getVertexTotalCount()
getVertexTotalCount in interface VertexProviderpublic int getEdgeTotalCount()
getEdgeTotalCount in interface EdgeProviderpublic final boolean contributesTo(String namespace)
NamespaceAwareNamespaceAware.getNamespace(), but is not a requirement.contributesTo in interface NamespaceAwarenamespace - the namespace to contribute totrue, if the current implementation contributes to the given namespace, otherwise false.public boolean containsVertexId(String id)
containsVertexId in interface VertexProviderpublic boolean containsVertexId(VertexRef id, Criteria... criteria)
containsVertexId in interface VertexProviderpublic final List<Vertex> getChildren(VertexRef group, Criteria... criteria)
getChildren in interface VertexProviderpublic final String getNamespace()
NamespaceAwaregetNamespace in interface NamespaceAwarepublic final Vertex getParent(VertexRef vertex)
getParent in interface VertexProviderpublic final List<Vertex> getRootGroup()
getRootGroup in interface VertexProviderpublic final int getSemanticZoomLevel(VertexRef vertex)
getSemanticZoomLevel in interface VertexProviderpublic final Vertex getVertex(String namespace, String id)
getVertex in interface VertexProviderpublic final Vertex getVertex(VertexRef reference, Criteria... criteria)
getVertex in interface VertexProviderpublic final List<Vertex> getVertices(Criteria... criteria)
VertexProvidergetVertices in interface VertexProviderpublic final List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
getVertices in interface VertexProviderpublic final boolean hasChildren(VertexRef group)
hasChildren in interface VertexProviderpublic final void removeVertexListener(VertexListener vertexListener)
removeVertexListener in interface VertexProviderpublic final boolean setParent(VertexRef child, VertexRef parent)
setParent in interface VertexProviderpublic final void addEdgeListener(EdgeListener listener)
addEdgeListener in interface EdgeProviderpublic final void clearEdges()
clearEdges in interface EdgeProviderpublic final Edge getEdge(String namespace, String id)
getEdge in interface EdgeProviderpublic final Edge getEdge(EdgeRef reference)
getEdge in interface EdgeProviderpublic final List<Edge> getEdges(Criteria... criteria)
EdgeProvidergetEdges in interface EdgeProviderpublic final List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvidergetEdges in interface EdgeProviderpublic final void removeEdgeListener(EdgeListener listener)
removeEdgeListener in interface EdgeProviderCopyright © 2019. All rights reserved.