@ParametersAreNonnullByDefault public class ClassVertex extends IdVertex<ModelGraph>
Vertex representing a meta-class.| Modifier and Type | Field and Description |
|---|---|
protected static String |
PROPERTY_NAME
The property key used to define the name of meta-class vertices.
|
protected static String |
PROPERTY_URI
The property key used to define the URI of meta-class vertices.
|
propertyBasedgraphbase| Modifier and Type | Method and Description |
|---|---|
protected static ClassVertex |
create(ModelGraph graph,
ClassBean bean)
Creates a new
ClassVertex on the graph. |
static ClassVertex |
from(com.tinkerpop.blueprints.Vertex baseVertex,
ModelGraph graph)
Creates a new instance of
ClassVertex on the baseVertex. |
Iterable<ElementVertex> |
getAllInstancesOf()
Returns all vertices that are instance of the represented meta-class.
|
String |
getName()
Returns the name of the represented meta-class.
|
protected static ClassVertex |
getOrCreate(ModelGraph graph,
ClassBean bean)
Retrieves or creates a new
ClassVertex on the graph. |
String |
getUri()
Returns the URI of the represented meta-class.
|
ClassBean |
toBean()
Returns the simple representation of this meta-class vertex.
|
addEdge, addEdge, getEdge, getEdge, getEdges, getEdges, getVertex, getVertex, getVertices, getVertices, query, remove, toStringequals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setPropertygetBaseElementprotected static final String PROPERTY_NAME
protected static final String PROPERTY_URI
@Nonnull public static ClassVertex from(com.tinkerpop.blueprints.Vertex baseVertex, ModelGraph graph)
ClassVertex on the baseVertex.baseVertex - the base vertexgraph - the graph that owns the vertex@Nonnull protected static ClassVertex create(ModelGraph graph, ClassBean bean)
ClassVertex on the graph.graph - the graph that owns the vertexbean - the simple representation of the meta-class@Nonnull protected static ClassVertex getOrCreate(ModelGraph graph, ClassBean bean)
ClassVertex on the graph.graph - the graph that owns the vertexbean - the simple representation of the meta-classcreate(ModelGraph, ClassBean)@Nonnull public String getName()
@Nonnull public String getUri()
@Nonnull public ClassBean toBean()
@Nonnull public Iterable<ElementVertex> getAllInstancesOf()
Copyright © 2013–2019 Atlanmod. All rights reserved.