public class ReferenceVertexProperty<V> extends ReferenceElement<VertexProperty<V>> implements VertexProperty<V>
VertexProperty.Cardinality, VertexProperty.ExceptionsAttachable.Exceptions, Attachable.Methodid, labelDEFAULT_LABEL| Constructor and Description | 
|---|
| ReferenceVertexProperty(Object id,
                       String label,
                       V value) | 
| ReferenceVertexProperty(VertexProperty<V> vertexProperty) | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex | element()Gets the  Vertexthat owns thisVertexProperty. | 
| boolean | isPresent()Whether the property is empty or not. | 
| String | key()The key of the property. | 
| String | label()Gets the label for the graph  Elementwhich helps categorize it. | 
| <U> Iterator<Property<U>> | properties(String... propertyKeys)Get an  Iteratorof properties where thepropertyKeysis meant to be a filter on the available
 keys. | 
| <U> Property<U> | property(String key,
        U value)Add or set a property value for the  Elementgiven its key. | 
| void | remove()Remove the property from the associated element. | 
| String | toString() | 
| V | value()The value of the property. | 
equals, get, graph, hashCode, idclone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, graphifPresent, orElse, orElseGet, orElseThrowid, keys, property, value, valuesattachpublic ReferenceVertexProperty(VertexProperty<V> vertexProperty)
public String label()
ElementElement which helps categorize it.label in interface Elementlabel in interface VertexProperty<V>label in class ReferenceElement<VertexProperty<V>>public V value() throws NoSuchElementException
Propertyvalue in interface Property<V>NoSuchElementException - thrown if the property is emptypublic boolean isPresent()
Propertypublic Vertex element()
VertexPropertyVertex 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)
ElementElement given its key.public void remove()
Propertypublic <U> Iterator<Property<U>> properties(String... propertyKeys)
VertexPropertyIterator of properties where the propertyKeys is meant to be a filter on the available
 keys. If no keys are provide then return all the properties.properties in interface Elementproperties in interface VertexProperty<V>Copyright © 2013–2019 Apache Software Foundation. All rights reserved.