E - the type of the base elementG - the type of the graph that owns this element@ParametersAreNonnullByDefault public abstract class IdElement<E extends com.tinkerpop.blueprints.Element,G extends IdGraph<G>> extends AbstractGraphBasedObject<E,G> implements com.tinkerpop.blueprints.Element
Element able to map the result of each method call to a dedicated implementation.
Re-implemented from com.tinkerpop.blueprints.util.wrappers.id.IdElement.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
propertyBased
true if the graph supports property-based identifiers. |
graphbase| Modifier | Constructor and Description |
|---|---|
protected |
IdElement(E baseElement,
G graph,
boolean propertyBased)
Constructs a new
IdElement. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
getId() |
<T> T |
getProperty(String key) |
Set<String> |
getPropertyKeys() |
int |
hashCode() |
<T> T |
removeProperty(String key) |
void |
setProperty(String key,
Object value) |
getBaseElementprotected final boolean propertyBased
true if the graph supports property-based identifiers.public <T> T getProperty(String key)
getProperty in interface com.tinkerpop.blueprints.Elementpublic Set<String> getPropertyKeys()
getPropertyKeys in interface com.tinkerpop.blueprints.Elementpublic void setProperty(String key, Object value)
setProperty in interface com.tinkerpop.blueprints.Elementpublic <T> T removeProperty(String key)
removeProperty in interface com.tinkerpop.blueprints.Elementpublic Object getId()
getId in interface com.tinkerpop.blueprints.ElementCopyright © 2013–2019 Atlanmod. All rights reserved.