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 classDetachedVertexProperty.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 Vvalueprotected DetachedVertexvertex-
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 theHostis not known.DetachedVertexProperty(Object id, String label, V value, Map<String,Object> properties, Vertex vertex)protectedDetachedVertexProperty(VertexProperty<V> vertexProperty, boolean withProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetachedVertexProperty.Builderbuild()Provides a way to construct an immutableDetachedEdge.Vertexelement()Gets theVertexthat owns thisVertexProperty.booleanequals(Object object)voidinternalSetVertex(DetachedVertex vertex)booleanisPresent()Whether the property is empty or not.Stringkey()The key of the property.<U> Iterator<Property<U>>properties(String... propertyKeys)Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.voidremove()Remove the property from the associated element.StringtoString()Vvalue()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:PropertyWhether the property is empty or not.
-
element
public Vertex element()
Description copied from interface:VertexPropertyGets theVertexthat owns thisVertexProperty.- Specified by:
elementin interfaceProperty<V>- Specified by:
elementin interfaceVertexProperty<V>- Returns:
- The element associated with this property (i.e.
Vertex,Edge, orVertexProperty).
-
remove
public void remove()
Description copied from interface:PropertyRemove the property from the associated element.
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classDetachedElement<VertexProperty<V>>
-
properties
public <U> Iterator<Property<U>> properties(String... propertyKeys)
Description copied from interface:ElementGet anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
propertiesin interfaceElement- Specified by:
propertiesin interfaceVertexProperty<V>- Overrides:
propertiesin classDetachedElement<VertexProperty<V>>
-
internalSetVertex
public void internalSetVertex(DetachedVertex vertex)
-
build
public static DetachedVertexProperty.Builder build()
Provides a way to construct an immutableDetachedEdge.
-
-