public class ReferenceVertexProperty<V> extends ReferenceElement<VertexProperty<V>> implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.Exceptions
Attachable.Exceptions, Attachable.Method
EMPTY_STRING, id
DEFAULT_LABEL
Constructor and Description |
---|
ReferenceVertexProperty(VertexProperty<V> vertexProperty) |
Modifier and Type | Method and Description |
---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty . |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
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. |
<U> Property<U> |
property(String key,
U value)
Add or set a property value for the
Element given its key. |
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
equals, get, graph, hashCode, id
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, graph
ifPresent, orElse, orElseGet, orElseThrow
id, keys, property, value, values
attach
public ReferenceVertexProperty(VertexProperty<V> vertexProperty)
public String label()
Element
Element
which helps categorize it.label
in interface Element
label
in interface VertexProperty<V>
label
in class ReferenceElement<VertexProperty<V>>
public V value() throws NoSuchElementException
Property
value
in interface Property<V>
NoSuchElementException
- thrown if the property is emptypublic boolean isPresent()
Property
public Vertex element()
VertexProperty
Vertex
that owns this VertexProperty
.element
in interface Property<V>
element
in interface VertexProperty<V>
Vertex
, Edge
, or VertexProperty
).public <U> Property<U> property(String key, U value)
Element
Element
given its key.public void remove()
Property
public <U> Iterator<Property<U>> properties(String... propertyKeys)
VertexProperty
Iterator
of properties.properties
in interface Element
properties
in interface VertexProperty<V>
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.