@ParametersAreNonnullByDefault public class InstanceOfEdge extends IdEdge<ModelGraph>
Edge representing the relation between an element and its meta-class.| Modifier and Type | Field and Description |
|---|---|
protected static String |
LABEL
The label of this edge.
|
propertyBasedgraphbase| Modifier and Type | Method and Description |
|---|---|
protected static InstanceOfEdge |
create(ModelGraph graph,
ElementVertex instance,
ClassVertex metaClass)
Creates a new
InstanceOfEdge between the instance vertex and its metaClass. |
static InstanceOfEdge |
from(com.tinkerpop.blueprints.Edge baseEdge,
ModelGraph graph)
Creates a new instance of
InstanceOfEdge on the baseEdge. |
ClassVertex |
getClassVertex()
Returns the meta-class vertex of this relation.
|
ElementVertex |
getInstanceVertex()
Returns the instance vertex of this relation.
|
getLabel, getVertex, getVertex, remove, toStringequals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setPropertygetBaseElementprotected static final String LABEL
@Nonnull public static InstanceOfEdge from(com.tinkerpop.blueprints.Edge baseEdge, ModelGraph graph)
InstanceOfEdge on the baseEdge.baseEdge - the base edgegraph - the graph that owns the edge@Nonnull protected static InstanceOfEdge create(ModelGraph graph, ElementVertex instance, ClassVertex metaClass)
InstanceOfEdge between the instance vertex and its metaClass.graph - the graph that owns the edgeinstance - the instance vertexmetaClass - the meta-class vertex@Nonnull public ClassVertex getClassVertex()
@Nonnull public ElementVertex getInstanceVertex()
Copyright © 2013–2019 Atlanmod. All rights reserved.