@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.
|
propertyBased
graph
base
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, toString
equals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setProperty
getBaseElement
protected 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.