public class SimpleEdgeProvider extends Object implements EdgeProvider
Constructor and Description |
---|
SimpleEdgeProvider(String namespace) |
SimpleEdgeProvider(String namespace,
String contributesTo) |
Modifier and Type | Method and Description |
---|---|
void |
add(Edge... edges) |
void |
add(List<Edge> edges) |
void |
addEdgeListener(EdgeListener edgeListener) |
void |
clearEdges() |
boolean |
contributesTo(String namespace)
Defines if the current implementation contributes to the given namespace.
|
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.)
|
static Criteria |
labelMatches(String namespace,
String regex) |
void |
remove(EdgeRef... edges) |
void |
remove(List<EdgeRef> edges) |
void |
removeEdgeListener(EdgeListener edgeListener) |
void |
setEdges(List<Edge> edges) |
public SimpleEdgeProvider(String namespace)
public String getNamespace()
NamespaceAware
getNamespace
in interface NamespaceAware
public 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 Edge getEdge(String namespace, String id)
getEdge
in interface EdgeProvider
public Edge getEdge(EdgeRef reference)
getEdge
in interface EdgeProvider
public List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvider
getEdges
in interface EdgeProvider
public void addEdgeListener(EdgeListener edgeListener)
addEdgeListener
in interface EdgeProvider
public void removeEdgeListener(EdgeListener edgeListener)
removeEdgeListener
in interface EdgeProvider
public void add(Edge... edges)
public void remove(EdgeRef... edges)
public List<Edge> getEdges(Criteria... criteria)
EdgeProvider
getEdges
in interface EdgeProvider
public void clearEdges()
clearEdges
in interface EdgeProvider
public int getEdgeTotalCount()
getEdgeTotalCount
in interface EdgeProvider
Copyright © 2021. All rights reserved.