public interface VertexProperty<V> extends Property<V>, Element
VertexProperty is similar to a Property in that it denotes a key/value pair associated with an
Vertex, however it is different in the sense that it also represents an entity that it is an Element
that can have properties of its own.
A property is much like a Java8 Optional in that a property can be not present (i.e. empty).
The key of a property is always a String and the value of a property is an arbitrary Java object.
Each underlying graph engine will typically have constraints on what Java objects are allowed to be used as values.| Modifier and Type | Interface and Description |
|---|---|
static class |
VertexProperty.Cardinality |
static class |
VertexProperty.Exceptions
Common exceptions to use with a property.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LABEL |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
static <V> VertexProperty<V> |
empty()
Constructs an empty
VertexProperty. |
default Graph |
graph()
Get the graph that this element is within.
|
default String |
label()
Gets the label for the graph
Element which helps categorize it. |
<U> Iterator<Property<U>> |
properties(String... propertyKeys)
Get an
Iterator of properties where the propertyKeys is meant to be a filter on the available
keys. |
static final String DEFAULT_LABEL
default Graph graph()
default String label()
Element which helps categorize it.static <V> VertexProperty<V> empty()
VertexProperty.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.