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()
NamespaceAwaregetNamespace in interface NamespaceAwarepublic 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 Edge getEdge(String namespace, String id)
getEdge in interface EdgeProviderpublic Edge getEdge(EdgeRef reference)
getEdge in interface EdgeProviderpublic List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvidergetEdges in interface EdgeProviderpublic void addEdgeListener(EdgeListener edgeListener)
addEdgeListener in interface EdgeProviderpublic void removeEdgeListener(EdgeListener edgeListener)
removeEdgeListener in interface EdgeProviderpublic void add(Edge... edges)
public void remove(EdgeRef... edges)
public List<Edge> getEdges(Criteria... criteria)
EdgeProvidergetEdges in interface EdgeProviderpublic void clearEdges()
clearEdges in interface EdgeProviderpublic int getEdgeTotalCount()
getEdgeTotalCount in interface EdgeProviderCopyright © 2019. All rights reserved.