public class SimpleVertexProvider extends Object implements VertexProvider
Constructor and Description |
---|
SimpleVertexProvider(String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
add(Collection<Vertex> vertices) |
void |
add(Vertex... vertices) |
void |
addVertexListener(VertexListener vertexListener) |
void |
clearVertices() |
boolean |
containsVertexId(String id)
Deprecated.
You should search by the namespace and ID tuple instead
|
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) |
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) |
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 |
remove(List<VertexRef> vertices) |
void |
remove(VertexRef... vertices) |
void |
removeVertexListener(VertexListener vertexListener) |
boolean |
setParent(VertexRef child,
VertexRef parent) |
void |
setVertices(List<Vertex> vertices) |
public SimpleVertexProvider(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 Vertex getVertex(String namespace, String id)
getVertex
in interface VertexProvider
public Vertex getVertex(VertexRef reference, Criteria... criteria)
getVertex
in interface VertexProvider
public List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
getVertices
in interface VertexProvider
public List<Vertex> getRootGroup()
getRootGroup
in interface VertexProvider
public boolean hasChildren(VertexRef group)
hasChildren
in interface VertexProvider
public Vertex getParent(VertexRef vertex)
getParent
in interface VertexProvider
public boolean setParent(VertexRef child, VertexRef parent)
setParent
in interface VertexProvider
public List<Vertex> getChildren(VertexRef group, Criteria... criteria)
getChildren
in interface VertexProvider
public void addVertexListener(VertexListener vertexListener)
addVertexListener
in interface VertexProvider
public void removeVertexListener(VertexListener vertexListener)
removeVertexListener
in interface VertexProvider
public void add(Vertex... vertices)
public void add(Collection<Vertex> vertices)
public void remove(VertexRef... vertices)
public List<Vertex> getVertices(Criteria... criteria)
VertexProvider
getVertices
in interface VertexProvider
public int getSemanticZoomLevel(VertexRef vertex)
getSemanticZoomLevel
in interface VertexProvider
public void clearVertices()
clearVertices
in interface VertexProvider
public int getVertexTotalCount()
getVertexTotalCount
in interface VertexProvider
public boolean containsVertexId(String id)
containsVertexId
in interface VertexProvider
public boolean containsVertexId(VertexRef id, Criteria... criteria)
containsVertexId
in interface VertexProvider
Copyright © 2021. All rights reserved.