@ParametersAreNonnullByDefault public class ContainingEdge extends IdEdge<ModelGraph>
Edge representing the relation between an element and its container.| Modifier and Type | Field and Description |
|---|---|
protected static String |
LABEL
The label of this edge.
|
protected static String |
PROPERTY_FID
The property key used to define the name of the opposite containing feature in container edges.
|
propertyBasedgraphbase| Modifier and Type | Method and Description |
|---|---|
protected static ContainingEdge |
create(ModelGraph graph,
ElementVertex containment,
SingleFeatureBean bean)
Creates a new
ContainingEdge between the containment vertex and its container. |
static ContainingEdge |
from(com.tinkerpop.blueprints.Edge baseEdge,
ModelGraph graph)
Creates a new instance of
ContainingEdge on the baseEdge. |
ElementVertex |
getContainerVertex()
Returns the container vertex of this relation.
|
ElementVertex |
getContainmentVertex()
Returns the containment vertex of this relation.
|
Integer |
getFeatureId()
Returns the identifier of the containing feature.
|
SingleFeatureBean |
toBean()
Returns the simple representation of this containing edge.
|
getLabel, getVertex, getVertex, remove, toStringequals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setPropertygetBaseElementprotected static final String LABEL
protected static final String PROPERTY_FID
@Nonnull public static ContainingEdge from(com.tinkerpop.blueprints.Edge baseEdge, ModelGraph graph)
ContainingEdge on the baseEdge.baseEdge - the base edgegraph - the graph that owns the edge@Nonnull protected static ContainingEdge create(ModelGraph graph, ElementVertex containment, SingleFeatureBean bean)
ContainingEdge between the containment vertex and its container.graph - the graph that owns the edgecontainment - the containment vertexbean - the simple representation of the container@Nonnull public ElementVertex getContainerVertex()
@Nonnull public ElementVertex getContainmentVertex()
@Nonnull public Integer getFeatureId()
@Nonnull public SingleFeatureBean toBean()
Copyright © 2013–2019 Atlanmod. All rights reserved.