Class DetachedVertexProperty<V>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement<VertexProperty<V>>
-
- org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertexProperty<V>
-
- All Implemented Interfaces:
Serializable
,Element
,Property<V>
,Attachable<VertexProperty<V>>
,VertexProperty<V>
public class DetachedVertexProperty<V> extends DetachedElement<VertexProperty<V>> implements VertexProperty<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DetachedVertexProperty.Builder
-
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 Modifier and Type Field Description protected V
value
protected DetachedVertex
vertex
-
Fields inherited from class org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement
id, label, properties
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
logger
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL
-
-
Constructor Summary
Constructors Modifier Constructor Description DetachedVertexProperty(Object id, String label, V value, Map<String,Object> properties)
This constructor is used by GraphSON when deserializing and theHost
is not known.DetachedVertexProperty(Object id, String label, V value, Map<String,Object> properties, Vertex vertex)
protected
DetachedVertexProperty(VertexProperty<V> vertexProperty, boolean withProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetachedVertexProperty.Builder
build()
Provides a way to construct an immutableDetachedEdge
.Vertex
element()
Gets theVertex
that owns thisVertexProperty
.boolean
equals(Object object)
void
internalSetVertex(DetachedVertex vertex)
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.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.detached.DetachedElement
get, graph, hashCode, id, label, property, property
-
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, 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
-
-
-
-
Field Detail
-
value
protected V value
-
vertex
protected transient DetachedVertex vertex
-
-
Method Detail
-
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.
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classDetachedElement<VertexProperty<V>>
-
properties
public <U> Iterator<Property<U>> properties(String... propertyKeys)
Description copied from interface:Element
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>
- Overrides:
properties
in classDetachedElement<VertexProperty<V>>
-
internalSetVertex
public void internalSetVertex(DetachedVertex vertex)
-
build
public static DetachedVertexProperty.Builder build()
Provides a way to construct an immutableDetachedEdge
.
-
-