public class DetachedProperty<V> extends Object implements Property, Serializable, Attachable<Property<V>>
Property.Exceptions
Modifier | Constructor and Description |
---|---|
protected |
DetachedProperty(Property<V> property) |
|
DetachedProperty(String key,
V value,
Element element) |
Modifier and Type | Method and Description |
---|---|
Property<V> |
attach(Graph hostGraph) |
Property<V> |
attach(Vertex hostVertex) |
Element |
element()
Get the element that this property is associated with.
|
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
public boolean isPresent()
Property
public Element element()
Property
element
in interface Property
Vertex
, Edge
, or VertexProperty
).public void remove()
Property
public Property<V> attach(Vertex hostVertex)
attach
in interface Attachable<Property<V>>
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.