@ParametersAreNonnullByDefault public class ElementEdge extends IdEdge<ModelGraph>
Edge representing the relation between an element and another.| Modifier and Type | Field and Description | 
|---|---|
| protected static String | PROPERTY_POSITIONThe property key used to define the position of an edge. | 
propertyBasedgraphbase| Modifier | Constructor and Description | 
|---|---|
| protected  | ElementEdge(com.tinkerpop.blueprints.Edge base,
           ModelGraph graph)Constructs a new  ElementEdge. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static ElementEdge | create(ModelGraph graph,
      ElementVertex referencing,
      Id referenced,
      String label)Creates a new  ElementEdgebetween thereferencingvertex and its reference. | 
| protected static ElementEdge | create(ModelGraph graph,
      ElementVertex referencing,
      Id referenced,
      String label,
      int position)Creates a new  ElementEdgebetween thereferencingvertex and its positionned reference. | 
| static ElementEdge | from(com.tinkerpop.blueprints.Edge baseEdge,
    ModelGraph graph)Creates a new instance of  ElementEdgeon thebaseEdge. | 
| int | getPosition()Returns the position of this relation for the referencing vertex. | 
| ElementVertex | getReferencedVertex()Returns the referenced vertex of this relation. | 
| ElementVertex | getReferencingVertex()Returns the referencing vertex of this relation. | 
| void | updatePosition(IntUnaryOperator updateFunc)Updates the position of this relation for the referencing vertex with the specified function. | 
getLabel, getVertex, getVertex, remove, toStringequals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setPropertygetBaseElementprotected static final String PROPERTY_POSITION
protected ElementEdge(com.tinkerpop.blueprints.Edge base,
                      ModelGraph graph)
ElementEdge.base - the base edgegraph - the graph that owns this edge@Nonnull public static ElementEdge from(com.tinkerpop.blueprints.Edge baseEdge, ModelGraph graph)
ElementEdge on the baseEdge.baseEdge - the base edgegraph - the graph that owns the edge@Nonnull protected static ElementEdge create(ModelGraph graph, ElementVertex referencing, Id referenced, String label)
ElementEdge between the referencing vertex and its reference.graph - the graph that owns the edgereferencing - the referencing vertexreferenced - the identifier of the referenced vertexlabel - the label to identify the relation@Nonnull protected static ElementEdge create(ModelGraph graph, ElementVertex referencing, Id referenced, String label, @Nonnegative int position)
ElementEdge between the referencing vertex and its positionned reference.graph - the graph that owns the edgereferencing - the referencing vertexreferenced - the identifier of the referenced vertexlabel - the label to identify the relationposition - the index of the relation for the referencing vertex (for multi-valud references)@Nonnull public ElementVertex getReferencedVertex()
@Nonnull public ElementVertex getReferencingVertex()
@Nonnegative public int getPosition()
public void updatePosition(IntUnaryOperator updateFunc)
updateFunc - the function to update the current positionCopyright © 2013–2019 Atlanmod. All rights reserved.