Class StarGraph.StarVertexProperty<V>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarElement<VertexProperty<V>>
-
- org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarVertexProperty<V>
-
- All Implemented Interfaces:
Element
,Property<V>
,Attachable<VertexProperty<V>>
,VertexProperty<V>
- Enclosing class:
- StarGraph
public final class StarGraph.StarVertexProperty<V> extends StarGraph.StarElement<VertexProperty<V>> implements VertexProperty<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.Method
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
VertexProperty.Cardinality, VertexProperty.Exceptions
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarElement
id, label
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vertex
element()
Gets theVertex
that owns thisVertexProperty
.boolean
isPresent()
Whether the property is empty or not.String
key()
The key of the property.<U> Iterator<Property<U>>
properties(String... propertyKeys)
Get anIterator
of properties where thepropertyKeys
is meant to be a filter on the available keys.<U> Property<U>
property(String key, U value)
Add or set a property value for theElement
given its key.void
remove()
Remove the property from the associated element.String
toString()
V
value()
The value of the property.-
Methods inherited from class org.apache.tinkerpop.gremlin.structure.util.star.StarGraph.StarElement
equals, get, graph, hashCode, id, label
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attach
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
id, keys, property, value, values
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrow
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
graph, label
-
-
-
-
Method Detail
-
value
public V value() throws NoSuchElementException
Description copied from interface:Property
The value of the property.- Specified by:
value
in interfaceProperty<V>
- Returns:
- The property value
- Throws:
NoSuchElementException
- thrown if the property is empty
-
isPresent
public boolean isPresent()
Description copied from interface:Property
Whether the property is empty or not.
-
element
public Vertex element()
Description copied from interface:VertexProperty
Gets theVertex
that owns thisVertexProperty
.- Specified by:
element
in interfaceProperty<V>
- Specified by:
element
in interfaceVertexProperty<V>
- Returns:
- The element associated with this property (i.e.
Vertex
,Edge
, orVertexProperty
).
-
remove
public void remove()
Description copied from interface:Property
Remove the property from the associated element.
-
properties
public <U> Iterator<Property<U>> properties(String... propertyKeys)
Description copied from interface:VertexProperty
Get anIterator
of properties where thepropertyKeys
is meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
properties
in interfaceElement
- Specified by:
properties
in interfaceVertexProperty<V>
-
property
public <U> Property<U> property(String key, U value)
Description copied from interface:Element
Add or set a property value for theElement
given its key.
-
-