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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.ExceptionsNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
VertexProperty.Cardinality, VertexProperty.Exceptions -
Field Summary
FieldsFields inherited from class org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement
id, label, propertiesFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
loggerFields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL -
Constructor Summary
ConstructorsModifierConstructorDescriptionThis 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
Modifier and TypeMethodDescriptionbuild()Provides a way to construct an immutableDetachedEdge.element()Gets theVertexthat owns thisVertexProperty.booleanvoidinternalSetVertex(DetachedVertex vertex) booleanWhether the property is empty or not.key()The key of the property.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.toString()value()The value of the property.Methods inherited from class org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement
get, graph, hashCode, id, label, labels, property, propertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attachMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
addLabel, dropLabel, dropLabels, id, keys, property, property, value, valuesMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrowMethods inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
graph, label, labels
-
Field Details
-
value
-
vertex
-
-
Constructor Details
-
DetachedVertexProperty
-
DetachedVertexProperty
-
DetachedVertexProperty
This constructor is used by GraphSON when deserializing and theHostis not known.
-
-
Method Details
-
isPresent
public boolean isPresent()Description copied from interface:PropertyWhether the property is empty or not. -
key
Description copied from interface:PropertyThe key of the property. -
value
Description copied from interface:PropertyThe value of the property. -
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. -
toString
-
equals
- Overrides:
equalsin classDetachedElement<VertexProperty<V>>
-
properties
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
-
build
Provides a way to construct an immutableDetachedEdge.
-