Class ReferenceVertexProperty<V>
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement<VertexProperty<V>>
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceVertexProperty<V>
- All Implemented Interfaces:
Serializable,Element,Property<V>,Attachable<VertexProperty<V>>,VertexProperty<V>
public class ReferenceVertexProperty<V>
extends ReferenceElement<VertexProperty<V>>
implements VertexProperty<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested 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
Fields inherited from class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement
id, labelFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
loggerFields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionReferenceVertexProperty(Object id, String label, V value) ReferenceVertexProperty(VertexProperty<V> vertexProperty) -
Method Summary
Modifier and TypeMethodDescriptionelement()Gets theVertexthat owns thisVertexProperty.booleanWhether the property is empty or not.key()The key of the property.label()Gets the label for the graphElementwhich helps categorize it.properties(String... propertyKeys) Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<U> Property<U>Add or set a property value for theElementgiven its key.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.reference.ReferenceElement
equals, get, graph, hashCode, id, labelsMethods 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, 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, labels
-
Constructor Details
-
ReferenceVertexProperty
-
ReferenceVertexProperty
-
-
Method Details
-
toString
-
key
Description copied from interface:PropertyThe key of the property. -
label
Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it.- Specified by:
labelin interfaceElement- Specified by:
labelin interfaceVertexProperty<V>- Overrides:
labelin classReferenceElement<VertexProperty<V>>- Returns:
- The label of the element
-
value
Description copied from interface:PropertyThe value of the property.- Specified by:
valuein interfaceProperty<V>- Returns:
- The property value
- Throws:
NoSuchElementException- thrown if the property is empty
-
isPresent
public boolean isPresent()Description copied from interface:PropertyWhether the property is empty or not. -
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).
-
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
remove
public void remove()Description copied from interface:PropertyRemove the property from the associated element. -
properties
Description copied from interface:VertexPropertyGet 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>
-